Repository: lilishop/lilishop-uniapp Branch: master Commit: 919af44fda34 Files: 480 Total size: 2.7 MB Directory structure: gitextract_99qg1lqg/ ├── .gitignore ├── App.vue ├── CustomStoryboard/ │ └── LaunchScreen.storyboard ├── LICENSE ├── README.md ├── androidPrivacy.json ├── api/ │ ├── address.js │ ├── after-sale.js │ ├── article.js │ ├── common.js │ ├── connect.js │ ├── entry.js │ ├── goods.js │ ├── home.js │ ├── im.js │ ├── login.js │ ├── members.js │ ├── message.js │ ├── order.js │ ├── passport.js │ ├── point.js │ ├── promotions.js │ ├── safe.js │ ├── store.js │ └── trade.js ├── components/ │ ├── Sansnn-uQRCode/ │ │ └── uqrcode.js │ ├── default-page/ │ │ └── default-page.vue │ ├── m-airbtn/ │ │ └── index.vue │ ├── m-buy/ │ │ ├── README.md │ │ ├── goods.vue │ │ ├── popup.js │ │ └── popup.scss │ ├── m-canvas/ │ │ ├── README.md │ │ └── index.vue │ ├── m-city/ │ │ └── m-city.vue │ ├── m-goods-list/ │ │ ├── README.md │ │ ├── base-list.vue │ │ ├── common.vue │ │ ├── list.vue │ │ └── promotion.vue │ ├── m-goods-recommend/ │ │ ├── README.md │ │ └── index.vue │ ├── m-placard/ │ │ └── index.vue │ ├── m-search-revision/ │ │ └── m-search-revision.vue │ ├── m-share/ │ │ ├── index.vue │ │ └── mp-share.scss │ ├── m-take-down-sale-goods/ │ │ └── index.vue │ ├── popups/ │ │ └── popups.vue │ ├── uni-load-more/ │ │ └── uni-load-more.vue │ ├── uni-number-box.vue │ ├── uniMap.vue │ ├── verification/ │ │ ├── animation.css │ │ ├── icon.css │ │ └── verification.vue │ └── verify-code/ │ └── verify-code.vue ├── config/ │ ├── api.js │ └── config.js ├── hybrid/ │ └── html/ │ ├── advertise/ │ │ └── advertise.html │ ├── css/ │ │ └── advertise.css │ ├── error.html │ └── js/ │ └── webView.js ├── js_sdk/ │ ├── amap-wx.130.js │ ├── h5-copy/ │ │ └── h5-copy.js │ ├── lili-pay/ │ │ └── wx-pay.js │ ├── t-jwt/ │ │ └── jwt.js │ ├── u-draw-poster/ │ │ ├── draw-poster.d.ts │ │ ├── draw-poster.js │ │ ├── extends/ │ │ │ ├── create-from-list/ │ │ │ │ ├── index.d.ts │ │ │ │ └── index.js │ │ │ ├── create-gcanvas/ │ │ │ │ ├── index.d.ts │ │ │ │ └── index.js │ │ │ ├── draw-function/ │ │ │ │ ├── draw-image-fit.d.ts │ │ │ │ ├── draw-image-fit.js │ │ │ │ ├── draw-image.d.ts │ │ │ │ ├── draw-image.js │ │ │ │ ├── draw-round-image.d.ts │ │ │ │ ├── draw-round-image.js │ │ │ │ ├── fill-round-rect.d.ts │ │ │ │ ├── fill-round-rect.js │ │ │ │ ├── fill-warp-text.d.ts │ │ │ │ ├── fill-warp-text.js │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ ├── round-rect.d.ts │ │ │ │ ├── round-rect.js │ │ │ │ ├── stroke-round-rect.d.ts │ │ │ │ └── stroke-round-rect.js │ │ │ ├── draw-painter/ │ │ │ │ ├── index.d.ts │ │ │ │ └── index.js │ │ │ └── draw-qr-code/ │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── uQRCode.d.ts │ │ │ └── uQRCode.js │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── package.json │ │ └── utils/ │ │ ├── global.d.ts │ │ ├── global.js │ │ ├── interface.d.ts │ │ ├── interface.js │ │ ├── object-sizing.d.ts │ │ ├── object-sizing.js │ │ ├── utils.d.ts │ │ ├── utils.js │ │ ├── wx-utils.d.ts │ │ └── wx-utils.js │ └── wa-permission/ │ └── permission.js ├── lib/ │ └── request/ │ ├── adapters/ │ │ └── index.js │ ├── core/ │ │ ├── InterceptorManager.js │ │ ├── Request.js │ │ ├── buildFullPath.js │ │ ├── defaults.js │ │ ├── dispatchRequest.js │ │ ├── mergeConfig.js │ │ └── settle.js │ ├── helpers/ │ │ ├── buildURL.js │ │ ├── combineURLs.js │ │ └── isAbsoluteURL.js │ ├── index.js │ └── utils.js ├── main.js ├── manifest.json ├── pages/ │ ├── cart/ │ │ ├── coupon/ │ │ │ ├── couponCenter.vue │ │ │ ├── couponDetail.vue │ │ │ ├── index.vue │ │ │ └── myCoupon.vue │ │ └── payment/ │ │ ├── error.vue │ │ ├── payOrder.vue │ │ ├── shareOrderGoods.vue │ │ └── success.vue │ ├── floor/ │ │ └── empty.vue │ ├── mine/ │ │ ├── address/ │ │ │ ├── add.vue │ │ │ ├── address.scss │ │ │ ├── address.vue │ │ │ ├── addressManage.vue │ │ │ └── storeAddress.vue │ │ ├── deposit/ │ │ │ ├── index.vue │ │ │ ├── info.vue │ │ │ ├── operation.vue │ │ │ ├── recharge.vue │ │ │ ├── style.scss │ │ │ └── withdrawal.vue │ │ ├── distribution/ │ │ │ ├── achievement.vue │ │ │ ├── auth.vue │ │ │ ├── history.vue │ │ │ ├── home.vue │ │ │ ├── join.vue │ │ │ ├── list.vue │ │ │ └── withdrawal.vue │ │ ├── help/ │ │ │ └── tips.vue │ │ ├── im/ │ │ │ ├── index-app.scss │ │ │ ├── index.vue │ │ │ ├── list.vue │ │ │ └── socket.js │ │ ├── msgTips/ │ │ │ ├── main.vue │ │ │ ├── packageMsg/ │ │ │ │ ├── index.vue │ │ │ │ └── logisticsDetail.vue │ │ │ ├── serviceMsg/ │ │ │ │ └── index.vue │ │ │ └── sysMsg/ │ │ │ └── index.vue │ │ ├── myCollect.vue │ │ ├── myTracks.vue │ │ ├── point/ │ │ │ └── myPoint.vue │ │ ├── set/ │ │ │ ├── editionIntro.vue │ │ │ ├── feedBack.vue │ │ │ ├── personMsg.vue │ │ │ ├── securityCenter/ │ │ │ │ ├── bindMobile.vue │ │ │ │ ├── editLoginPassword.vue │ │ │ │ ├── editPassword.vue │ │ │ │ ├── faceLogin.vue │ │ │ │ ├── fingerLogin.vue │ │ │ │ ├── securityCenter.vue │ │ │ │ └── updatePwdTab.vue │ │ │ ├── setUp.vue │ │ │ └── versionFunctionList.vue │ │ └── signIn.vue │ ├── navigation/ │ │ └── search/ │ │ ├── search.scss │ │ └── searchPage.vue │ ├── order/ │ │ ├── afterSales/ │ │ │ ├── afterSales.vue │ │ │ ├── afterSalesDetail.vue │ │ │ ├── afterSalesDetailExpress.vue │ │ │ ├── afterSalesSelect.vue │ │ │ ├── applyDetail.vue │ │ │ ├── applyProgress.vue │ │ │ └── applySuccess.vue │ │ ├── complain/ │ │ │ ├── complain.vue │ │ │ ├── complainInfo.vue │ │ │ └── complainList.vue │ │ ├── deliverDetail.vue │ │ ├── evaluate/ │ │ │ ├── evaluateDetail.vue │ │ │ ├── myEvaluate.vue │ │ │ └── releaseEvaluate.vue │ │ ├── fillorder.vue │ │ ├── goods.scss │ │ ├── invoice/ │ │ │ ├── invoiceDetail.vue │ │ │ └── setInvoice.vue │ │ ├── myOrder.vue │ │ └── orderDetail.vue │ ├── passport/ │ │ ├── article.vue │ │ ├── entry/ │ │ │ └── seller/ │ │ │ ├── control.vue │ │ │ ├── entry.scss │ │ │ ├── index.vue │ │ │ ├── step1.vue │ │ │ ├── step2.vue │ │ │ └── step3.vue │ │ ├── login.scss │ │ ├── login.vue │ │ ├── scannerCodeLoginConfirm.vue │ │ ├── wechatH5Login.vue │ │ └── wechatMPLogin.vue │ ├── product/ │ │ ├── askList.vue │ │ ├── comment.vue │ │ ├── customerservice/ │ │ │ └── index.vue │ │ ├── goods.vue │ │ ├── licencePhoto.vue │ │ ├── product/ │ │ │ ├── evaluation/ │ │ │ │ └── -evaluation.vue │ │ │ ├── goods/ │ │ │ │ ├── -goods-desc.vue │ │ │ │ ├── -goods-intro.vue │ │ │ │ ├── -goods-recommend.vue │ │ │ │ └── -goods-swiper.vue │ │ │ ├── mp-goods.scss │ │ │ ├── popup/ │ │ │ │ ├── address.vue │ │ │ │ └── popup.js │ │ │ ├── product.scss │ │ │ ├── promotion/ │ │ │ │ ├── -promotion-assemble-list.vue │ │ │ │ ├── -promotion-assemble-promotions.vue │ │ │ │ ├── -promotion-coupon.vue │ │ │ │ ├── -promotion-details.vue │ │ │ │ ├── -promotion.vue │ │ │ │ ├── README.md │ │ │ │ ├── group.scss │ │ │ │ └── promotion_type.js │ │ │ ├── shop/ │ │ │ │ └── -shop.vue │ │ │ └── style.scss │ │ ├── shopList.vue │ │ ├── shopPage.vue │ │ └── shopPageGoods.vue │ ├── promotion/ │ │ ├── bargain/ │ │ │ ├── detail.vue │ │ │ ├── list.vue │ │ │ └── log.vue │ │ ├── joinGroup.vue │ │ ├── lives.vue │ │ ├── point/ │ │ │ ├── detail.vue │ │ │ ├── pointList.vue │ │ │ └── user.vue │ │ ├── seckill.vue │ │ └── style.scss │ └── tabbar/ │ ├── cart/ │ │ ├── cart.scss │ │ ├── cartList.vue │ │ └── mp-carui.scss │ ├── category/ │ │ └── category.vue │ ├── home/ │ │ ├── index.vue │ │ ├── template/ │ │ │ ├── advertising.scss │ │ │ ├── fetch_coupon.vue │ │ │ ├── tpl.js │ │ │ ├── tpl.scss │ │ │ ├── tpl_banner.vue │ │ │ ├── tpl_flex_five.vue │ │ │ ├── tpl_flex_four.vue │ │ │ ├── tpl_flex_one.vue │ │ │ ├── tpl_flex_three.vue │ │ │ ├── tpl_flex_two.vue │ │ │ ├── tpl_goods.vue │ │ │ ├── tpl_group.vue │ │ │ ├── tpl_hot_zone.vue │ │ │ ├── tpl_integral.vue │ │ │ ├── tpl_join_group.vue │ │ │ ├── tpl_left_one_right_two.vue │ │ │ ├── tpl_left_two_right_one.vue │ │ │ ├── tpl_menu.vue │ │ │ ├── tpl_notice.vue │ │ │ ├── tpl_promotions_detail.vue │ │ │ ├── tpl_search.vue │ │ │ ├── tpl_spike.vue │ │ │ ├── tpl_text_picture.vue │ │ │ ├── tpl_title.vue │ │ │ ├── tpl_top_one_bottom_two.vue │ │ │ └── tpl_top_two_bottom_one.vue │ │ ├── title.vue │ │ ├── views.vue │ │ └── web-view.vue │ ├── screen/ │ │ └── fullScreen.vue │ ├── special/ │ │ └── special.vue │ └── user/ │ ├── my.vue │ ├── similarGoods.vue │ └── utils/ │ └── tool.vue ├── pages.json ├── plugins/ │ └── APPUpdate/ │ ├── APPUpdate.md │ └── index.js ├── pushGithub.sh ├── store/ │ └── index.js ├── uni.scss ├── uni_modules/ │ ├── Sansnn-uQRCode/ │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── changelog.md │ │ ├── common/ │ │ │ ├── cache.js │ │ │ ├── queue.js │ │ │ └── types/ │ │ │ ├── cache.d.ts │ │ │ └── queue.d.ts │ │ ├── components/ │ │ │ ├── u-qrcode/ │ │ │ │ └── u-qrcode.vue │ │ │ └── uqrcode/ │ │ │ └── uqrcode.vue │ │ ├── js_sdk/ │ │ │ ├── gcanvas/ │ │ │ │ ├── bridge/ │ │ │ │ │ └── bridge-weex.js │ │ │ │ ├── context-2d/ │ │ │ │ │ ├── FillStyleLinearGradient.js │ │ │ │ │ ├── FillStylePattern.js │ │ │ │ │ ├── FillStyleRadialGradient.js │ │ │ │ │ └── RenderingContext.js │ │ │ │ ├── context-webgl/ │ │ │ │ │ ├── ActiveInfo.js │ │ │ │ │ ├── Buffer.js │ │ │ │ │ ├── Framebuffer.js │ │ │ │ │ ├── GLenum.js │ │ │ │ │ ├── GLmethod.js │ │ │ │ │ ├── GLtype.js │ │ │ │ │ ├── Program.js │ │ │ │ │ ├── Renderbuffer.js │ │ │ │ │ ├── RenderingContext.js │ │ │ │ │ ├── Shader.js │ │ │ │ │ ├── ShaderPrecisionFormat.js │ │ │ │ │ ├── Texture.js │ │ │ │ │ ├── UniformLocation.js │ │ │ │ │ └── classUtils.js │ │ │ │ ├── env/ │ │ │ │ │ ├── canvas.js │ │ │ │ │ ├── image.js │ │ │ │ │ └── tool.js │ │ │ │ └── index.js │ │ │ └── uqrcode/ │ │ │ └── uqrcode.js │ │ └── package.json │ └── okingtz-cropper/ │ ├── changelog.md │ ├── components/ │ │ └── okingtz-cropper/ │ │ └── okingtz-cropper.vue │ ├── package.json │ └── readme.md ├── utils/ │ ├── Foundation.js │ ├── RegExp.js │ ├── emojis.js │ ├── filters.js │ ├── md5.js │ ├── request.js │ ├── socket_service.js │ ├── storage.js │ ├── tools.js │ └── uuid.modified.js ├── uview-ui/ │ ├── LICENSE │ ├── components/ │ │ ├── u-action-sheet/ │ │ │ └── u-action-sheet.vue │ │ ├── u-alert-tips/ │ │ │ └── u-alert-tips.vue │ │ ├── u-avatar/ │ │ │ └── u-avatar.vue │ │ ├── u-avatar-cropper/ │ │ │ ├── u-avatar-cropper.vue │ │ │ └── weCropper.js │ │ ├── u-back-top/ │ │ │ └── u-back-top.vue │ │ ├── u-badge/ │ │ │ └── u-badge.vue │ │ ├── u-button/ │ │ │ └── u-button.vue │ │ ├── u-calendar/ │ │ │ └── u-calendar.vue │ │ ├── u-car-keyboard/ │ │ │ └── u-car-keyboard.vue │ │ ├── u-card/ │ │ │ └── u-card.vue │ │ ├── u-cell-group/ │ │ │ └── u-cell-group.vue │ │ ├── u-cell-item/ │ │ │ └── u-cell-item.vue │ │ ├── u-checkbox/ │ │ │ └── u-checkbox.vue │ │ ├── u-checkbox-group/ │ │ │ └── u-checkbox-group.vue │ │ ├── u-circle-progress/ │ │ │ └── u-circle-progress.vue │ │ ├── u-col/ │ │ │ └── u-col.vue │ │ ├── u-collapse/ │ │ │ └── u-collapse.vue │ │ ├── u-collapse-item/ │ │ │ └── u-collapse-item.vue │ │ ├── u-column-notice/ │ │ │ └── u-column-notice.vue │ │ ├── u-count-down/ │ │ │ └── u-count-down.vue │ │ ├── u-count-to/ │ │ │ └── u-count-to.vue │ │ ├── u-divider/ │ │ │ └── u-divider.vue │ │ ├── u-dropdown-list/ │ │ │ └── u-dropdown-list.vue │ │ ├── u-empty/ │ │ │ └── u-empty.vue │ │ ├── u-field/ │ │ │ └── u-field.vue │ │ ├── u-form/ │ │ │ └── u-form.vue │ │ ├── u-form-item/ │ │ │ └── u-form-item.vue │ │ ├── u-full-screen/ │ │ │ └── u-full-screen.vue │ │ ├── u-gap/ │ │ │ └── u-gap.vue │ │ ├── u-grid/ │ │ │ └── u-grid.vue │ │ ├── u-grid-item/ │ │ │ └── u-grid-item.vue │ │ ├── u-icon/ │ │ │ └── u-icon.vue │ │ ├── u-image/ │ │ │ └── u-image.vue │ │ ├── u-index-anchor/ │ │ │ └── u-index-anchor.vue │ │ ├── u-index-list/ │ │ │ └── u-index-list.vue │ │ ├── u-input/ │ │ │ └── u-input.vue │ │ ├── u-keyboard/ │ │ │ └── u-keyboard.vue │ │ ├── u-lazy-load/ │ │ │ └── u-lazy-load.vue │ │ ├── u-line/ │ │ │ └── u-line.vue │ │ ├── u-line-progress/ │ │ │ └── u-line-progress.vue │ │ ├── u-link/ │ │ │ └── u-link.vue │ │ ├── u-loading/ │ │ │ └── u-loading.vue │ │ ├── u-loading-page/ │ │ │ └── u-loading-page.vue │ │ ├── u-loadmore/ │ │ │ └── u-loadmore.vue │ │ ├── u-mask/ │ │ │ └── u-mask.vue │ │ ├── u-message-input/ │ │ │ └── u-message-input.vue │ │ ├── u-modal/ │ │ │ └── u-modal.vue │ │ ├── u-navbar/ │ │ │ └── u-navbar.vue │ │ ├── u-no-network/ │ │ │ └── u-no-network.vue │ │ ├── u-notice-bar/ │ │ │ └── u-notice-bar.vue │ │ ├── u-number-box/ │ │ │ └── u-number-box.vue │ │ ├── u-number-keyboard/ │ │ │ └── u-number-keyboard.vue │ │ ├── u-parse/ │ │ │ ├── libs/ │ │ │ │ ├── CssHandler.js │ │ │ │ ├── MpHtmlParser.js │ │ │ │ ├── config.js │ │ │ │ ├── handler.wxs │ │ │ │ └── trees.vue │ │ │ └── u-parse.vue │ │ ├── u-picker/ │ │ │ └── u-picker.vue │ │ ├── u-popup/ │ │ │ └── u-popup.vue │ │ ├── u-radio/ │ │ │ └── u-radio.vue │ │ ├── u-radio-group/ │ │ │ └── u-radio-group.vue │ │ ├── u-rate/ │ │ │ └── u-rate.vue │ │ ├── u-read-more/ │ │ │ └── u-read-more.vue │ │ ├── u-row/ │ │ │ └── u-row.vue │ │ ├── u-row-notice/ │ │ │ └── u-row-notice.vue │ │ ├── u-search/ │ │ │ └── u-search.vue │ │ ├── u-section/ │ │ │ └── u-section.vue │ │ ├── u-select/ │ │ │ └── u-select.vue │ │ ├── u-skeleton/ │ │ │ └── u-skeleton.vue │ │ ├── u-slider/ │ │ │ └── u-slider.vue │ │ ├── u-steps/ │ │ │ └── u-steps.vue │ │ ├── u-sticky/ │ │ │ └── u-sticky.vue │ │ ├── u-subsection/ │ │ │ └── u-subsection.vue │ │ ├── u-swipe-action/ │ │ │ └── u-swipe-action.vue │ │ ├── u-swiper/ │ │ │ └── u-swiper.vue │ │ ├── u-switch/ │ │ │ └── u-switch.vue │ │ ├── u-tabbar/ │ │ │ └── u-tabbar.vue │ │ ├── u-table/ │ │ │ └── u-table.vue │ │ ├── u-tabs/ │ │ │ └── u-tabs.vue │ │ ├── u-tabs-swiper/ │ │ │ └── u-tabs-swiper.vue │ │ ├── u-tag/ │ │ │ └── u-tag.vue │ │ ├── u-td/ │ │ │ └── u-td.vue │ │ ├── u-th/ │ │ │ └── u-th.vue │ │ ├── u-time-line/ │ │ │ └── u-time-line.vue │ │ ├── u-time-line-item/ │ │ │ └── u-time-line-item.vue │ │ ├── u-toast/ │ │ │ └── u-toast.vue │ │ ├── u-top-tips/ │ │ │ └── u-top-tips.vue │ │ ├── u-tr/ │ │ │ └── u-tr.vue │ │ ├── u-upload/ │ │ │ └── u-upload.vue │ │ ├── u-verification-code/ │ │ │ └── u-verification-code.vue │ │ └── u-waterfall/ │ │ └── u-waterfall.vue │ ├── iconfont.css │ ├── index.js │ ├── index.scss │ ├── libs/ │ │ ├── config/ │ │ │ ├── config.js │ │ │ └── zIndex.js │ │ ├── css/ │ │ │ ├── color.scss │ │ │ ├── common.scss │ │ │ ├── style.components.scss │ │ │ ├── style.h5.scss │ │ │ ├── style.mp.scss │ │ │ ├── style.nvue.scss │ │ │ └── style.vue.scss │ │ ├── function/ │ │ │ ├── $parent.js │ │ │ ├── addUnit.js │ │ │ ├── bem.js │ │ │ ├── color.js │ │ │ ├── colorGradient.js │ │ │ ├── debounce.js │ │ │ ├── deepClone.js │ │ │ ├── deepMerge.js │ │ │ ├── getParent.js │ │ │ ├── guid.js │ │ │ ├── md5.js │ │ │ ├── queryParams.js │ │ │ ├── random.js │ │ │ ├── randomArray.js │ │ │ ├── route.js │ │ │ ├── sys.js │ │ │ ├── test.js │ │ │ ├── throttle.js │ │ │ ├── timeFormat.js │ │ │ ├── timeFrom.js │ │ │ ├── toast.js │ │ │ ├── trim.js │ │ │ └── type2icon.js │ │ ├── mixin/ │ │ │ ├── mixin.js │ │ │ └── mpShare.js │ │ ├── request/ │ │ │ └── index.js │ │ ├── store/ │ │ │ └── index.js │ │ └── util/ │ │ ├── area.js │ │ ├── async-validator.js │ │ ├── city.js │ │ ├── emitter.js │ │ └── province.js │ ├── package.json │ └── theme.scss └── vue.config.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ # OSX # .DS_Store node_modules/ #Intellij idea .idea/ /idea/ .vscode/ /unpackage/ .hbuilderx/launch.json .project.config.json .project.private.config.json ================================================ FILE: App.vue ================================================ ================================================ FILE: CustomStoryboard/LaunchScreen.storyboard ================================================ ================================================ FILE: LICENSE ================================================ GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Remote Network Interaction; Use with the GNU General Public License. Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . ================================================ FILE: README.md ================================================ ## Lilishop B2B2C 商城系统 ### 商城介绍 **官网**:https://pickmall.cn **更多 README**:https://gitee.com/beijing_hongye_huicheng/lilishop/blob/master/README.md **演示站点**:https://m-b2b2c.pickmall.cn/ 账号:13011111111 验证码:111111 **商城 小程序/公众号/APP**:扫描二维码 ![image-20210511171611793](https://static.pickmall.cn/images/h5-qrcode.png) ## lilishop-uniapp如何在本地h5和微信小程序中运行 https://www.bilibili.com/video/BV17K8EemEh2/ ## lilishop-uniapp如何打包h5到服务器 https://www.bilibili.com/video/BV1CX87exE64/ ### 快速开始 #### 阅读文档 `uni-app` https://uniapp.dcloud.net.cn/api/ `vue2` https://v2.cn.vuejs.org/ `uView v1` https://v1.uviewui.com/ #### 环境 在开发之前保证本地安装了以下软件 `hbulider` https://www.dcloud.io/hbuilderx.html ### 技术栈 本项目技术栈为 `uni-app` + `scss` + `ES2015` + `uView` 提前学习和了解这些知识将帮助你更好地上手我们的项目。 ### 安装 1. 克隆项目到本地 ```shell git clone https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git ``` 2. 从`hbulider`中打开项目 ```shell 直接将项目拖进hbulider中点击运行即可 ``` ### 目录结构 ``` ├── api // 接口 ├── components // 组件 ├── config // 配置文件 ├── CustomStartPage // 打包配置的开屏页 ├── CustomStoryboard // ios自定义storyboard启动页 ├── hybrid // 广告配置页 ├── js_sdk // 封装的js_sdk ├── lib // 封装的部分方法 ├── pages // 页面 ├── plugins // 插件 ├── static // 静态资源 ├── store // vuex ├── utils // 工具类 ├── uview-ui // uview ├── App.vue // 入口页面 ├── main.js // 入口文件 ├── manifest.json // hbulider配置文件 ├── pages.json // 路由配置文件 ├── uni.scss // 全局样式 └── vue.config.js // vue配置文件 ``` ### 运行 #### 运行在 h5 在`hbulider`中点击`运行`->`运行到浏览器`->`选择自己的浏览器九号` #### 运行在微信小程序 1.需要保证本地要有`微信开发者工具` https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html 2.在`hbulider`中点击`运行`->`运行到小程序模拟器`->`微信开发者工具` 运行的时候需要配置小程序的`appid`,配置完成后即可运行 #### 运行 APP ##### 运行在安卓 在`hbulider`中点击`运行`->`运行到手机或模拟器`->`选择运行到安卓APP基座` ##### 运行在 IOS 在`hbulider`中点击`运行`->`运行到手机或模拟器`->`选择运行到IOS基座` ### 项目配置/开发 #### config配置 在根目录`config`下的`config`设置中配置了一些默认的配置,可以根据自己的需求进行修改 ``` const name = "lilishop"; //全局商城name const schemeName = "lilishop"; //唤醒app需要的schemeName export default { name: name, schemeLink: `${schemeName}://`, //唤起app地址 downloadLink: "https://pickmall.cn/download-page/index.html", //下载地址,下载app的地址 shareLink: "https://m-b2b2c.pickmall.cn", //分享地址,也就是在h5中默认的复制地址 appid: "", //小程序唯一凭证,即 AppID,可在「微信公众平台 - 设置 - 开发设置」页中获得。(需要已经成为开发者,且帐号没有异常状态) aMapKey: "", //在高德中申请Web服务key scanAuthNavigation: ["https://m-b2b2c.pickmall.cn/"], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转 iosAppId: "id1564638363", //AppStore的应用地址id 具体在分享->拷贝链接中查看 logo: "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png", //logo地址 customerServiceMobile: "13161366885", //客服电话 customerServiceEmail: "lili@lili.com", //客服邮箱 imWebSrc: "https://im.pickmall.cn", //IM地址 baseWsUrl: "wss://im-api.pickmall.cn/lili/webSocket", // IM WS 地址 enableGetClipboard: false, //是否启用粘贴板获取 scanAuthNavigation 中的链接,如果匹配则会跳转到对应页面 enableMiniBarStartUpApp: true, //是否在h5中右侧浮空按钮点击启动app /** * 如需更换主题请修改此处以及uni.scss中的全局颜色 */ mainColor: "#ff3c2a", // 主题色 lightColor: "#ff6b35", // 高亮主题色 aiderLightColor: "#ff9f28", // 辅助高亮颜色 defaultUserPhoto: "/static/missing-face.png", // 默认用户头像 enableFetchMobileLogin: false // 是否启用获取手机号登录 如果微信小程序提示封禁手机号获取权限 可将此选项设置成false作为备用登录方案 }; ``` #### 组件 在根目录`components`下的`components`设置中配置了一些默认的组件,可以根据自己的需求进行修改或阅读组件详情代码以及README.md文档 #### 页面 在`pages`文件夹写入或修改页面代码,在`pages.json`中去配置页面路由,具体配置可以参考`pages.json` 或参考uni-app的文档 在微信小程序中默认启用分包操作,如果需要在微信小程序中使用分包,需要在`pages.json`中配置分包路径,具体配置可以参考`pages.json` 或参考uni-app的文档 #### 主题 1.现在`config`中设置主题色 2.在`uni.scss`中设置全局颜色 3.替换项目中一些icon以及图片的颜色 ### 常见问题 #### 微信小程序移动端启动报错 小程序直播插件报错,在`manifest`中删除代码。 ![启动报错](https://docs.pickmall.cn/configure/images/live.png) #### 微信小程序上传文件过大超出 2MB 1.关闭微信小程序,停止微信小程序运行 2.重新点击运行小程序模拟器,在最下方有一个 `运行时是否压缩代码` 勾选并重新运行 3.如果还是提示超出2MB,重新执行1步骤,然后点击`发行`->`小程序`即可 4.以上1-3步骤都不行,可以尝试删除一些自己开发的代码或本地的静态资源图片 #### 微信小程序在开发者工具中可以使用接口在测试版却不行 1.首先保证是否填写`request`合法域名 在微信小程序后台配置 2.需保证接口为https请求 request合法域名基础配置如下 ``` https://buyer-api.pickmall.cn https://common-api.pickmall.cn https://im-api.pickmall.cn https://restapi.amap.com ``` socket合法域名 ``` wss://im-api.pickmall.cn ``` uploadFile合法域名 ``` https://common-api.pickmall.cn ``` downloadFile合法域名 ``` https://buyer-api.pickmall.cn https://common-api.pickmall.cn https://im-api.pickmall.cn https://lilishop-oss.oss-cn-beijing.aliyuncs.com ``` #### 如何配置API 在根目录 `config` -> `api` 中配置开发环境以及生产环境 api 接口地址 #### 运行报错 初次运行时候可能因为本地环境缺少编译插件,这个时候一定要注意看报错信息,根据报错信息安装相应的插件即可 #### 如何配置微信小程序appid 在根目录 `manifest.json` 中配置微信小程序appid #### 微信登录报错 需检查appId是否配置正确,在后台管理中信任登录的`appId`以及`appSecret`是否配置正确 ================================================ FILE: androidPrivacy.json ================================================ { "version" : "1", "prompt" : "template", "title" : "服务协议和隐私政策", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
  你可阅读《服务协议》《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "buttonAccept" : "同意并接受", "buttonRefuse" : "暂不同意", "second" : { "title" : "确认提示", "message" : "  进入应用前,你需先同意《服务协议》《隐私政策》,否则将退出应用。", "buttonAccept" : "同意并继续", "buttonRefuse" : "退出应用" }, "styles" : { "borderRadius" : "5px" } } ================================================ FILE: api/address.js ================================================ /** * 收货地址相关API */ import { http, Method } from "@/utils/request.js"; import api from "@/config/api.js"; /** * 获取收货地址列表 * @returns {AxiosPromise} */ export function getAddressList(pageNumber, pageSize) { return http.request({ url: "/member/address", method: Method.GET, needToken: true, params: { pageNumber, pageSize }, }); } /** * 获取物流公司 */ export function getLogistics() { return http.request({ url: "/other/logistics", method: Method.GET, needToken: true, params: { pageNumber: 1, pageSize: 200, disabled: "OPEN" }, }); } /** * 通过cityCode获取地区代码 */ export function getAddressCode(cityCode, townName) { return http.request({ url: api.common + "/common/region/region", method: Method.GET, needToken: true, params: { cityCode, townName }, }); } /** * 添加收货地址 * @param params 地址参数 * @returns {AxiosPromise} */ export function addAddress(data) { return http.request({ url: "/member/address", method: Method.POST, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data: data, }); } /** * 编辑地址 * @param id 地址ID * @param params 地址参数 * @returns {AxiosPromise} */ export function editAddress(params) { return http.request({ url: `/member/address`, method: Method.PUT, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data: params, }); } /** * 删除收货地址 * @param id */ export function deleteAddress(id) { return http.request({ url: `/member/address/delById/${id}`, method: Method.DELETE, needToken: true, }); } /** * 根据ID获取会员收件地址 * @param id */ export function getAddressDetail(id) { return http.request({ url: `/member/address/get/${id}`, method: Method.GET, loading: false, needToken: true, }); } /** * */ export function getAddressDefault() { return http.request({ url: `/member/address/get/default`, method: Method.GET, loading: false, needToken: true, }); } ================================================ FILE: api/after-sale.js ================================================ /** * 申请售后相关API */ import { http, Method } from "@/utils/request.js"; /** * 获取售后列表 * @param params * @returns {AxiosPromise} */ export function getAfterSale(params) { return http.request({ url: "after-sales/refunds", method: Method.GET, needToken: true, loading: false, params, }); } /******************* 以下为新方法 ***********************/ /** * 申请取消订单 * @param params */ export function applyCancelOrder(params) { return http.request({ url: "after-sales/apply/cancel/order", method: Method.POST, needToken: true, params, }); } /** /** * 获取商家售后收件地址 */ export function getStoreAfterSaleAddress(sn) { return http.request({ url: `/order/afterSale/getStoreAfterSaleAddress/${sn}`, method: Method.GET, needToken: true, }); } /** * 取消售后 */ export function cancelAfterSale(afterSaleSn) { return http.request({ url: `/order/afterSale/cancel/${afterSaleSn}`, method: Method.POST, needToken: true, }); } /** * 获取售后服务记录相关数据 * @param params 参数 */ export function getAfterSaleList(params) { return http.request({ url: `/order/afterSale/page`, method: Method.GET, needToken: true, params, }); } /** * 查看售后服务详情 * @param sn 售后服务单编号 */ export function getServiceDetail(sn) { return http.request({ url: `/order/afterSale/get/${sn}`, method: Method.GET, needToken: true, }); } /** * 添加投诉 */ export function addComplain(params) { return http.request({ url: `/order/complain`, method: Method.POST, needToken: true, header: { "Content-Type": "application/x-www-form-urlencoded", }, data: params, }); } /** * 取消投诉 */ export function clearComplain(id, params) { return http.request({ url: `/order/complain/status/${id}`, method: Method.PUT, needToken: true, params, }); } /** * 取消投诉 */ export function getAfterSaleLog(sn) { return http.request({ url: `/order/afterSale/get/getAfterSaleLog/${sn}`, method: Method.GET, needToken: true, }); } /** * 投诉列表 */ export function getComplain(params) { return http.request({ url: `/order/complain`, method: Method.GET, needToken: true, params, }); } /** * 获取申请原因 */ export function getAfterSaleReason(serviceType) { return http.request({ url: `/order/afterSale/get/afterSaleReason/${serviceType}`, method: Method.GET, needToken: true, }); } /** * 获取取消原因 */ export function getClearReason() { return http.request({ url: `/order/afterSale/get/afterSaleReason/CANCEL`, method: Method.GET, needToken: true, }); } /** * 获取投诉原因 */ export function getComplainReason() { return http.request({ url: `/order/afterSale/get/afterSaleReason/COMPLAIN`, method: Method.GET, needToken: true, }); } /** * 获取投诉详情 */ export function getComplainDetail(id) { return http.request({ url: `/order/complain/${id}`, method: Method.GET, needToken: true, }); } /** * 获取申请售后页面信息 */ export function getAfterSaleInfo(sn) { return http.request({ url: `/order/afterSale/applyAfterSaleInfo/${sn}`, method: Method.GET, needToken: true, }); } /** * 申请退货服务 * @param params */ export function applyReturn(orderItemSn, params) { return http.request({ url: `/order/afterSale/save/${orderItemSn}`, method: Method.POST, header: { "Content-Type": "application/x-www-form-urlencoded", }, data: params, }); } /** * 填充物流信息 * @param afterSaleSn 售后服务单号 * @param params 参数信息 */ export function fillShipInfo(afterSaleSn, params) { return http.request({ url: `/order/afterSale/delivery/${afterSaleSn}`, method: Method.POST, header: { "Content-Type": "application/x-www-form-urlencoded", }, data: params, }); } // 添加交易投诉对话 export function communication(params) { return http.request({ url: `/order/complain/communication`, method: Method.POST, needToken: true, params }); } ================================================ FILE: api/article.js ================================================ /** * 文章相关API */ import {http,Method} from '@/utils/request.js'; import api from '@/config/api.js'; /** * 获取某个分类的文章列表 * @param category_type */ export function getArticleCategory(category_type) { return http.request({ url: `${api.base}/pages/article-categories`, method: Method.GET, params: {category_type}, }); } /** * 获取文章详情 * @param type */ export function getArticleDetail(type) { return http.request({ url: `/other/article/get/${type}`, method: Method.GET, }); } /** * 获取文章详情 * @param type */ export function getArticleDetailByType(type) { return http.request({ url: `/other/article/type/${type}`, method: Method.GET, }); } ================================================ FILE: api/common.js ================================================ /** * 公共API */ import { http, Method } from "@/utils/request.js"; import api from "@/config/api.js"; /** * 获取地区数据 * @param id */ export function getRegionsById(id = 0) { return http.request({ url: `${api.common}/common/region/item/${id}`, method: Method.GET, message: false, }); } // 获取IM接口前缀 export function getIMDetail() { return http.request({ url: `${api.common}/IM`, method: Method.GET, message: false, }); } /** * 文件上传地址 * @type {string} */ export const upload = api.common + "/common/upload/file"; ================================================ FILE: api/connect.js ================================================ /** * 信任登录相关API */ import { http, Method } from '@/utils/request.js'; const request = http.request; /** * web 第三方登录 * @param {Object} code */ export function webConnect(code) { return http.request({ url: `passport/connect/connect/login/web/${code}`, method: Method.GET, needToken: true, header: { "clientType": "H5" } }); } export function openIdLogin(params, clientType) { return http.request({ url: `passport/connect/connect/app/login`, method: Method.POST, needToken: true, data: params, header: { "clientType": clientType } }); } /** * 第三方登录成功 回调接口 */ export function loginCallback(state) { return http.request({ url: `passport/connect/connect/result?state=${state}`, method: Method.GET, needToken: false }); } /** * 小程序自动登录 * @param params */ export function mpAutoLogin(params) { return http.request({ url: 'passport/connect/miniProgram/auto-login', method: Method.GET, params }); } ================================================ FILE: api/entry.js ================================================ /** * 入驻类相关api */ import { http, Method } from "@/utils/request.js"; // 获取当前用户的代理入驻详情 export function getCompanyDetail(params) { return http.request({ url: "/store/store/apply", method: Method.GET, params, }); } // 申请店铺第一步-填写企业信息 export function applyFirst(params) { return http.request({ url: "/store/store/apply/first", method: Method.PUT, params, }); } // 申请店铺第二步-填写银行 export function applySecond(params) { return http.request({ url: "/store/store/apply/second", method: Method.PUT, params, }); } // 申请店铺第三步-填写银行 export function applyThird(params) { return http.request({ url: "/store/store/apply/third", method: Method.PUT, params, }); } ================================================ FILE: api/goods.js ================================================ /** * 商品相关API */ import { http, Method } from "@/utils/request.js"; /** * 从ES中获取相关商品品牌名称,分类名称及属性 */ export function getGoodsMessage(goodsId) { return http.request({ url: `/goods/goods/get/${goodsId}`, method: Method.GET, }); } /** * 从ES中获取相关商品品牌名称,分类名称及属性 */ export function getGoodsRelated(params) { return http.request({ url: `/goods/goods/es/related`, method: Method.GET, params, }); } /** * 获取商品详情 * @param skuId 商品ID * @returns {AxiosPromise} */ export function getGoods(skuId, goodsId) { return http.request({ url: `/goods/goods/sku/${goodsId}/${skuId}`, method: Method.GET, }); } /** * 获取商品分销 * @param distributionId 商品分销ID */ export function getGoodsDistribution(distributionId) { return http.request({ url: `/distribution/distribution/bindingDistribution/${distributionId}`, method: Method.GET, }); } /** * 获取商品列表 * @param params * @returns {AxiosPromise} */ export function getGoodsList(params) { return http.request({ url: "/goods/goods/es", method: Method.GET, params, }); } /** * 获取上新商品列表 * @param params * @returns {AxiosPromise} */ export function getGoodsListUplog(params) { return http.request({ url: "goods/search/uplog", method: Method.GET, params, }); } /** * 获取标签商品 * @param storeId 卖家id * @param mark 标签 hot:热卖 new:新品 recommend:推荐 * @param num 获取个数 */ export function getTagGoods(storeId, mark = "hot", num = 5) { return http.request({ url: `goods/tags/${mark}/goods`, method: Method.GET, loading: false, params: { storeId, mark, num, }, }); } /** * 获取标签商品 */ export function getPlateformTagGoods(tag_id) { return http.request({ url: `goods/tags/byid/${tag_id}`, method: Method.GET, loading: false, }); } /** * 获取首页商品分类 左侧列表 * @param parent_id */ export function getCategoryList(id) { return http.request({ url: `/goods/category/get/${id}`, method: Method.GET, loading: false, }); } /** * 获取当前会员的分销商信息 可根据分销商信息查询待提现金额以及冻结金额等信息 */ export function distribution() { return http.request({ url: `/distribution/distribution`, method: Method.GET, }); } /** * 申请分销商 */ export function applyDistribution(params) { return http.request({ url: `/distribution/distribution`, method: Method.POST, params, }); } /** * 分销商提现 */ export function cash(params) { return http.request({ url: `/distribution/cash`, method: Method.POST, params, }); } /** * 分销商提现历史 */ export function cashLog(params) { return http.request({ url: `/distribution/cash`, method: Method.GET, params }); } /** * 获取分销商分页订单列表 */ export function distributionOrderList(params) { return http.request({ url: `/distribution/distribution/distributionOrder`, method: Method.GET, params }); } /** * 获取分销商商品列表 */ export function distributionGoods(params) { return http.request({ url: `/distribution/goods`, method: Method.GET, params, }); } /** * 选择分销商品 分销商品id */ export function checkedDistributionGoods(params) { return http.request({ url: `/distribution/goods/checked/${params.id}`, method: Method.GET, params }); } /** * 获取 小程序码 */ export function getMpCode(params){ return http.request({ url:`/passport/connect/miniProgram/mp/unlimited`, method:Method.GET, params }) } /** * 根据shortlink 获取页面参数 */ export function getMpScene(id){ return http.request({ url:`/passport/connect/miniProgram/mp/unlimited/scene?id=${id}`, method:Method.GET, }) } ================================================ FILE: api/home.js ================================================ import { http, Method } from "@/utils/request.js"; export function toSpecial(data) { return http.request({ url: `/other/pageData/getSpecial`, method: Method.GET, data }); } /** * 专题内容 */ export function getSpecial(id) { return http.request({ url: `/other/pageData/get/${id}`, method: Method.GET, }); } /** * 获取广告图 */ export function getAdvertisement() { return http.request({ url: "/advertisement", method: Method.GET, }); } /** * 获取首页商品分类 * @param parent_id */ export function getCategory(parent_id = 0) { return http.request({ url: `goods/categories/${parent_id}/children`, method: Method.GET, loading: false, }); } /** * 获取热门关键词 * @param num */ export function getHotKeywords(count) { return http.request({ url: "/goods/goods/hot-words", method: Method.GET, loading: false, params: { count }, }); } /** * 获取楼层数据 * @param client_type * @param page_type */ export function getFloorData(params) { return http.request({ url: `/other/pageData/getIndex?clientType=H5`, method: "get", params }); } /** * 获取店铺楼层数据 */ export function getFloorStoreData(params) { return http.request({ url: `/other/pageData?pageClientType=H5`, method: "get", params }); } /** * 获取获取首页分类数据 */ export function getCategoryIndexData(parentId = 0) { return http.request({ url: `/goods/category/get/${parentId}`, method: "get", }); } ================================================ FILE: api/im.js ================================================ import { http,Method } from "@/utils/request.js"; import api from "@/config/api.js"; /** * 获取聊天详情接口 * @param {*} talkId * @returns */ export function getTalk(talkId) { return http.request({ url: `${api.im}/talk/${talkId}`, method: Method.GET, }); } /** * 获取与用户的聊天详情 * @param {*} talkId * @returns */ export function getTalkByUser(userId) { return http.request({ url: `${api.im}/talk/by/user/${userId}`, method: Method.GET, }); } /** * 获取聊天列表 * @param {*} talkId * @returns */ export function getTalkList(params) { return http.request({ url: `${api.im}/talk/list`, method: Method.GET, params }); } /** * 获取聊天信息接口 * @param {*} params * @returns */ export function getTalkMessage(params) { return http.request({ url: `${api.im}/message`, method: Method.GET, params }); } /** * 获取聊天信息接口 * @param {*} params * @returns */ export function cleanUnreadMessage(params) { return http.request({ url: `${api.im}/message/clean/unred`, method: Method.PUT, params }); } // 从商品页点击 客服 跳转 获取商品详情 export function jumpObtain(skuId, goodsId) { return http.request({ url: `/goods/goods/sku/${goodsId}/${skuId}`, method: Method.GET, }); } // 清除未读 // /im/message/clean/unred export function clearmeaager() { return http.request({ url: `${api.im}/message/clean/unred`, method: Method.PUT, }); } ================================================ FILE: api/login.js ================================================ import { http } from "@/utils/request.js"; import api from "@/config/api.js"; /** * 通过短信重置密码 * @param mobile */ export function resetByMobile(params) { return http.request({ url: `/passport/member/resetByMobile`, method: "POST", params, }); } /** * 绑定手机号码 * @param mobile */ export function bindMobile(params) { return http.request({ url: `/passport/member/bindMobile`, method: "POST", params, }); } //获取自动发券 export function getAutoCoup(){ return http.request({ url:`/promotion/coupon/activity`, method:"GET", needToken: true, }); } /** * 账号密码登陆 * @params password * @params username */ export function userLogin(params, clientType){ return http.request({ method: "POST", url:`/passport/member/userLogin`, data: params, header: { "content-type": "application/x-www-form-urlencoded", clientType: clientType, }, }) } /** * 发送验证码 * @param mobile */ export function sendMobile(mobile,type='LOGIN') { return http.request({ url: `${api.common}/common/sms/${type}/${mobile}`, method: "GET", }); } /** * 短信登录 * @param mobile * @param smsCode */ export function smsLogin(params, clientType) { return http.request({ url: `/passport/member/smsLogin`, method: "POST", data: params, header: { "content-type": "application/x-www-form-urlencoded", clientType: clientType, }, }); } /** * 修改密码 * @param newPassword * @param password */ export function modifyPass(params) { return http.request({ url: `/passport/member/modifyPass`, method: "PUT", params, }); } /** * 修改密码 * @param newPassword * @param password */ export function resetPassword(params) { return http.request({ url: `/passport/member/resetPassword`, method: "POST", params, }); } /** * 刷新token */ export function refreshTokenFn(refresh_token) { return http.request({ url: `/passport/member/refresh/${refresh_token}`, method: "GET", }); } // 获取密码状态 export function logout () { return http.request({ url: '/passport/member/logout', method: "POST", needToken: true, }) } export function scannerCodeLogin(params){ return http.request({ url: '/passport/member/app_scanner', method: "POST", params, needToken: true, }); } export function scannerCodeLoginConfirm(params){ return http.request({ url: '/passport/member/app_confirm', method: "POST", params, needToken: true, }); } // 注销用户 export function logoffConfirm() { return http.request({ url: '/passport/member/cancellation', method: "PUT", needToken: true, }) } ================================================ FILE: api/members.js ================================================ import storage from "@/utils/storage"; import { http, Method } from "@/utils/request.js"; /** * 意见反馈 */ export function feedBack(params) { return http.request({ url: "/other/feedback", method: Method.POST, needToken: true, params, }); } // 提现 export function withdrawalApply(params) { return http.request({ url: "/wallet/wallet/withdrawal", method: Method.POST, needToken: true, params, }); } /** * 支付结果查询 * @param orderType 交易类型,可用值:TRADE,ORDER,RECHARGE * @param sn 订单编号 */ export function payCallback(params) { return http.request({ url: `/payment/cashier/result`, method: Method.GET, params, }); } // 在线充值 export function recharge(params) { return http.request({ url: "/trade/recharge", method: Method.POST, params, }); } /** * 分页获取预存款充值记录 * @param params */ export function getUserRecharge(params) { return http.request({ url: "/member/recharge", method: Method.GET, needToken: true, params, }); } /** * 分页获取预存款充值记录 * @param params */ export function getWalletLog(params) { return http.request({ url: "/wallet/log", method: Method.GET, needToken: true, params, }); } /** * 获取优惠券列表 * @param params */ export function getCoupons(params) { return http.request({ url: "/promotion/coupon/getCoupons", method: Method.GET, needToken: true, params, }); } /** * 领取优惠券 * @param couponId */ export function receiveCoupons(couponId) { return http.request({ url: `/promotion/coupon/receive/${couponId}`, method: Method.GET, needToken: true, }); } /** * 获取积分明细数据 * @param params * @returns {AxiosPromise} */ export function getPointsData(params) { return http.request({ url: "member/memberPointsHistory/getByPage", method: Method.GET, needToken: true, params, }); } /** * 获取我的评论列表 * @param params * @returns {AxiosPromise} */ export function getComments(params) { return http.request({ url: "/member/evaluation", method: Method.GET, needToken: true, params, }); } /** * 获取当前会员的浏览数量是多少 * @param params * @returns {AxiosPromise} */ export function getFootprintNum(params) { return http.request({ url: "/member/footprint/getFootprintNum", method: Method.GET, needToken: true, params, }); } /** * 订单评论 * @param params */ export function commentsMemberOrder(params) { return http.request({ url: "/member/evaluation", method: Method.POST, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data: params, }); } /** * 追加评论 * @param params */ export function AppendCommentsOrder(params) { return http.request({ url: "members/comments/additional", method: Method.POST, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data: params, }); } // TODO 第一版本暂未实现此功能 /** * 商品咨询 * @param goods_id * @param ask_content */ export function consultating(goods_id, ask_content, anonymous) { return http.request({ url: "members/asks", method: Method.POST, header: { "content-type": "application/x-www-form-urlencoded" }, needToken: true, data: { goods_id, ask_content, anonymous, }, }); } /** * 获取商品收藏 * @param params * @returns {AxiosPromise} */ export function getGoodsCollection(params, type) { return http.request({ url: `/member/collection/${type}`, method: Method.GET, needToken: true, loading: false, message: false, params, }); } /** * 获取商品收藏 * @param params * @returns {AxiosPromise} */ export function getStoreCollection(params, type) { return http.request({ url: `/member/storeCollection/${type}`, method: Method.GET, needToken: true, loading: false, message: false, params, }); } /** * 收藏商品 * @returns {AxiosPromise} */ export function collectionGoods(type, id) { return http.request({ url: `/member/collection/add/${type}/${id}`, method: Method.POST, needToken: true, }); } /** * 删除商品收藏 * @param ids 收藏ID【集合或单个商品ID】 * @returns {AxiosPromise} */ export function deleteGoodsCollection(ids) { if (Array.isArray(ids)) { ids = ids.join(","); } return http.request({ url: `/member/collection/delete/GOODS/${ids}`, method: Method.DELETE, needToken: true, }); } /** * 删除店铺收藏 * @param store_id */ export function deleteStoreCollection(store_id) { return http.request({ url: `/member/storeCollection/delete/STORE/${store_id}`, method: Method.DELETE, needToken: true, }); } /** * 获取商品是否被收藏 * @param good_id */ export function getGoodsIsCollect(type, good_id) { return http.request({ url: `/member/collection/isCollection/${type}/${good_id}`, method: Method.GET, needToken: true, loading: false, }); } /** * 获取商品是否被收藏 * @param good_id */ export function getStoreIsCollect(type, store_id) { return http.request({ url: `/member/storeCollection/isCollection/${type}/${store_id}`, method: Method.GET, needToken: true, loading: false, }); } /** * 收藏店铺 * @param store_id 店铺ID * @returns {AxiosPromise} */ export function collectionStore(store_id) { return http.request({ url: `/member/storeCollection/add/STORE/${store_id}`, method: Method.POST, needToken: true, }); } /** * 获取当前登录的用户信息 * @returns {AxiosPromise} */ export function getUserInfo() { return http.request({ url: "/passport/member", method: Method.GET, needToken: true, }); } /** * 获取当前用户的预存款 * @returns {AxiosPromise} */ export function getUserWallet() { return http.request({ url: "/wallet/wallet", method: Method.GET, needToken: true, }); } /** * 保存用户信息 * @param params * @returns {AxiosPromise} */ export function saveUserInfo(params) { return http.request({ url: "/passport/member/editOwn", method: Method.PUT, header: { "content-type": "application/x-www-form-urlencoded" }, needToken: true, data: params, }); } /** * 添加发票 * @param params */ export function addReceipt(params) { return http.request({ url: "/trade/receipt", method: Method.POST, needToken: true, params, }); } /** * 获取商品评论列表 * @param goodsId * @param params */ export function getGoodsComments(goodsId, params) { return http.request({ url: `/member/evaluation/${goodsId}/goodsEvaluation`, method: Method.GET, loading: false, params, }); } /** * 获取商品评论数量统计 * @param goodsId */ export function getGoodsCommentsCount(goodsId) { return http.request({ url: `/member/evaluation/${goodsId}/evaluationNumber`, method: Method.GET, loading: false, }); } /** * 获取未读消息数量信息 */ export function getNoReadMessageNum() { return http.request({ url: `members/member-nocice-logs/number`, method: Method.GET, needToken: true, }); } /** * 我的足迹列表 * @param pageNumber pageSize * */ export function myTrackList(params) { return http.request({ url: `/member/footprint`, method: Method.GET, needToken: true, params, }); } /** * 根据id删除会员足迹 * @param id */ export function deleteHistoryListId(ids) { return http.request({ url: `/member/footprint/delByIds/${ids}`, method: Method.DELETE, needToken: true, }); } /** * 获取当前会员优惠券列表 * @param */ export function getMemberCoupons(data) { return http.request({ url: `/promotion/coupon/getCoupons`, method: Method.GET, needToken: true, params: data, }); } /** * 获取当前会员可使用的优惠券数量 * */ export function getCouponsNum() { return http.request({ url: `/promotion/coupon/getCouponsNum`, method: Method.GET, needToken: true, }); } /** * 获取会员积分VO * @param */ export function getMemberPointSum() { return http.request({ url: `member/memberPointsHistory/getMemberPointsHistoryVO`, method: Method.GET, }); } /** * 获取会员积分VO * @param */ export function withdrawalSettingVO() { return http.request({ url: `/wallet/wallet/withdrawalSettingVO`, method: Method.GET, needToken: true, }); } ================================================ FILE: api/message.js ================================================ /** * 站内消息相关API */ import {http,Method} from '@/utils/request.js'; const request = http.request import api from '@/config/api.js'; /** * 获取微信消息订阅 * @param params * @returns {AxiosPromise} */ export function getWeChatMpMessage() { return http.request({ url: 'passport/connect/miniProgram/subscribeMessage', method: Method.GET }); } /** * 获取消息列表 * @param params * @returns {AxiosPromise} */ export function getMessages(params) { params = params || {}; params.pageSize = params.pageSize || 5; return http.request({ url: 'members/member-nocice-logs', method: Method.GET, needToken: true, params, }); } /** * 标记消息为已读 * @param ids */ export function messageMarkAsRead(ids) { return http.request({ url: `/message/member/${ids}`, method: Method.PUT, needToken: true, }); } //读取站内消息 export function editMessages(message_id,params){ return http.request({ url:`/message/member/${message_id}`, method:Method.PUT, needToken:true, params }) } //获取站内消息 export function messages(params) { return http.request({ url: "/message/member", method: Method.GET, needToken: true, params, }); } /** * 获取物流消息列表 * @param params * @returns {AxiosPromise} */ export function getLogisticsMessages(params) { params = params || {}; params.pageSize = params.pageSize || 5; return http.request({ url: 'trade/logistics/message', method: Method.GET, needToken: true, params, }); } /** * @param appType * @returns {AxiosPromise} * */ export function getAppVersion(appType) { return http.request({ url: `/other/appVersion/${appType}`, method: Method.GET, type:"manager" }); } /** * @param appType * @returns {AxiosPromise} * */ export function getAppVersionList(type,data) { return http.request({ url: `/other/appVersion/appVersion/${type}`, method: Method.GET, type:"manager", data }); } ================================================ FILE: api/order.js ================================================ /** * 订单相关API */ import { http, Method } from "@/utils/request.js"; /** * 选择发票 * @param params */ export function getReceipt(params) { return http.request({ url: "/trade/carts/select/receipt", method: Method.GET, needToken: true, params, }); } /** * 选择发票 * @param id */ export function getReceiptDetail(id) { return http.request({ url: `/trade/receipt/${id}`, method: Method.GET, needToken: true, }); } /** * 选择配送方式 * @param params */ export function selectedShipMethod(params) { return http.request({ url: "/trade/carts/shippingMethod", method: Method.GET, needToken: true, params, }); } /** * 获取订单列表 * @param params */ export function getOrderList(params) { return http.request({ url: "/order/order", method: Method.GET, needToken: true, params, }); } /** * 获取订单详情 * @param orderSn 订单编号 */ export function getOrderDetail(orderSn) { return http.request({ url: `/order/order/${orderSn}`, method: Method.GET, needToken: true, }); } /** * 取消订单 * @param orderSn 订单编号 * @param reason 取消原因 */ export function cancelOrder(orderSn, reason) { return http.request({ url: `/order/order/${orderSn}/cancel`, method: Method.POST, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data: reason, }); } /** * 确认收货 * @param orderSn 订单编号 */ export function confirmReceipt(orderSn) { return http.request({ url: `/order/order/${orderSn}/receiving`, method: Method.POST, needToken: true, }); } /** * 获取当前拼团订单的拼团分享信息 * @param {*} parentOrderSn * @param {*} skuId */ export function getPinTuanShare(parentOrderSn,skuId) { return http.request({ url: `promotion/pintuan/share`, method: Method.GET, needToken: true, params:{parentOrderSn,skuId} }); } ================================================ FILE: api/passport.js ================================================ /** * Created by Andste on 2018/5/2. * 用户认证相关API */ import storage from '@/utils/storage.js'; import {http, Method} from '@/utils/request.js'; import { md5 } from '@/utils/md5.js'; /** * 普通登录 * @param username * @param password * @param captcha */ export function login(username, password, captcha) { return http.request({ url: 'passport/login', method: Method.POST, params: { username, password: md5(password), captcha, uuid: storage.getUuid(), }, }); } /** * 验证账户信息 * @param captcha * @param account */ export function validAccount(captcha, account) { return http.request({ url: 'passport/find-pwd', method: Method.GET, params: { uuid: storage.getUuid(), captcha, account, }, }); } /** * 发送找回密码短信 * @param uuid * @param captcha */ export function sendFindPasswordSms(uuid,captcha) { return http.request({ url: 'passport/find-pwd/send', method: Method.POST, header:{'content-type':"application/x-www-form-urlencoded"}, data: { uuid:uuid, captcha, }, }); } /** * 校验找回密码验证码 * @param uuid * @param sms_code */ export function validFindPasswordSms(uuid, sms_code) { return http.request({ url: 'passport/find-pwd/valid', method: Method.GET, params: { uuid, sms_code, }, }); } /** * 修改密码【找回密码用】 * @param password * @param uuid */ export function changePassword(password, uuid) { if (!uuid) { uuid = storage.getUuid(); } return http.request({ url: 'passport/find-pwd/update-password', method: Method.PUT, header:{'content-type':"application/x-www-form-urlencoded"}, data: { uuid, password: md5(password), }, }); } // 保存生物认证登录 export function setBiolofy(params) { return http.request({ url: `passport/login/save/biology`, method: 'POST', params }) } ================================================ FILE: api/point.js ================================================ import {http, Method} from '@/utils/request.js'; /** * 签到 * @param params */ export function sign() { return http.request({ url: '/members/sign', method: Method.POST, needToken: true, }); } /** * 签到时间获取 * @param params */ export function signTime(time) { return http.request({ url: '/members/sign?time='+time, method: Method.GET, needToken: true, }); } ================================================ FILE: api/promotions.js ================================================ /** * 促销相关API */ import { http, Method } from "@/utils/request.js"; /** * 获取当前直播列表 * * @param {*} * @returns */ export function getLiveList(params) { return http.request({ url: `broadcast/studio`, method: Method.GET, params, }); } /** * 获取当前拼团活动的未成团的会员 */ export function getPromotionGroupMember(pintuanId) { return http.request({ url: `promotion/pintuan/${pintuanId}/members`, method: Method.GET, }); } /** 获取拼团列表 */ export function getAssembleList(params) { return http.request({ url: "promotion/pintuan", method: Method.GET, loading: false, params, }); } /** * 获取积分商城分类 */ export function getPointsCategory() { return http.request({ url: "/promotion/pointsGoods/category", method: Method.GET, }); } /** * 获取积分商城商品 * @param params */ export function getPointsGoods(params) { return http.request({ url: "/promotion/pointsGoods", method: Method.GET, params, }); } /** * 获取积分商城商品详情 * @param params */ export function getPointsGoodsDetail(id) { return http.request({ url: "/promotion/pointsGoods/"+id, method: Method.GET, }); } /** * 获取限时抢购时间线 当天限时抢购信息 */ export function getSeckillTimeLine() { return http.request({ url: "promotion/seckill", method: Method.GET, }); } /** * 获取限时抢购商品 获取某个时刻的限时抢购商品信息 * @param params */ export function getSeckillTimeGoods(timeline) { return http.request({ url: `promotion/seckill/${timeline}`, method: Method.GET, }); } /** * 获取全部优惠券 * @param params */ export function getAllCoupons(params) { return http.request({ url: "/promotion/coupon", method: Method.GET, params, }); } /** * 分页获取砍价商品 * @param params */ export function getBargainList(params) { return http.request({ url: "/promotion/kanjiaGoods", method: Method.GET, params, }); } /** * 分页获取砍价商品 * @param params */ export function getBargainDetail(id) { return http.request({ url: `/promotion/kanjiaGoods/${id}`, method: Method.GET, }); } /** * 获取砍价活动 * @param params */ export function getBargainActivity(params) { return http.request({ url: `/promotion/kanjiaGoods/getKanjiaActivity`, method: Method.POST, params, }); } /** * 发起砍价活动 * @param params */ export function openBargain(params) { return http.request({ url: `/promotion/kanjiaGoods`, method: Method.POST, header: { "content-type": "application/x-www-form-urlencoded" }, data: params, }); } /** * 分页获取砍价活动-帮砍记录 */ export function getBargainLog(params) { return http.request({ url: `/promotion/kanjiaGoods/getKanjiaActivity/logs`, method: Method.GET, data: params, }); } /** * 分页获取砍价活动-帮砍记录 */ export function helpBargain(kanJiaActivityId) { return http.request({ url: `promotion/kanjiaGoods/help/${kanJiaActivityId}`, method: Method.POST, }); } /** * 分页获取已参与的砍价活动 */ export function getMineBargainLog(params) { return http.request({ url: `/promotion/kanjiaGoods/kanjiaActivity/mine/`, method: Method.GET, params }); } ================================================ FILE: api/safe.js ================================================ /** * 安全相关API */ import {http,Method} from '@/utils/request.js'; import storage from "@/utils/storage.js" import { md5 } from '@/utils/md5.js' /** * 发送绑定手机验证码 * @param mobile * @param captcha */ export function sendBindMobileSms(mobile, captcha) { return http.request({ url: `members/security/bind/send/${mobile}`, method: Method.POST, needToken: true, header:{'content-type':"application/x-www-form-urlencoded"}, data: { uuid: storage.getUuid(), captcha, }, }); } /** * 绑定手机号 * @param mobile * @param sms_code */ export function bindMobile(mobile, sms_code) { return http.request({ url: `members/security/bind/${mobile}`, method: Method.PUT, needToken: true, data: {sms_code}, }); } /** * 发送手机验证码 * 在修改手机号和更改密码时通用 * @param captcha */ export function sendMobileSms(captcha) { return http.request({ url: 'members/security/send', method: Method.POST, needToken: true, header:{'content-type':"application/x-www-form-urlencoded"}, data: { uuid: storage.getUuid(), captcha, }, }); } /** * 验证更换手机号短信 * @param sms_code */ export function validChangeMobileSms(sms_code) { return http.request({ url: 'members/security/exchange-bind', method: Method.GET, needToken: true, params: {sms_code}, }); } /** * 更换手机号 * @param mobile * @param sms_code */ export function changeMobile(mobile, sms_code) { return http.request({ url: `members/security/exchange-bind/${mobile}`, method: Method.PUT, header:{'content-type':"application/x-www-form-urlencoded"}, needToken: true, data: {sms_code}, }); } /** * 更改密码 * @param captcha * @param password */ export function changePassword(captcha, password) { return http.request({ url: 'members/security/password', method: Method.PUT, header:{'content-type':"application/x-www-form-urlencoded"}, needToken: true, data: { uuid: storage.getUuid(), captcha, password: md5(password), }, }); } /** * 获取当前实名认证进度 * @param email * @param email_code */ export function contractStep() { return http.request({ url: `members/contract/step`, method: Method.GET, needToken: true }) } /** * 实名认证 * @param email * @param email_code */ export function authentication(params) { return http.request({ url: `members/contract/authentication`, method: Method.POST, needToken: true, header:{'content-type':"application/x-www-form-urlencoded"}, data: params }) } ================================================ FILE: api/store.js ================================================ /** * 店铺相关API */ import {http, Method} from '@/utils/request.js'; /** * 获取店铺列表 * @param params */ export function getStoreList(params) { return http.request({ url: '/store/store', method: Method.GET, params, }); } /** * 获取店铺基本信息 * @param storeId */ export function getStoreBaseInfo(storeId) { return http.request({ url: `/store/store/get/detail/${storeId}`, method: Method.GET, loading: false, }); } /** * 获取店铺分类 * @param id */ export function getStoreCategory(id) { return http.request({ url: `/store/store/label/get/${id}`, method: Method.GET, }); } /** * 营业执照 * @param id */ export function getLicencePhoto(id) { return http.request({ url: `/store/store/get/licencePhoto/${id}`, method: Method.GET, }); } /** * 获取自提点信息 * @param id */ export function getStoreAddress(storeId,params) { return http.request({ url: `/store/address/page/${storeId}`, method: Method.GET, params }); } ================================================ FILE: api/trade.js ================================================ /** * 交♂易相关API */ import { http, Method } from "@/utils/request.js"; /** * 获取购物车列表 * @param show_type 要显示的类型 all:全部 checked:已选中的 */ export function getCarts() { return http.request({ url: `/trade/carts/all`, method: Method.GET, needToken: true, loading: false, }); } /** * 获取购物车总数 * @param show_type 要显示的类型 all:全部 checked:已选中的 */ export function getCartNum() { return http.request({ url: `/trade/carts/count`, method: Method.GET, needToken: true, loading: false, }); } /** * 获取购物车可用优惠券数量 * @param way 购物车购买:CART/立即购买:BUY_NOW/拼团购买:PINTUAN / 积分购买:POINT */ export function getCartCouponNum(way) { return http.request({ url: `/trade/carts/coupon/num?way=${way}`, method: Method.GET, needToken: true, loading: false, }); } /** * 添加货品到购物车 * @param skuId 产品ID * @param num 产品的购买数量 * @param cartType 购物车类型,默认加入购物车 */ export function addToCart(data) { return http.request({ url: "/trade/carts", method: Method.POST, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data, }); } /** * 更新购物车商品数量 * @param skuId * @param num */ export function updateSkuNum(skuId, num = 1) { return http.request({ url: `/trade/carts/sku/num/${skuId}`, method: Method.POST, header: { "content-type": "application/x-www-form-urlencoded" }, needToken: true, data: { num }, }); } /** * 更新购物车货品选中状态 * @param skuId * @param checked */ export function updateSkuChecked(skuId, checked) { return http.request({ url: `/trade/carts/sku/checked/${skuId}`, method: Method.POST, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data: { checked }, }); } /** * 删除多个货品项 * @param skuIds */ export function deleteSkuItem(skuIds) { return http.request({ url: `/trade/carts/sku/remove?skuIds=${skuIds}`, method: Method.DELETE, needToken: true, }); } /** * 设置全部货品为选中或不选中 * @param checked */ export function checkAll(checked) { return http.request({ url: "/trade/carts/sku/checked", method: Method.POST, needToken: true, params: { checked }, }); } /** * 设置店铺内全部货品选中状态 * @param storeId * @param checked */ export function checkStore(storeId, checked) { return http.request({ url: `/trade/carts/store/${storeId}`, method: Method.POST, needToken: true, header: { "content-type": "application/x-www-form-urlencoded" }, data: { checked }, }); } /** * 获取结算参数 */ export function getCheckoutParams(way) { return http.request({ url: "/trade/carts/checked?way=" + way, method: Method.GET, needToken: true, }); } /** * 设置收货地址ID * @param addressId */ export function setAddressId(addressId,way) { return http.request({ url: `/trade/carts/shippingAddress?shippingAddressId=${addressId}&way=${way}`, method: Method.GET, needToken: true, }); } /** * 设置收货地址ID * @param addressId */ export function setStoreAddressId(storeAddressId,way) { return http.request({ url: `/trade/carts/storeAddress?storeAddressId=${storeAddressId}&way=${way}`, method: Method.GET, needToken: true, }); } /** * 创建交易 */ export function createTrade(params) { return http.request({ url: "/trade/carts/create/trade", method: Method.POST, needToken: true, message: false, data:params, }); } /** * 根据交易编号或订单编号查询收银台数据 * @param params */ export function getCashierData(params) { return http.request({ url: "payment/cashier/tradeDetail", method: Method.GET, needToken: true, params, }); } /** * 发起支付 * @param paymentMethod * @param paymentClient * @param params * @returns {*|*} */ export function initiatePay(paymentMethod, paymentClient, params) { return http.request({ url: `payment/cashier/pay/${paymentMethod}/${paymentClient}`, method: Method.GET, needToken: true, params, }); } /** * 查询物流 * @param orderSn */ export function getExpress(orderSn) { return http.request({ url: `/order/order/getTraces/${orderSn}`, method: Method.POST, needToken: true, }); } /** * 获取当前会员的对于当前商品可使用的优惠券列表 */ export function getMemberCanUse(data) { return http.request({ url: `/promotion/coupon/canUse`, method: Method.GET, params: data, }); } /** * 获取当前会员的优惠券列表 */ export function getMemberCouponList(data) { return http.request({ url: `/promotion/coupon/getCoupons`, method: Method.GET, params: data, }); } /** * 使用优惠券 */ export function useCoupon(params) { return http.request({ url: `/trade/carts/select/coupon`, method: Method.GET, needToken: true, params: params, }); } /** * 更换参与活动 * @param params */ export function changeActivity(params) { return http.request({ url: "trade/promotion", method: Method.POST, needToken: true, data: params, header: { "content-type": "application/x-www-form-urlencoded" }, }); } /** * 根据交易单号查询订单列表 * @param trade_sn */ export function reBuy(sn) { return http.request({ url: `trade/carts/rebuy/${sn}`, method: Method.POST, needToken: true, }); } /** * 获取全部配送方式 */ export function shippingMethodList(params) { return http.request({ url: `/trade/carts/shippingMethodList`, method: Method.GET, needToken: true, params: params, }); } /** * 提交配送方式 * @param params */ export function setShipMethod(params) { return http.request({ url: "/trade/carts/shippingMethod", method: Method.PUT, needToken: true, params, }); } // 查看包裹列表 export function getPackage(orderSn) { return http.request({ url: `/order/order/getPackage/${orderSn}`, method: Method.GET, needToken: true, }); } ================================================ FILE: components/Sansnn-uQRCode/uqrcode.js ================================================ // uqrcode.js 复制直接用 //--------------------------------------------------------------------- // github https://github.com/Sansnn/uQRCode //--------------------------------------------------------------------- let uQRCode = {}; (function() { //--------------------------------------------------------------------- // QRCode for JavaScript // // Copyright (c) 2009 Kazuhiko Arase // // URL: http://www.d-project.com/ // // Licensed under the MIT license: // http://www.opensource.org/licenses/mit-license.php // // The word "QR Code" is registered trademark of // DENSO WAVE INCORPORATED // http://www.denso-wave.com/qrcode/faqpatent-e.html // //--------------------------------------------------------------------- //--------------------------------------------------------------------- // QR8bitByte //--------------------------------------------------------------------- function QR8bitByte(data) { this.mode = QRMode.MODE_8BIT_BYTE; this.data = data; } QR8bitByte.prototype = { getLength: function(buffer) { return this.data.length; }, write: function(buffer) { for (var i = 0; i < this.data.length; i++) { // not JIS ... buffer.put(this.data.charCodeAt(i), 8); } } }; //--------------------------------------------------------------------- // QRCode //--------------------------------------------------------------------- function QRCode(typeNumber, errorCorrectLevel) { this.typeNumber = typeNumber; this.errorCorrectLevel = errorCorrectLevel; this.modules = null; this.moduleCount = 0; this.dataCache = null; this.dataList = new Array(); } QRCode.prototype = { addData: function(data) { var newData = new QR8bitByte(data); this.dataList.push(newData); this.dataCache = null; }, isDark: function(row, col) { if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) { throw new Error(row + "," + col); } return this.modules[row][col]; }, getModuleCount: function() { return this.moduleCount; }, make: function() { // Calculate automatically typeNumber if provided is < 1 if (this.typeNumber < 1) { var typeNumber = 1; for (typeNumber = 1; typeNumber < 40; typeNumber++) { var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, this.errorCorrectLevel); var buffer = new QRBitBuffer(); var totalDataCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalDataCount += rsBlocks[i].dataCount; } for (var i = 0; i < this.dataList.length; i++) { var data = this.dataList[i]; buffer.put(data.mode, 4); buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber)); data.write(buffer); } if (buffer.getLengthInBits() <= totalDataCount * 8) break; } this.typeNumber = typeNumber; } this.makeImpl(false, this.getBestMaskPattern()); }, makeImpl: function(test, maskPattern) { this.moduleCount = this.typeNumber * 4 + 17; this.modules = new Array(this.moduleCount); for (var row = 0; row < this.moduleCount; row++) { this.modules[row] = new Array(this.moduleCount); for (var col = 0; col < this.moduleCount; col++) { this.modules[row][col] = null; //(col + row) % 3; } } this.setupPositionProbePattern(0, 0); this.setupPositionProbePattern(this.moduleCount - 7, 0); this.setupPositionProbePattern(0, this.moduleCount - 7); this.setupPositionAdjustPattern(); this.setupTimingPattern(); this.setupTypeInfo(test, maskPattern); if (this.typeNumber >= 7) { this.setupTypeNumber(test); } if (this.dataCache == null) { this.dataCache = QRCode.createData(this.typeNumber, this.errorCorrectLevel, this.dataList); } this.mapData(this.dataCache, maskPattern); }, setupPositionProbePattern: function(row, col) { for (var r = -1; r <= 7; r++) { if (row + r <= -1 || this.moduleCount <= row + r) continue; for (var c = -1; c <= 7; c++) { if (col + c <= -1 || this.moduleCount <= col + c) continue; if ((0 <= r && r <= 6 && (c == 0 || c == 6)) || (0 <= c && c <= 6 && (r == 0 || r == 6)) || (2 <= r && r <= 4 && 2 <= c && c <= 4)) { this.modules[row + r][col + c] = true; } else { this.modules[row + r][col + c] = false; } } } }, getBestMaskPattern: function() { var minLostPoint = 0; var pattern = 0; for (var i = 0; i < 8; i++) { this.makeImpl(true, i); var lostPoint = QRUtil.getLostPoint(this); if (i == 0 || minLostPoint > lostPoint) { minLostPoint = lostPoint; pattern = i; } } return pattern; }, createMovieClip: function(target_mc, instance_name, depth) { var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth); var cs = 1; this.make(); for (var row = 0; row < this.modules.length; row++) { var y = row * cs; for (var col = 0; col < this.modules[row].length; col++) { var x = col * cs; var dark = this.modules[row][col]; if (dark) { qr_mc.beginFill(0, 100); qr_mc.moveTo(x, y); qr_mc.lineTo(x + cs, y); qr_mc.lineTo(x + cs, y + cs); qr_mc.lineTo(x, y + cs); qr_mc.endFill(); } } } return qr_mc; }, setupTimingPattern: function() { for (var r = 8; r < this.moduleCount - 8; r++) { if (this.modules[r][6] != null) { continue; } this.modules[r][6] = (r % 2 == 0); } for (var c = 8; c < this.moduleCount - 8; c++) { if (this.modules[6][c] != null) { continue; } this.modules[6][c] = (c % 2 == 0); } }, setupPositionAdjustPattern: function() { var pos = QRUtil.getPatternPosition(this.typeNumber); for (var i = 0; i < pos.length; i++) { for (var j = 0; j < pos.length; j++) { var row = pos[i]; var col = pos[j]; if (this.modules[row][col] != null) { continue; } for (var r = -2; r <= 2; r++) { for (var c = -2; c <= 2; c++) { if (r == -2 || r == 2 || c == -2 || c == 2 || (r == 0 && c == 0)) { this.modules[row + r][col + c] = true; } else { this.modules[row + r][col + c] = false; } } } } } }, setupTypeNumber: function(test) { var bits = QRUtil.getBCHTypeNumber(this.typeNumber); for (var i = 0; i < 18; i++) { var mod = (!test && ((bits >> i) & 1) == 1); this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod; } for (var i = 0; i < 18; i++) { var mod = (!test && ((bits >> i) & 1) == 1); this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod; } }, setupTypeInfo: function(test, maskPattern) { var data = (this.errorCorrectLevel << 3) | maskPattern; var bits = QRUtil.getBCHTypeInfo(data); // vertical for (var i = 0; i < 15; i++) { var mod = (!test && ((bits >> i) & 1) == 1); if (i < 6) { this.modules[i][8] = mod; } else if (i < 8) { this.modules[i + 1][8] = mod; } else { this.modules[this.moduleCount - 15 + i][8] = mod; } } // horizontal for (var i = 0; i < 15; i++) { var mod = (!test && ((bits >> i) & 1) == 1); if (i < 8) { this.modules[8][this.moduleCount - i - 1] = mod; } else if (i < 9) { this.modules[8][15 - i - 1 + 1] = mod; } else { this.modules[8][15 - i - 1] = mod; } } // fixed module this.modules[this.moduleCount - 8][8] = (!test); }, mapData: function(data, maskPattern) { var inc = -1; var row = this.moduleCount - 1; var bitIndex = 7; var byteIndex = 0; for (var col = this.moduleCount - 1; col > 0; col -= 2) { if (col == 6) col--; while (true) { for (var c = 0; c < 2; c++) { if (this.modules[row][col - c] == null) { var dark = false; if (byteIndex < data.length) { dark = (((data[byteIndex] >>> bitIndex) & 1) == 1); } var mask = QRUtil.getMask(maskPattern, row, col - c); if (mask) { dark = !dark; } this.modules[row][col - c] = dark; bitIndex--; if (bitIndex == -1) { byteIndex++; bitIndex = 7; } } } row += inc; if (row < 0 || this.moduleCount <= row) { row -= inc; inc = -inc; break; } } } } }; QRCode.PAD0 = 0xEC; QRCode.PAD1 = 0x11; QRCode.createData = function(typeNumber, errorCorrectLevel, dataList) { var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel); var buffer = new QRBitBuffer(); for (var i = 0; i < dataList.length; i++) { var data = dataList[i]; buffer.put(data.mode, 4); buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber)); data.write(buffer); } // calc num max data. var totalDataCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalDataCount += rsBlocks[i].dataCount; } if (buffer.getLengthInBits() > totalDataCount * 8) { throw new Error("code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")"); } // end code if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) { buffer.put(0, 4); } // padding while (buffer.getLengthInBits() % 8 != 0) { buffer.putBit(false); } // padding while (true) { if (buffer.getLengthInBits() >= totalDataCount * 8) { break; } buffer.put(QRCode.PAD0, 8); if (buffer.getLengthInBits() >= totalDataCount * 8) { break; } buffer.put(QRCode.PAD1, 8); } return QRCode.createBytes(buffer, rsBlocks); } QRCode.createBytes = function(buffer, rsBlocks) { var offset = 0; var maxDcCount = 0; var maxEcCount = 0; var dcdata = new Array(rsBlocks.length); var ecdata = new Array(rsBlocks.length); for (var r = 0; r < rsBlocks.length; r++) { var dcCount = rsBlocks[r].dataCount; var ecCount = rsBlocks[r].totalCount - dcCount; maxDcCount = Math.max(maxDcCount, dcCount); maxEcCount = Math.max(maxEcCount, ecCount); dcdata[r] = new Array(dcCount); for (var i = 0; i < dcdata[r].length; i++) { dcdata[r][i] = 0xff & buffer.buffer[i + offset]; } offset += dcCount; var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount); var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1); var modPoly = rawPoly.mod(rsPoly); ecdata[r] = new Array(rsPoly.getLength() - 1); for (var i = 0; i < ecdata[r].length; i++) { var modIndex = i + modPoly.getLength() - ecdata[r].length; ecdata[r][i] = (modIndex >= 0) ? modPoly.get(modIndex) : 0; } } var totalCodeCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalCodeCount += rsBlocks[i].totalCount; } var data = new Array(totalCodeCount); var index = 0; for (var i = 0; i < maxDcCount; i++) { for (var r = 0; r < rsBlocks.length; r++) { if (i < dcdata[r].length) { data[index++] = dcdata[r][i]; } } } for (var i = 0; i < maxEcCount; i++) { for (var r = 0; r < rsBlocks.length; r++) { if (i < ecdata[r].length) { data[index++] = ecdata[r][i]; } } } return data; } //--------------------------------------------------------------------- // QRMode //--------------------------------------------------------------------- var QRMode = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 }; //--------------------------------------------------------------------- // QRErrorCorrectLevel //--------------------------------------------------------------------- var QRErrorCorrectLevel = { L: 1, M: 0, Q: 3, H: 2 }; //--------------------------------------------------------------------- // QRMaskPattern //--------------------------------------------------------------------- var QRMaskPattern = { PATTERN000: 0, PATTERN001: 1, PATTERN010: 2, PATTERN011: 3, PATTERN100: 4, PATTERN101: 5, PATTERN110: 6, PATTERN111: 7 }; //--------------------------------------------------------------------- // QRUtil //--------------------------------------------------------------------- var QRUtil = { PATTERN_POSITION_TABLE: [ [], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170] ], G15: (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0), G18: (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0), G15_MASK: (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1), getBCHTypeInfo: function(data) { var d = data << 10; while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) { d ^= (QRUtil.G15 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15))); } return ((data << 10) | d) ^ QRUtil.G15_MASK; }, getBCHTypeNumber: function(data) { var d = data << 12; while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) { d ^= (QRUtil.G18 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18))); } return (data << 12) | d; }, getBCHDigit: function(data) { var digit = 0; while (data != 0) { digit++; data >>>= 1; } return digit; }, getPatternPosition: function(typeNumber) { return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1]; }, getMask: function(maskPattern, i, j) { switch (maskPattern) { case QRMaskPattern.PATTERN000: return (i + j) % 2 == 0; case QRMaskPattern.PATTERN001: return i % 2 == 0; case QRMaskPattern.PATTERN010: return j % 3 == 0; case QRMaskPattern.PATTERN011: return (i + j) % 3 == 0; case QRMaskPattern.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0; case QRMaskPattern.PATTERN101: return (i * j) % 2 + (i * j) % 3 == 0; case QRMaskPattern.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 == 0; case QRMaskPattern.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 == 0; default: throw new Error("bad maskPattern:" + maskPattern); } }, getErrorCorrectPolynomial: function(errorCorrectLength) { var a = new QRPolynomial([1], 0); for (var i = 0; i < errorCorrectLength; i++) { a = a.multiply(new QRPolynomial([1, QRMath.gexp(i)], 0)); } return a; }, getLengthInBits: function(mode, type) { if (1 <= type && type < 10) { // 1 - 9 switch (mode) { case QRMode.MODE_NUMBER: return 10; case QRMode.MODE_ALPHA_NUM: return 9; case QRMode.MODE_8BIT_BYTE: return 8; case QRMode.MODE_KANJI: return 8; default: throw new Error("mode:" + mode); } } else if (type < 27) { // 10 - 26 switch (mode) { case QRMode.MODE_NUMBER: return 12; case QRMode.MODE_ALPHA_NUM: return 11; case QRMode.MODE_8BIT_BYTE: return 16; case QRMode.MODE_KANJI: return 10; default: throw new Error("mode:" + mode); } } else if (type < 41) { // 27 - 40 switch (mode) { case QRMode.MODE_NUMBER: return 14; case QRMode.MODE_ALPHA_NUM: return 13; case QRMode.MODE_8BIT_BYTE: return 16; case QRMode.MODE_KANJI: return 12; default: throw new Error("mode:" + mode); } } else { throw new Error("type:" + type); } }, getLostPoint: function(qrCode) { var moduleCount = qrCode.getModuleCount(); var lostPoint = 0; // LEVEL1 for (var row = 0; row < moduleCount; row++) { for (var col = 0; col < moduleCount; col++) { var sameCount = 0; var dark = qrCode.isDark(row, col); for (var r = -1; r <= 1; r++) { if (row + r < 0 || moduleCount <= row + r) { continue; } for (var c = -1; c <= 1; c++) { if (col + c < 0 || moduleCount <= col + c) { continue; } if (r == 0 && c == 0) { continue; } if (dark == qrCode.isDark(row + r, col + c)) { sameCount++; } } } if (sameCount > 5) { lostPoint += (3 + sameCount - 5); } } } // LEVEL2 for (var row = 0; row < moduleCount - 1; row++) { for (var col = 0; col < moduleCount - 1; col++) { var count = 0; if (qrCode.isDark(row, col)) count++; if (qrCode.isDark(row + 1, col)) count++; if (qrCode.isDark(row, col + 1)) count++; if (qrCode.isDark(row + 1, col + 1)) count++; if (count == 0 || count == 4) { lostPoint += 3; } } } // LEVEL3 for (var row = 0; row < moduleCount; row++) { for (var col = 0; col < moduleCount - 6; col++) { if (qrCode.isDark(row, col) && !qrCode.isDark(row, col + 1) && qrCode.isDark(row, col + 2) && qrCode.isDark(row, col + 3) && qrCode.isDark(row, col + 4) && !qrCode.isDark(row, col + 5) && qrCode.isDark(row, col + 6)) { lostPoint += 40; } } } for (var col = 0; col < moduleCount; col++) { for (var row = 0; row < moduleCount - 6; row++) { if (qrCode.isDark(row, col) && !qrCode.isDark(row + 1, col) && qrCode.isDark(row + 2, col) && qrCode.isDark(row + 3, col) && qrCode.isDark(row + 4, col) && !qrCode.isDark(row + 5, col) && qrCode.isDark(row + 6, col)) { lostPoint += 40; } } } // LEVEL4 var darkCount = 0; for (var col = 0; col < moduleCount; col++) { for (var row = 0; row < moduleCount; row++) { if (qrCode.isDark(row, col)) { darkCount++; } } } var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5; lostPoint += ratio * 10; return lostPoint; } }; //--------------------------------------------------------------------- // QRMath //--------------------------------------------------------------------- var QRMath = { glog: function(n) { if (n < 1) { throw new Error("glog(" + n + ")"); } return QRMath.LOG_TABLE[n]; }, gexp: function(n) { while (n < 0) { n += 255; } while (n >= 256) { n -= 255; } return QRMath.EXP_TABLE[n]; }, EXP_TABLE: new Array(256), LOG_TABLE: new Array(256) }; for (var i = 0; i < 8; i++) { QRMath.EXP_TABLE[i] = 1 << i; } for (var i = 8; i < 256; i++) { QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8]; } for (var i = 0; i < 255; i++) { QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i; } //--------------------------------------------------------------------- // QRPolynomial //--------------------------------------------------------------------- function QRPolynomial(num, shift) { if (num.length == undefined) { throw new Error(num.length + "/" + shift); } var offset = 0; while (offset < num.length && num[offset] == 0) { offset++; } this.num = new Array(num.length - offset + shift); for (var i = 0; i < num.length - offset; i++) { this.num[i] = num[i + offset]; } } QRPolynomial.prototype = { get: function(index) { return this.num[index]; }, getLength: function() { return this.num.length; }, multiply: function(e) { var num = new Array(this.getLength() + e.getLength() - 1); for (var i = 0; i < this.getLength(); i++) { for (var j = 0; j < e.getLength(); j++) { num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i)) + QRMath.glog(e.get(j))); } } return new QRPolynomial(num, 0); }, mod: function(e) { if (this.getLength() - e.getLength() < 0) { return this; } var ratio = QRMath.glog(this.get(0)) - QRMath.glog(e.get(0)); var num = new Array(this.getLength()); for (var i = 0; i < this.getLength(); i++) { num[i] = this.get(i); } for (var i = 0; i < e.getLength(); i++) { num[i] ^= QRMath.gexp(QRMath.glog(e.get(i)) + ratio); } // recursive call return new QRPolynomial(num, 0).mod(e); } }; //--------------------------------------------------------------------- // QRRSBlock //--------------------------------------------------------------------- function QRRSBlock(totalCount, dataCount) { this.totalCount = totalCount; this.dataCount = dataCount; } QRRSBlock.RS_BLOCK_TABLE = [ // L // M // Q // H // 1 [1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], // 2 [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], // 3 [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], // 4 [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], // 5 [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], // 6 [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], // 7 [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], // 8 [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], // 9 [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], // 10 [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], // 11 [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], // 12 [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], // 13 [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], // 14 [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], // 15 [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], // 16 [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], // 17 [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], // 18 [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], // 19 [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], // 20 [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], // 21 [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], // 22 [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], // 23 [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], // 24 [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], // 25 [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], // 26 [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], // 27 [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], // 28 [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], // 29 [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], // 30 [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], // 31 [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], // 32 [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], // 33 [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], // 34 [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], // 35 [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], // 36 [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], // 37 [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], // 38 [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], // 39 [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], // 40 [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16] ]; QRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) { var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel); if (rsBlock == undefined) { throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel); } var length = rsBlock.length / 3; var list = new Array(); for (var i = 0; i < length; i++) { var count = rsBlock[i * 3 + 0]; var totalCount = rsBlock[i * 3 + 1]; var dataCount = rsBlock[i * 3 + 2]; for (var j = 0; j < count; j++) { list.push(new QRRSBlock(totalCount, dataCount)); } } return list; } QRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) { switch (errorCorrectLevel) { case QRErrorCorrectLevel.L: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0]; case QRErrorCorrectLevel.M: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1]; case QRErrorCorrectLevel.Q: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2]; case QRErrorCorrectLevel.H: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3]; default: return undefined; } } //--------------------------------------------------------------------- // QRBitBuffer //--------------------------------------------------------------------- function QRBitBuffer() { this.buffer = new Array(); this.length = 0; } QRBitBuffer.prototype = { get: function(index) { var bufIndex = Math.floor(index / 8); return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) == 1; }, put: function(num, length) { for (var i = 0; i < length; i++) { this.putBit(((num >>> (length - i - 1)) & 1) == 1); } }, getLengthInBits: function() { return this.length; }, putBit: function(bit) { var bufIndex = Math.floor(this.length / 8); if (this.buffer.length <= bufIndex) { this.buffer.push(0); } if (bit) { this.buffer[bufIndex] |= (0x80 >>> (this.length % 8)); } this.length++; } }; //--------------------------------------------------------------------- // Support Chinese //--------------------------------------------------------------------- function utf16To8(text) { var result = ''; var c; for (var i = 0; i < text.length; i++) { c = text.charCodeAt(i); if (c >= 0x0001 && c <= 0x007F) { result += text.charAt(i); } else if (c > 0x07FF) { result += String.fromCharCode(0xE0 | c >> 12 & 0x0F); result += String.fromCharCode(0x80 | c >> 6 & 0x3F); result += String.fromCharCode(0x80 | c >> 0 & 0x3F); } else { result += String.fromCharCode(0xC0 | c >> 6 & 0x1F); result += String.fromCharCode(0x80 | c >> 0 & 0x3F); } } return result; } uQRCode = { errorCorrectLevel: QRErrorCorrectLevel, defaults: { size: 354, margin: 0, backgroundColor: '#ffffff', foregroundColor: '#000000', fileType: 'png', // 'jpg', 'png' errorCorrectLevel: QRErrorCorrectLevel.H, typeNumber: -1 }, make: function(options) { return new Promise((reslove, reject) => { var defaultOptions = { canvasId: options.canvasId, componentInstance: options.componentInstance, text: options.text, size: this.defaults.size, margin: this.defaults.margin, backgroundColor: this.defaults.backgroundColor, foregroundColor: this.defaults.foregroundColor, fileType: this.defaults.fileType, errorCorrectLevel: this.defaults.errorCorrectLevel, typeNumber: this.defaults.typeNumber }; if (options) { for (var i in options) { defaultOptions[i] = options[i]; } } options = defaultOptions; if (!options.canvasId) { console.error('uQRCode: Please set canvasId!'); return; } function createCanvas() { var qrcode = new QRCode(options.typeNumber, options.errorCorrectLevel); qrcode.addData(utf16To8(options.text)); qrcode.make(); var ctx = uni.createCanvasContext(options.canvasId, options.componentInstance); ctx.setFillStyle(options.backgroundColor); ctx.fillRect(0, 0, options.size, options.size); var tileW = (options.size - options.margin * 2) / qrcode.getModuleCount(); var tileH = tileW; for (var row = 0; row < qrcode.getModuleCount(); row++) { for (var col = 0; col < qrcode.getModuleCount(); col++) { var style = qrcode.isDark(row, col) ? options.foregroundColor : options.backgroundColor; ctx.setFillStyle(style); var x = Math.round(col * tileW) + options.margin; var y = Math.round(row * tileH) + options.margin; var w = Math.ceil((col + 1) * tileW) - Math.floor(col * tileW); var h = Math.ceil((row + 1) * tileW) - Math.floor(row * tileW); ctx.fillRect(x, y, w, h); } } setTimeout(function() { ctx.draw(false, (function() { setTimeout(function() { uni.canvasToTempFilePath({ canvasId: options.canvasId, fileType: options.fileType, width: options.size, height: options.size, destWidth: options.size, destHeight: options.size, success: function(res) { let resData; // 将统一为base64格式 let tempFilePath = res.tempFilePath; // H5为base64,其他为相对路径 // #ifdef H5 resData = tempFilePath; options.success && options.success(resData); reslove(resData); // #endif // #ifdef APP-PLUS const path = plus.io.convertLocalFileSystemURL(tempFilePath) // 绝对路径 let fileReader = new plus.io.FileReader(); fileReader.readAsDataURL(path); fileReader.onloadend = res => { resData = res.target.result; options.success && options.success(resData); reslove(resData); }; // #endif // #ifdef MP-WEIXIN || MP-QQ || MP-TOUTIAO uni.getFileSystemManager().readFile({ filePath: tempFilePath, encoding: 'base64', success: res => { resData = 'data:image/png;base64,' + res.data; options.success && options.success(resData); reslove(resData); } }) // #endif // #ifndef H5 || APP-PLUS || MP-WEIXIN || MP-QQ || MP-TOUTIAO if (plus) { const path = plus.io.convertLocalFileSystemURL(tempFilePath) // 绝对路径 let fileReader = new plus.io.FileReader(); fileReader.readAsDataURL(path); fileReader.onloadend = res => { resData = res.target.result; options.success && options.success(resData); reslove(resData); }; } else { uni.request({ url: tempFilePath, method: 'GET', responseType: 'arraybuffer', success: res => { resData = `data:image/png;base64,${uni.arrayBufferToBase64(res.data)}`; // 把arraybuffer转成base64 options.success && options.success(resData); reslove(resData); } }) } // #endif }, fail: function(error) { options.fail && options.fail(error); reject(error); }, complete: function(res) { options.complete && options.complete(res); } }, options.componentInstance); }, options.text.length + 100); })()); }, 150); } createCanvas(); }); } } })() export default uQRCode ================================================ FILE: components/default-page/default-page.vue ================================================ ================================================ FILE: components/m-airbtn/index.vue ================================================ ================================================ FILE: components/m-buy/README.md ================================================ ## 购买组件 1.本组件是砍价,积分购买,参团等复用组 2.后续会将此组件和商品购买组件合并,文档后续再出 ================================================ FILE: components/m-buy/goods.vue ================================================ ================================================ FILE: components/m-buy/popup.js ================================================ export default { height:"1000rpx", //弹出层高度 mode:"bottom", //弹出层位置 radius:"32", //圆角 rpx, close:false //能否点击遮罩退出 } ================================================ FILE: components/m-buy/popup.scss ================================================ .view-class-title { font-size: 26rpx; color: #262626; font-weight: 700; height: 80rpx; line-height: 80rpx; } .confirmBtn { width: 90%; } .confirmBtn, .box-btn { line-height: 80rpx; height: 80rpx; background: $price-color; color: #fff; border-radius: 200px; text-align: center; margin: 5rpx auto; } .btns { display: flex; width: 100%; margin: 0 auto; } .goods-price-bigshow { font-size: 48rpx; font-weight: bold; } .box-btn { flex: 1; margin: 0 10rpx; } ================================================ FILE: components/m-canvas/README.md ================================================ ### 说明 https://ext.dcloud.net.cn/plugin?id=3237 ================================================ FILE: components/m-canvas/index.vue ================================================ ================================================ FILE: components/m-city/m-city.vue ================================================ ================================================ FILE: components/m-goods-list/README.md ================================================ ## 商品列表展示 ### OBJECT 参数说明 | 属性 | 说明 | 类型 | 必填 | | ----------- | ---------------------------------------------------------- | ------- | ---- | | `res` | 显示数据 | Array | 是 | | `type` | 商品展示类型 oneColumns twoColumns ,默认展示一行两列商品 | String | 否 | | `storeName` | 是否展示店铺名称,默认展示 | Boolean | 否 | | `keywords` | 高亮展示搜索内容 | String | 否 | ================================================ FILE: components/m-goods-list/base-list.vue ================================================ ================================================ FILE: components/m-goods-list/common.vue ================================================ ================================================ FILE: components/m-goods-list/list.vue ================================================ ================================================ FILE: components/m-goods-list/promotion.vue ================================================ ================================================ FILE: components/m-goods-recommend/README.md ================================================ ## 商品推荐 ### OBJECT 参数说明 属性|说明|类型|必填 ---|---|---|--- `title`|标题,用于顶部显示的内容|String|否 `pageSize`|显示多少条数据,建议是2的倍数,默认为12条|*|否 `categoryId`|分类id|Function|否 `storeId`|卖家id,搜索店铺商品的时候使用|String|否 ================================================ FILE: components/m-goods-recommend/index.vue ================================================ ================================================ FILE: components/m-placard/index.vue ================================================ ================================================ FILE: components/m-search-revision/m-search-revision.vue ================================================ ================================================ FILE: components/m-share/index.vue ================================================ ================================================ FILE: components/m-share/mp-share.scss ================================================ .share-btn { background: none; font-size: 24rpx; color: #666; display: flex; flex-direction: column; align-items: center; } ================================================ FILE: components/m-take-down-sale-goods/index.vue ================================================ ================================================ FILE: components/popups/popups.vue ================================================ ================================================ FILE: components/uni-load-more/uni-load-more.vue ================================================ ================================================ FILE: components/uni-number-box.vue ================================================ ================================================ FILE: components/uniMap.vue ================================================ ================================================ FILE: components/verification/animation.css ================================================ /* Animation 微动画 基于ColorUI组建库的动画模块 by 文晓港 2019年3月26日19:52:28 */ /* css 滤镜 控制黑白底色gif的 */ .gif-black{ mix-blend-mode: screen; } .gif-white{ mix-blend-mode: multiply; } /* Animation css */ [class*=animation-] { animation-duration: .5s; animation-timing-function: ease-out; animation-fill-mode: both } .animation-fade { animation-name: fade; animation-duration: .8s; animation-timing-function: linear } .animation-scale-up { animation-name: scale-up } .animation-scale-down { animation-name: scale-down } .animation-slide-top { animation-name: slide-top } .animation-slide-bottom { animation-name: slide-bottom } .animation-slide-left { animation-name: slide-left } .animation-slide-right { animation-name: slide-right } .animation-shake { animation-name: shake } .animation-reverse { animation-direction: reverse } @keyframes fade { 0% { opacity: 0 } 100% { opacity: 1 } } @keyframes scale-up { 0% { opacity: 0; transform: scale(.2) } 100% { opacity: 1; transform: scale(1) } } @keyframes scale-down { 0% { opacity: 0; transform: scale(1.8) } 100% { opacity: 1; transform: scale(1) } } @keyframes slide-top { 0% { opacity: 0; transform: translateY(-100%) } 100% { opacity: 1; transform: translateY(0) } } @keyframes slide-bottom { 0% { opacity: 0; transform: translateY(100%) } 100% { opacity: 1; transform: translateY(0) } } @keyframes shake { 0%, 100% { transform: translateX(0) } 10% { transform: translateX(-9px) } 20% { transform: translateX(8px) } 30% { transform: translateX(-7px) } 40% { transform: translateX(6px) } 50% { transform: translateX(-5px) } 60% { transform: translateX(4px) } 70% { transform: translateX(-3px) } 80% { transform: translateX(2px) } 90% { transform: translateX(-1px) } } @keyframes slide-left { 0% { opacity: 0; transform: translateX(-100%) } 100% { opacity: 1; transform: translateX(0) } } @keyframes slide-right { 0% { opacity: 0; transform: translateX(100%) } 100% { opacity: 1; transform: translateX(0) } } ================================================ FILE: components/verification/icon.css ================================================ @keyframes cuIcon-spin { 0% { -webkit-transform: rotate(0); transform: rotate(0); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } .cuIconfont-spin { -webkit-animation: cuIcon-spin 2s infinite linear; animation: cuIcon-spin 2s infinite linear; display: inline-block; } .cuIconfont-pulse { -webkit-animation: cuIcon-spin 1s infinite steps(8); animation: cuIcon-spin 1s infinite steps(8); display: inline-block; } [class*="cuIcon-"] { font-family: "cuIcon"; font-size: inherit; font-style: normal; } @font-face { font-family: "cuIcon"; src: url('//at.alicdn.com/t/font_533566_yfq2d9wdij.eot?t=1545239985831'); /* IE9*/ src: url('//at.alicdn.com/t/font_533566_yfq2d9wdij.eot?t=1545239985831#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAKQcAAsAAAABNKAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8dkoiY21hcAAAAYAAAAiaAAATkilZPq9nbHlmAAAKHAAAjqoAAQkUOjYlCmhlYWQAAJjIAAAALwAAADYUMoFgaGhlYQAAmPgAAAAfAAAAJAhwBcpobXR4AACZGAAAABkAAAScnSIAAGxvY2EAAJk0AAACUAAAAlAhX2C+bWF4cAAAm4QAAAAfAAAAIAJAAOpuYW1lAACbpAAAAUUAAAJtPlT+fXBvc3QAAJzsAAAHLQAADMYi8KXJeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWScwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeMbzQZ27438AQw9zA0AAUZgTJAQDhHQwVeJzN1/nf1mMaxvHP9ZQiSUKWbCXZ1+w7Q0NqImNJhSSSZSyTlMQYs9hlLGPKMoRBMyU1tlIiIrKUfeycZyOpkCVLc1zPYbz8BzPdr7fb8/yQ2/29zuM6TmA5oIlsIU31460U6r+O1m9L4++b0KLx902bnq6fL+ICmtE0GqJltIl20TE6R5foHj3jmDgtzoohMSyGx4i4MC6KS+LquD5uiFvizhgb42NCTIwpMS1mxOx4IyJLtsiNc8vcN7vnodkr+2a/HJCD8oK8MkfmdTk6b8oxeUeOzUk5M1/IuTk/F+Ti/CqXztt62TIIfvIp9osDo0ccHv3ijBgcQ3/8FBfHVY2fYlTcFvfEuMZPcX9MjenxVLwYb8ZH2SRb5aa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XibbllL4e4MEqatTTg+crn8waZrtfW/gthnmJTAAAA') format('woff'), url('//at.alicdn.com/t/font_533566_yfq2d9wdij.ttf?t=1545239985831') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ url('//at.alicdn.com/t/font_533566_yfq2d9wdij.svg?t=1545239985831#cuIconfont') format('svg'); /* iOS 4.1- */ } .cuIcon-appreciate:before { content: "\e644"; } .cuIcon-check:before { content: "\e645"; } .cuIcon-close:before { content: "\e646"; } .cuIcon-edit:before { content: "\e649"; } .cuIcon-emoji:before { content: "\e64a"; } .cuIcon-favorfill:before { content: "\e64b"; } .cuIcon-favor:before { content: "\e64c"; } .cuIcon-loading:before { content: "\e64f"; } .cuIcon-locationfill:before { content: "\e650"; } .cuIcon-location:before { content: "\e651"; } .cuIcon-phone:before { content: "\e652"; } .cuIcon-roundcheckfill:before { content: "\e656"; } .cuIcon-roundcheck:before { content: "\e657"; } .cuIcon-roundclosefill:before { content: "\e658"; } .cuIcon-roundclose:before { content: "\e659"; } .cuIcon-roundrightfill:before { content: "\e65a"; } .cuIcon-roundright:before { content: "\e65b"; } .cuIcon-search:before { content: "\e65c"; } .cuIcon-taxi:before { content: "\e65d"; } .cuIcon-timefill:before { content: "\e65e"; } .cuIcon-time:before { content: "\e65f"; } .cuIcon-unfold:before { content: "\e661"; } .cuIcon-warnfill:before { content: "\e662"; } .cuIcon-warn:before { content: "\e663"; } .cuIcon-camerafill:before { content: "\e664"; } .cuIcon-camera:before { content: "\e665"; } .cuIcon-commentfill:before { content: "\e666"; } .cuIcon-comment:before { content: "\e667"; } .cuIcon-likefill:before { content: "\e668"; } .cuIcon-like:before { content: "\e669"; } .cuIcon-notificationfill:before { content: "\e66a"; } .cuIcon-notification:before { content: "\e66b"; } .cuIcon-order:before { content: "\e66c"; } .cuIcon-samefill:before { content: "\e66d"; } .cuIcon-same:before { content: "\e66e"; } .cuIcon-deliver:before { content: "\e671"; } .cuIcon-evaluate:before { content: "\e672"; } .cuIcon-pay:before { content: "\e673"; } .cuIcon-send:before { content: "\e675"; } .cuIcon-store:before { content: "\e676"; } .cuIcon-ticket:before { content: "\e677"; } .cuIcon-back:before { content: "\e679"; } .cuIcon-cascades:before { content: "\e67c"; } .cuIcon-discover:before { content: "\e67e"; } .cuIcon-list:before { content: "\e682"; } .cuIcon-more:before { content: "\e684"; } .cuIcon-scan:before { content: "\e689"; } .cuIcon-settings:before { content: "\e68a"; } .cuIcon-questionfill:before { content: "\e690"; } .cuIcon-question:before { content: "\e691"; } .cuIcon-storefill:before { content: "\e697"; } .cuIcon-form:before { content: "\e699"; } .cuIcon-pic:before { content: "\e69b"; } .cuIcon-filter:before { content: "\e69c"; } .cuIcon-footprint:before { content: "\e69d"; } .cuIcon-top:before { content: "\e69e"; } .cuIcon-pulldown:before { content: "\e69f"; } .cuIcon-pullup:before { content: "\e6a0"; } .cuIcon-right:before { content: "\e6a3"; } .cuIcon-refresh:before { content: "\e6a4"; } .cuIcon-moreandroid:before { content: "\e6a5"; } .cuIcon-deletefill:before { content: "\e6a6"; } .cuIcon-refund:before { content: "\e6ac"; } .cuIcon-cart:before { content: "\e6af"; } .cuIcon-qrcode:before { content: "\e6b0"; } .cuIcon-remind:before { content: "\e6b2"; } .cuIcon-delete:before { content: "\e6b4"; } .cuIcon-profile:before { content: "\e6b7"; } .cuIcon-home:before { content: "\e6b8"; } .cuIcon-cartfill:before { content: "\e6b9"; } .cuIcon-discoverfill:before { content: "\e6ba"; } .cuIcon-homefill:before { content: "\e6bb"; } .cuIcon-message:before { content: "\e6bc"; } .cuIcon-addressbook:before { content: "\e6bd"; } .cuIcon-link:before { content: "\e6bf"; } .cuIcon-lock:before { content: "\e6c0"; } .cuIcon-unlock:before { content: "\e6c2"; } .cuIcon-vip:before { content: "\e6c3"; } .cuIcon-weibo:before { content: "\e6c4"; } .cuIcon-activity:before { content: "\e6c5"; } .cuIcon-friendaddfill:before { content: "\e6c9"; } .cuIcon-friendadd:before { content: "\e6ca"; } .cuIcon-friendfamous:before { content: "\e6cb"; } .cuIcon-friend:before { content: "\e6cc"; } .cuIcon-goods:before { content: "\e6cd"; } .cuIcon-selection:before { content: "\e6ce"; } .cuIcon-explore:before { content: "\e6d2"; } .cuIcon-present:before { content: "\e6d3"; } .cuIcon-squarecheckfill:before { content: "\e6d4"; } .cuIcon-square:before { content: "\e6d5"; } .cuIcon-squarecheck:before { content: "\e6d6"; } .cuIcon-round:before { content: "\e6d7"; } .cuIcon-roundaddfill:before { content: "\e6d8"; } .cuIcon-roundadd:before { content: "\e6d9"; } .cuIcon-add:before { content: "\e6da"; } .cuIcon-notificationforbidfill:before { content: "\e6db"; } .cuIcon-explorefill:before { content: "\e6dd"; } .cuIcon-fold:before { content: "\e6de"; } .cuIcon-game:before { content: "\e6df"; } .cuIcon-redpacket:before { content: "\e6e0"; } .cuIcon-selectionfill:before { content: "\e6e1"; } .cuIcon-similar:before { content: "\e6e2"; } .cuIcon-appreciatefill:before { content: "\e6e3"; } .cuIcon-infofill:before { content: "\e6e4"; } .cuIcon-info:before { content: "\e6e5"; } .cuIcon-forwardfill:before { content: "\e6ea"; } .cuIcon-forward:before { content: "\e6eb"; } .cuIcon-rechargefill:before { content: "\e6ec"; } .cuIcon-recharge:before { content: "\e6ed"; } .cuIcon-vipcard:before { content: "\e6ee"; } .cuIcon-voice:before { content: "\e6ef"; } .cuIcon-voicefill:before { content: "\e6f0"; } .cuIcon-friendfavor:before { content: "\e6f1"; } .cuIcon-wifi:before { content: "\e6f2"; } .cuIcon-share:before { content: "\e6f3"; } .cuIcon-wefill:before { content: "\e6f4"; } .cuIcon-we:before { content: "\e6f5"; } .cuIcon-lightauto:before { content: "\e6f6"; } .cuIcon-lightforbid:before { content: "\e6f7"; } .cuIcon-lightfill:before { content: "\e6f8"; } .cuIcon-camerarotate:before { content: "\e6f9"; } .cuIcon-light:before { content: "\e6fa"; } .cuIcon-barcode:before { content: "\e6fb"; } .cuIcon-flashlightclose:before { content: "\e6fc"; } .cuIcon-flashlightopen:before { content: "\e6fd"; } .cuIcon-searchlist:before { content: "\e6fe"; } .cuIcon-service:before { content: "\e6ff"; } .cuIcon-sort:before { content: "\e700"; } .cuIcon-down:before { content: "\e703"; } .cuIcon-mobile:before { content: "\e704"; } .cuIcon-mobilefill:before { content: "\e705"; } .cuIcon-copy:before { content: "\e706"; } .cuIcon-countdownfill:before { content: "\e707"; } .cuIcon-countdown:before { content: "\e708"; } .cuIcon-noticefill:before { content: "\e709"; } .cuIcon-notice:before { content: "\e70a"; } .cuIcon-upstagefill:before { content: "\e70e"; } .cuIcon-upstage:before { content: "\e70f"; } .cuIcon-babyfill:before { content: "\e710"; } .cuIcon-baby:before { content: "\e711"; } .cuIcon-brandfill:before { content: "\e712"; } .cuIcon-brand:before { content: "\e713"; } .cuIcon-choicenessfill:before { content: "\e714"; } .cuIcon-choiceness:before { content: "\e715"; } .cuIcon-clothesfill:before { content: "\e716"; } .cuIcon-clothes:before { content: "\e717"; } .cuIcon-creativefill:before { content: "\e718"; } .cuIcon-creative:before { content: "\e719"; } .cuIcon-female:before { content: "\e71a"; } .cuIcon-keyboard:before { content: "\e71b"; } .cuIcon-male:before { content: "\e71c"; } .cuIcon-newfill:before { content: "\e71d"; } .cuIcon-new:before { content: "\e71e"; } .cuIcon-pullleft:before { content: "\e71f"; } .cuIcon-pullright:before { content: "\e720"; } .cuIcon-rankfill:before { content: "\e721"; } .cuIcon-rank:before { content: "\e722"; } .cuIcon-bad:before { content: "\e723"; } .cuIcon-cameraadd:before { content: "\e724"; } .cuIcon-focus:before { content: "\e725"; } .cuIcon-friendfill:before { content: "\e726"; } .cuIcon-cameraaddfill:before { content: "\e727"; } .cuIcon-apps:before { content: "\e729"; } .cuIcon-paintfill:before { content: "\e72a"; } .cuIcon-paint:before { content: "\e72b"; } .cuIcon-picfill:before { content: "\e72c"; } .cuIcon-refresharrow:before { content: "\e72d"; } .cuIcon-colorlens:before { content: "\e6e6"; } .cuIcon-markfill:before { content: "\e730"; } .cuIcon-mark:before { content: "\e731"; } .cuIcon-presentfill:before { content: "\e732"; } .cuIcon-repeal:before { content: "\e733"; } .cuIcon-album:before { content: "\e734"; } .cuIcon-peoplefill:before { content: "\e735"; } .cuIcon-people:before { content: "\e736"; } .cuIcon-servicefill:before { content: "\e737"; } .cuIcon-repair:before { content: "\e738"; } .cuIcon-file:before { content: "\e739"; } .cuIcon-repairfill:before { content: "\e73a"; } .cuIcon-taoxiaopu:before { content: "\e73b"; } .cuIcon-weixin:before { content: "\e612"; } .cuIcon-attentionfill:before { content: "\e73c"; } .cuIcon-attention:before { content: "\e73d"; } .cuIcon-commandfill:before { content: "\e73e"; } .cuIcon-command:before { content: "\e73f"; } .cuIcon-communityfill:before { content: "\e740"; } .cuIcon-community:before { content: "\e741"; } .cuIcon-read:before { content: "\e742"; } .cuIcon-calendar:before { content: "\e74a"; } .cuIcon-cut:before { content: "\e74b"; } .cuIcon-magic:before { content: "\e74c"; } .cuIcon-backwardfill:before { content: "\e74d"; } .cuIcon-playfill:before { content: "\e74f"; } .cuIcon-stop:before { content: "\e750"; } .cuIcon-tagfill:before { content: "\e751"; } .cuIcon-tag:before { content: "\e752"; } .cuIcon-group:before { content: "\e753"; } .cuIcon-all:before { content: "\e755"; } .cuIcon-backdelete:before { content: "\e756"; } .cuIcon-hotfill:before { content: "\e757"; } .cuIcon-hot:before { content: "\e758"; } .cuIcon-post:before { content: "\e759"; } .cuIcon-radiobox:before { content: "\e75b"; } .cuIcon-rounddown:before { content: "\e75c"; } .cuIcon-upload:before { content: "\e75d"; } .cuIcon-writefill:before { content: "\e760"; } .cuIcon-write:before { content: "\e761"; } .cuIcon-radioboxfill:before { content: "\e763"; } .cuIcon-punch:before { content: "\e764"; } .cuIcon-shake:before { content: "\e765"; } .cuIcon-move:before { content: "\e768"; } .cuIcon-safe:before { content: "\e769"; } .cuIcon-activityfill:before { content: "\e775"; } .cuIcon-crownfill:before { content: "\e776"; } .cuIcon-crown:before { content: "\e777"; } .cuIcon-goodsfill:before { content: "\e778"; } .cuIcon-messagefill:before { content: "\e779"; } .cuIcon-profilefill:before { content: "\e77a"; } .cuIcon-sound:before { content: "\e77b"; } .cuIcon-sponsorfill:before { content: "\e77c"; } .cuIcon-sponsor:before { content: "\e77d"; } .cuIcon-upblock:before { content: "\e77e"; } .cuIcon-weblock:before { content: "\e77f"; } .cuIcon-weunblock:before { content: "\e780"; } .cuIcon-my:before { content: "\e78b"; } .cuIcon-myfill:before { content: "\e78c"; } .cuIcon-emojifill:before { content: "\e78d"; } .cuIcon-emojiflashfill:before { content: "\e78e"; } .cuIcon-flashbuyfill:before { content: "\e78f"; } .cuIcon-text:before { content: "\e791"; } .cuIcon-goodsfavor:before { content: "\e794"; } .cuIcon-musicfill:before { content: "\e795"; } .cuIcon-musicforbidfill:before { content: "\e796"; } .cuIcon-card:before { content: "\e624"; } .cuIcon-triangledownfill:before { content: "\e79b"; } .cuIcon-triangleupfill:before { content: "\e79c"; } .cuIcon-roundleftfill-copy:before { content: "\e79e"; } .cuIcon-font:before { content: "\e76a"; } .cuIcon-title:before { content: "\e82f"; } .cuIcon-recordfill:before { content: "\e7a4"; } .cuIcon-record:before { content: "\e7a6"; } .cuIcon-cardboardfill:before { content: "\e7a9"; } .cuIcon-cardboard:before { content: "\e7aa"; } .cuIcon-formfill:before { content: "\e7ab"; } .cuIcon-coin:before { content: "\e7ac"; } .cuIcon-cardboardforbid:before { content: "\e7af"; } .cuIcon-circlefill:before { content: "\e7b0"; } .cuIcon-circle:before { content: "\e7b1"; } .cuIcon-attentionforbid:before { content: "\e7b2"; } .cuIcon-attentionforbidfill:before { content: "\e7b3"; } .cuIcon-attentionfavorfill:before { content: "\e7b4"; } .cuIcon-attentionfavor:before { content: "\e7b5"; } .cuIcon-titles:before { content: "\e701"; } .cuIcon-icloading:before { content: "\e67a"; } .cuIcon-full:before { content: "\e7bc"; } .cuIcon-mail:before { content: "\e7bd"; } .cuIcon-peoplelist:before { content: "\e7be"; } .cuIcon-goodsnewfill:before { content: "\e7bf"; } .cuIcon-goodsnew:before { content: "\e7c0"; } .cuIcon-medalfill:before { content: "\e7c1"; } .cuIcon-medal:before { content: "\e7c2"; } .cuIcon-newsfill:before { content: "\e7c3"; } .cuIcon-newshotfill:before { content: "\e7c4"; } .cuIcon-newshot:before { content: "\e7c5"; } .cuIcon-news:before { content: "\e7c6"; } .cuIcon-videofill:before { content: "\e7c7"; } .cuIcon-video:before { content: "\e7c8"; } .cuIcon-exit:before { content: "\e7cb"; } .cuIcon-skinfill:before { content: "\e7cc"; } .cuIcon-skin:before { content: "\e7cd"; } .cuIcon-moneybagfill:before { content: "\e7ce"; } .cuIcon-usefullfill:before { content: "\e7cf"; } .cuIcon-usefull:before { content: "\e7d0"; } .cuIcon-moneybag:before { content: "\e7d1"; } .cuIcon-redpacket_fill:before { content: "\e7d3"; } .cuIcon-subscription:before { content: "\e7d4"; } .cuIcon-loading1:before { content: "\e633"; } .cuIcon-github:before { content: "\e692"; } .cuIcon-global:before { content: "\e7eb"; } .cuIcon-settingsfill:before { content: "\e6ab"; } .cuIcon-back_android:before { content: "\e7ed"; } .cuIcon-expressman:before { content: "\e7ef"; } .cuIcon-evaluate_fill:before { content: "\e7f0"; } .cuIcon-group_fill:before { content: "\e7f5"; } .cuIcon-play_forward_fill:before { content: "\e7f6"; } .cuIcon-deliver_fill:before { content: "\e7f7"; } .cuIcon-notice_forbid_fill:before { content: "\e7f8"; } .cuIcon-fork:before { content: "\e60c"; } .cuIcon-pick:before { content: "\e7fa"; } .cuIcon-wenzi:before { content: "\e6a7"; } .cuIcon-ellipse:before { content: "\e600"; } .cuIcon-qr_code:before { content: "\e61b"; } .cuIcon-dianhua:before { content: "\e64d"; } .cuIcon-cuIcon:before { content: "\e602"; } .cuIcon-loading2:before { content: "\e7f1"; } .cuIcon-btn:before { content: "\e601"; } ================================================ FILE: components/verification/verification.vue ================================================ ================================================ FILE: components/verify-code/verify-code.vue ================================================ ================================================ FILE: config/api.js ================================================ /** * base : 基础业务API * buyer : 买家API */ // 开发环境 const dev = { im: "https://im-api.pickmall.cn", common: "https://common-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn", // common: "http://192.168.0.113:8890", // buyer: "http://192.168.0.113:8888", // im: "http://192.168.0.113:8885", }; // 生产环境 const prod = { im: "https://im-api.pickmall.cn", common: "https://common-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn", }; //默认生产环境 let api = dev; //如果是开发环境 if (process.env.NODE_ENV == "development") { api = dev; } else { api = prod; } //微信小程序,app的打包方式建议为生产环境,所以这块直接条件编译赋值 // #ifdef MP-WEIXIN || APP-PLUS api = prod; // #endif api.buyer += "/buyer"; api.common += "/common"; api.im += "/im"; export default { ...api, }; ================================================ FILE: config/config.js ================================================ const name = "lilishop"; //全局商城name const schemeName = "lilishop"; //唤醒app需要的schemeName export default { name: name, schemeLink: `${schemeName}://`, //唤起app地址 downloadLink: "https://pickmall.cn/download-page/index.html", //下载地址,下载app的地址 shareLink: "https://m-b2b2c.pickmall.cn", //分享地址,也就是在h5中默认的复制地址 appid: "wx6f10f29075dc1b0b", //小程序唯一凭证,即 AppID,可在「微信公众平台 - 设置 - 开发设置」页中获得。(需要已经成为开发者,且帐号没有异常状态) aMapKey: "1f78544934b66c9fbc0104117f663973", //在高德中申请Web服务key scanAuthNavigation: ["https://m-b2b2c.pickmall.cn/"], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转 iosAppId: "id1564638363", //AppStore的应用地址id 具体在分享->拷贝链接中查看 logo: "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png", //logo地址 customerServiceMobile: "13161366885", //客服电话 customerServiceEmail: "lili@lili.com", //客服邮箱 imWebSrc: "https://im.pickmall.cn", //IM地址 baseWsUrl: "wss://im-api.pickmall.cn/lili/webSocket", // IM WS 地址 enableGetClipboard: false, //是否启用粘贴板获取 scanAuthNavigation 中的链接,如果匹配则会跳转到对应页面 enableMiniBarStartUpApp: true, //是否在h5中右侧浮空按钮点击启动app /** * 如需更换主题请修改此处以及uni.scss中的全局颜色 */ mainColor: "#ff3c2a", // 主题色 lightColor: "#ff6b35", // 高亮主题色 aiderLightColor: "#ff9f28", // 辅助高亮颜色 defaultUserPhoto: "/static/missing-face.png", // 默认用户头像 enableFetchMobileLogin: false // 是否启用获取手机号登录 如果微信小程序提示封禁手机号获取权限 可将此选项设置成false作为备用登录方案 }; ================================================ FILE: hybrid/html/advertise/advertise.html ================================================ 广告启动页
跳过
================================================ FILE: hybrid/html/css/advertise.css ================================================ * { margin: 0; padding: 0; } html, body { width: 100%; height: 100%; } .content { width: 100%; height: 100%; } .content .con { width: 100%; height: 100%; font-size: 0; display: flex; align-items: center; } #img { width: 100%; height: 100%; } #timer { display: inline-block; position: fixed; top: 40px; right: 10px; } #info { position: absolute; top: 0; left: 0; width: 36px; height: 36px; line-height: 36px; border-radius: 50%; background-color: rgba(0, 0, 0, 0.3); text-align: center; color: #FFFFFF; font-size: 12px; } .circleProgress_wrapper { width: 36px; height: 36px; position: relative; } .wrapper { width: 18px; height: 36px; position: absolute; top: 0; overflow: hidden; } .right { right: 0; } .left { left: 0; } .circleProgress { width: 32px; height: 32px; border: 2px solid #FFFFFF; border-radius: 50%; position: absolute; top: 0; -webkit-transform: rotate(45deg); } .rightcircle { border-top: 2px solid #03A9F4; border-right: 2px solid #03A9F4; right: 0; -webkit-animation: circleProgressLoad_right 4s linear; /*动画停留在最后一帧*/ animation-fill-mode: forwards; -moz-animation-fill-mode: forwards; -webkit-animation-fill-mode: forwards; -o-animation-fill-mode: forwards; } .leftcircle { border-bottom: 2px solid #03A9F4; border-left: 2px solid #03A9F4; left: 0; -webkit-animation: circleProgressLoad_left 4s linear; /*动画停留在最后一帧*/ animation-fill-mode: forwards; -moz-animation-fill-mode: forwards; -webkit-animation-fill-mode: forwards; -o-animation-fill-mode: forwards; } @-webkit-keyframes circleProgressLoad_right { 0% { border-top: 2px solid #03A9F4; border-right: 2px solid #03A9F4; -webkit-transform: rotate(45deg); } 50% { border-top: 2px solid #03A9F4; border-right: 2px solid #03A9F4; border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; -webkit-transform: rotate(225deg); } 100% { border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; -webkit-transform: rotate(225deg); } } @-webkit-keyframes circleProgressLoad_left { 0% { border-bottom: 2px solid #03A9F4; border-left: 2px solid #03A9F4; -webkit-transform: rotate(45deg); } 50% { border-bottom: 2px solid #03A9F4; border-left: 2px solid #03A9F4; border-top: 2px solid #FFFFFF; border-right: 2px solid #FFFFFF; -webkit-transform: rotate(45deg); } 100% { border-top: 2px solid #FFFFFF; border-right: 2px solid #FFFFFF; -webkit-transform: rotate(225deg); } } ================================================ FILE: hybrid/html/error.html ================================================ 服务器异常
服务器异常
================================================ FILE: hybrid/html/js/webView.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).uni=n()}(this,(function(){"use strict";try{var e={};Object.defineProperty(e,"passive",{get:function(){!0}}),window.addEventListener("test-passive",null,e)}catch(e){}var n=Object.prototype.hasOwnProperty;function t(e,t){return n.call(e,t)}var i=[],a=function(e,n){var t={options:{timestamp:+new Date},name:e,arg:n};if(window.__dcloud_weex_postMessage||window.__dcloud_weex_){if("postMessage"===e){var a={data:[n]};return window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessage(a):window.__dcloud_weex_.postMessage(JSON.stringify(a))}var o={type:"WEB_INVOKE_APPSERVICE",args:{data:t,webviewIds:i}};window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessageToService(o):window.__dcloud_weex_.postMessageToService(JSON.stringify(o))}if(!window.plus)return window.parent.postMessage({type:"WEB_INVOKE_APPSERVICE",data:t,pageId:""},"*");if(0===i.length){var r=plus.webview.currentWebview();if(!r)throw new Error("plus.webview.currentWebview() is undefined");var d=r.parent(),s="";s=d?d.id:r.id,i.push(s)}if(plus.webview.getWebviewById("__uniapp__service"))plus.webview.postMessageToUniNView({type:"WEB_INVOKE_APPSERVICE",args:{data:t,webviewIds:i}},"__uniapp__service");else{var w=JSON.stringify(t);plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat("WEB_INVOKE_APPSERVICE",'",').concat(w,",").concat(JSON.stringify(i),");"))}},o={navigateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;a("navigateTo",{url:encodeURI(n)})},navigateBack:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.delta;a("navigateBack",{delta:parseInt(n)||1})},switchTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;a("switchTab",{url:encodeURI(n)})},reLaunch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;a("reLaunch",{url:encodeURI(n)})},redirectTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;a("redirectTo",{url:encodeURI(n)})},getEnv:function(e){window.plus?e({plus:!0}):e({h5:!0})},postMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a("postMessage",e.data||{})}},r=/uni-app/i.test(navigator.userAgent),d=/Html5Plus/i.test(navigator.userAgent),s=/complete|loaded|interactive/;var w=window.my&&navigator.userAgent.indexOf("AlipayClient")>-1;var u=window.swan&&window.swan.webView&&/swan/i.test(navigator.userAgent);var c=window.qq&&window.qq.miniProgram&&/QQ/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);var g=window.tt&&window.tt.miniProgram&&/toutiaomicroapp/i.test(navigator.userAgent);var v=window.wx&&window.wx.miniProgram&&/micromessenger/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);var p=window.qa&&/quickapp/i.test(navigator.userAgent);for(var l,_=function(){window.UniAppJSBridge=!0,document.dispatchEvent(new CustomEvent("UniAppJSBridgeReady",{bubbles:!0,cancelable:!0}))},f=[function(e){if(r||d)return window.__dcloud_weex_postMessage||window.__dcloud_weex_?document.addEventListener("DOMContentLoaded",e):window.plus&&s.test(document.readyState)?setTimeout(e,0):document.addEventListener("plusready",e),o},function(e){if(v)return window.WeixinJSBridge&&window.WeixinJSBridge.invoke?setTimeout(e,0):document.addEventListener("WeixinJSBridgeReady",e),window.wx.miniProgram},function(e){if(c)return window.QQJSBridge&&window.QQJSBridge.invoke?setTimeout(e,0):document.addEventListener("QQJSBridgeReady",e),window.qq.miniProgram},function(e){if(w){document.addEventListener("DOMContentLoaded",e);var n=window.my;return{navigateTo:n.navigateTo,navigateBack:n.navigateBack,switchTab:n.switchTab,reLaunch:n.reLaunch,redirectTo:n.redirectTo,postMessage:n.postMessage,getEnv:n.getEnv}}},function(e){if(u)return document.addEventListener("DOMContentLoaded",e),window.swan.webView},function(e){if(g)return document.addEventListener("DOMContentLoaded",e),window.tt.miniProgram},function(e){if(p){window.QaJSBridge&&window.QaJSBridge.invoke?setTimeout(e,0):document.addEventListener("QaJSBridgeReady",e);var n=window.qa;return{navigateTo:n.navigateTo,navigateBack:n.navigateBack,switchTab:n.switchTab,reLaunch:n.reLaunch,redirectTo:n.redirectTo,postMessage:n.postMessage,getEnv:n.getEnv}}},function(e){return document.addEventListener("DOMContentLoaded",e),o}],m=0;m { // #ifndef H5 uni.getClipboardData({ success: ({ data }) => success(data), fail }) // #endif // #ifdef H5 try { navigator.clipboard.readText().then(success).catch(fail) } catch (error) { fail(error) } // #endif }) } ================================================ FILE: js_sdk/lili-pay/wx-pay.js ================================================ /** * 微信小程序支付 * 此处针对于微信小程序开发的支付插件 * 第一次支付成功后会跳出订阅的消息 如果用户拒绝或同意都会跳转到支付成功页面 * 如果点击订阅 会将状态写进缓存 之后不再提醒。 * * @param {sn,price} */ import { getWeChatMpMessage } from "@/api/message.js"; import { initiatePay } from "@/api/trade"; class LiLiWXPay { constructor(...payList) { this.data = payList[0]; console.log(payList); // 调用支付 this.pay = () => { uni.showLoading({ title: "加载中", }); let submitData = { sn: this.data.sn, orderType: this.data.orderType || "TRADE", clientType: "WECHAT_MP", }; const paymentMethod = "WECHAT"; const paymentClient = "MP"; // 调用支付 initiatePay(paymentMethod, paymentClient, submitData).then((res) => { let response = res.data.result; uni.hideLoading(); uni.requestPayment({ provider: "wxpay", appid: response.appid, timeStamp: response.timeStamp, nonceStr: response.nonceStr, package: response.package, signType: response.signType, paySign: response.paySign, success: (e) => { uni.showToast({ icon: "none", title: "支付成功!", }); sendMessage(payList[0].price); }, fail: (e) => { this.exception = e; // 支付异常或支付失败之后跳转到订单页面 uni.showModal({ content: "支付失败,如果您已支付,请勿反复支付", showCancel: false, success: () => { uni.redirectTo({ url: "/pages/order/myOrder?status=0", }); }, }); }, }); }); }; } } function sendMessage(price) { //订阅消息 getWeChatMpMessage().then((res) => { var message = res.data.result; var templateid = message.map((item) => item.code); uni.requestSubscribeMessage({ tmplIds: templateid, success: (res) => { }, fail: (res) => { console.log('fail', res) uni.showToast({ icon: "none", title: "订阅消息失败", }) }, complete: (res) => { console.log('complete', res) /** * 已经支付成功 */ uni.redirectTo({ url: "/pages/cart/payment/success?paymentMethod=WECHAT" + "&payPrice=" + price, }); }, }); }); } export default LiLiWXPay; ================================================ FILE: js_sdk/t-jwt/jwt.js ================================================ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/; exports.weBtoa = function (string) { string = String(string); var bitmap, a, b, c, result = "", i = 0, rest = string.length % 3; for (; i < string.length;) { if ((a = string.charCodeAt(i++)) > 255 || (b = string.charCodeAt(i++)) > 255 || (c = string.charCodeAt(i++)) > 255) throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range."); bitmap = (a << 16) | (b << 8) | c; result += b64.charAt(bitmap >> 18 & 63) + b64.charAt(bitmap >> 12 & 63) + b64.charAt(bitmap >> 6 & 63) + b64.charAt(bitmap & 63); } return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result; }; exports.weAtob = function (string) { string = String(string).replace(/[\t\n\f\r ]+/g, ""); if (!b64re.test(string)) throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded."); string += "==".slice(2 - (string.length & 3)); var bitmap, result = "", r1, r2, i = 0; for (; i < string.length;) { bitmap = b64.indexOf(string.charAt(i++)) << 18 | b64.indexOf(string.charAt(i++)) << 12 | (r1 = b64.indexOf(string.charAt(i++))) << 6 | (r2 = b64.indexOf(string.charAt(i++))); result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255); } return result; }; function b64DecodeUnicode(str) { return decodeURIComponent(exports.weAtob(str).replace(/(.)/g, function (p) { var code = p.charCodeAt(0).toString(16).toUpperCase(); if (code.length < 2) { code = "0" + code; } return "%" + code; })); } function base64_url_decode(str) { var output = str.replace(/-/g, "+").replace(/_/g, "/"); switch (output.length % 4) { case 0: break; case 2: output += "=="; break; case 3: output += "="; break; default: throw "Illegal base64url string!"; } try { return b64DecodeUnicode(output); } catch (err) { return exports.weAtob(output); } } function weappJwtDecode(token, options) { if (typeof token !== "string") { throw ("Invalid token specified"); } options = options || {}; var pos = options.header === true ? 0 : 1; try { return JSON.parse(base64_url_decode(token.split(".")[pos])); } catch (e) { throw ("Invalid token specified: " + e.message); } } exports.default = weappJwtDecode; ================================================ FILE: js_sdk/u-draw-poster/draw-poster.d.ts ================================================ import { Canvas, DrawPosterCanvasCtx, CreateImagePathOptions, DrawPosterBuildOpts, DrawPosterUseOpts, drawPosterExtends, DrawPosterUseCtxOpts } from "./utils/interface"; declare type DrawPosterInstanceType = InstanceType & drawPosterExtends; declare class DrawPoster { canvas: Canvas; ctx: DrawPosterCanvasCtx; canvasId: string; loading: boolean; debugging: boolean; loadingText: string; createText: string; [key: string]: any; private executeOnions; private stopStatus; private drawType; /** 构建器, 构建返回当前实例, 并挂载多个方法 */ constructor(canvas: Canvas, ctx: DrawPosterCanvasCtx, canvasId: string, loading: boolean, debugging: boolean, loadingText: string, createText: string, tips: boolean); /** 提示器, 传入消息与数据 */ private debuggingLog; /** 传入挂载配置对象, 添加扩展方法 */ static use: (opts: DrawPosterUseOpts) => void; /** 传入挂载配置对象, 添加绘画扩展方法 */ static useCtx: (opts: DrawPosterUseCtxOpts) => void; /** 构建绘制海报矩形方法, 传入canvas选择器或配置对象, 返回绘制对象 */ static build: (options: string | DrawPosterBuildOpts, tips?: boolean) => Promise; /** 构建多个绘制海报矩形方法, 传入选择器或配置对象的数组, 返回多个绘制对象 */ static buildAll: (optionsAll: (string | DrawPosterBuildOpts)[]) => Promise<{ [key: string]: DrawPosterInstanceType; }>; /** 绘制器, 接收执行器函数, 添加到绘制容器中 */ draw: (execute: (ctx: DrawPosterCanvasCtx) => Promise | void) => void; /** 等待创建绘画, 成功后清空绘制器容器 */ awaitCreate: () => Promise; /** 创建canvas本地地址 @returns {string} 本地地址 */ createImagePath: (baseOptions?: CreateImagePathOptions) => Promise; /** 停止当前绘画, 调用则停止当前绘画堆栈的绘画 */ stop: () => void; } export default DrawPoster; ================================================ FILE: js_sdk/u-draw-poster/draw-poster.js ================================================ import uni from "./utils/global"; import { handleBuildOpts, extendMount } from "./utils/utils"; import { getCanvas2dContext } from "./utils/wx-utils"; // 扩展挂载储存 let drawPosterExtend = {}; let drawCtxPosterExtend = {}; class DrawPoster { /** 构建器, 构建返回当前实例, 并挂载多个方法 */ constructor(canvas, ctx, canvasId, loading, debugging, loadingText, createText, tips) { var _a; this.canvas = canvas; this.ctx = ctx; this.canvasId = canvasId; this.loading = loading; this.debugging = debugging; this.loadingText = loadingText; this.createText = createText; this.executeOnions = []; this.stopStatus = false; /** 提示器, 传入消息与数据 */ this.debuggingLog = (message, data, color = "#3489fd") => { if (this.debugging) { if (data) { console.log(`%c${this.canvasId} -> ${message}`, `color: ${color}`, data); } else { console.log(`%c${this.canvasId} -> ${message}`, `color: ${color}`); } } }; /** 绘制器, 接收执行器函数, 添加到绘制容器中 */ this.draw = (execute) => { const length = this.executeOnions.length; this.executeOnions.push(async () => { var _a, _b; try { this.ctx.save(); await execute(this.ctx); this.ctx.restore(); return true; } catch (error) { const isOutError = ((_b = (_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.search) === null || _b === void 0 ? void 0 : _b.call(_a, `'nodeId' of undefined`)) >= 0; !isOutError && console.error(`${this.canvasId} -> 绘画栈(${length}),绘制错误:`, error); return false; } }); }; /** 等待创建绘画, 成功后清空绘制器容器 */ this.awaitCreate = async () => { this.debuggingLog('绘制海报中...'); this.loading && uni.showLoading({ title: this.loadingText }); const tips = []; for (let i = 0; i < this.executeOnions.length; i++) { const execute = this.executeOnions[i]; tips.push(await execute()); } this.executeOnions = []; this.debuggingLog('绘制状况', tips); // 当前绘制为 type2 绘制 if (this.drawType === 'type2d') { this.loading && uni.hideLoading(); return tips; } // 当前绘制为 context 绘制 return await new Promise((resolve) => { this.ctx.draw(true, () => { resolve(tips); this.loading && uni.hideLoading(); }); }); }; /** 创建canvas本地地址 @returns {string} 本地地址 */ this.createImagePath = async (baseOptions = {}) => { const { canvas, canvasId, executeOnions, awaitCreate } = this; executeOnions.length && await awaitCreate(); // 如果当前为停止状态 if (this.stopStatus) { this.stopStatus = false; return '---stop createImagePath---'; } this.loading && uni.showLoading({ title: this.createText }); const options = Object.assign({}, baseOptions); if (this.drawType === 'context') options.canvasId = canvasId; if (this.drawType === 'type2d') options.canvas = canvas; console.log(options) return new Promise((resolve, reject) => { options.success = (res) => { resolve(res.tempFilePath); this.loading && uni.hideLoading(); this.debuggingLog('绘制成功 🎉', res, '#19be6b'); }; options.fail = (err) => { reject(err); this.loading && uni.hideLoading(); this.debuggingLog('绘制失败 🌟', err, '#fa3534'); }; uni.canvasToTempFilePath(options); }); }; /** 停止当前绘画, 调用则停止当前绘画堆栈的绘画 */ this.stop = () => { this.executeOnions = []; this.stopStatus = true; }; if (!canvas || !ctx || !canvasId) { throw new Error("DrawPoster Error: Use DrawPoster.build(string | ops) to build drawPoster instance objects"); } // 判断当前绘制类型 ctx.drawType = this.drawType = (ctx.draw) ? 'context' : 'type2d'; // 挂载全局实例, 绘画扩展 extendMount(this.ctx, drawCtxPosterExtend, (extend, target) => { var _a; (_a = target === null || target === void 0 ? void 0 : target.init) === null || _a === void 0 ? void 0 : _a.call(target, this.canvas, this.ctx); return (...args) => extend(this.canvas, this.ctx, ...args); }); extendMount(this, drawPosterExtend, (extend, target) => { var _a; (_a = target === null || target === void 0 ? void 0 : target.init) === null || _a === void 0 ? void 0 : _a.call(target, this); return (...args) => extend(this, ...args); }); // 当离开页面时, 自动调用停止绘画 const _this = this; const pages = getCurrentPages(); const page = pages[pages.length - 1]; // 查询标识, 不存在, 在替换页面卸载回调, 避免产生死循环 if (!((_a = page === null || page === void 0 ? void 0 : page.onUnload) === null || _a === void 0 ? void 0 : _a.identification)) { page.oldOnUnload = page.onUnload; page.onUnload = function () { _this === null || _this === void 0 ? void 0 : _this.stop(); page.oldOnUnload(); }; page.onUnload.identification = true; } tips && this.debuggingLog('构建完成', { canvas, ctx, selector: canvasId }, '#19be6b'); } } /** 传入挂载配置对象, 添加扩展方法 */ DrawPoster.use = (opts) => { if (opts.name) drawPosterExtend[opts.name] = opts; }; /** 传入挂载配置对象, 添加绘画扩展方法 */ DrawPoster.useCtx = (opts) => { if (opts.name) drawCtxPosterExtend[opts.name] = opts; }; /** 构建绘制海报矩形方法, 传入canvas选择器或配置对象, 返回绘制对象 */ DrawPoster.build = async (options, tips = true) => { var _a, _b, _c, _d, _e; const config = handleBuildOpts(options); // 初始化监测当前页面绘制对象 const pages = getCurrentPages(); const page = pages[pages.length - 1]; const gcanvas = DrawPoster.prototype['gcanvas']; if (page[config.selector + '__dp']) { return page[config.selector + '__dp']; } if (config.gcanvas) { if (!gcanvas) console.error('--- 当前未引入gcanvas扩展, 将自动切换为普通 canvas ---'); else gcanvas.enable((_b = (_a = config.componentThis) === null || _a === void 0 ? void 0 : _a.$refs) === null || _b === void 0 ? void 0 : _b[config.selector], { bridge: gcanvas.WeexBridge }); } // 获取canvas实例 const canvas = config.gcanvas && gcanvas ? gcanvas.enable((_d = (_c = config.componentThis) === null || _c === void 0 ? void 0 : _c.$refs) === null || _d === void 0 ? void 0 : _d[config.selector], { bridge: gcanvas.WeexBridge }) : await getCanvas2dContext(config.selector, config.componentThis); const ctx = (((_e = canvas.getContext) === null || _e === void 0 ? void 0 : _e.call(canvas, "2d")) || uni.createCanvasContext(config.selector, config.componentThis)); const dp = new DrawPoster(canvas, ctx, config.selector, config.loading, config.debugging, config.loadingText, config.createText, tips); // 储存当前绘制对象 page[config.selector + '__dp'] = dp; return page[config.selector + '__dp']; }; /** 构建多个绘制海报矩形方法, 传入选择器或配置对象的数组, 返回多个绘制对象 */ DrawPoster.buildAll = async (optionsAll) => { const dpsArr = await Promise.all(optionsAll.map(async (options) => { return await DrawPoster.build(options, false); })); const dpsObj = {}; dpsArr.forEach(dp => dpsObj[dp.canvasId] = dp); console.log("%cdraw-poster 构建完成:", "#E3712A", dpsObj); return dpsObj; }; export default DrawPoster; ================================================ FILE: js_sdk/u-draw-poster/extends/create-from-list/index.d.ts ================================================ import { DrawPosterUseOpts } from '../../utils/interface'; export interface CreateLayerOpts { background?: string; self?: boolean; line?: boolean; lineHeight?: number; } export interface DrawRowOpt { text?: string; font?: string; color?: string; center?: boolean; width?: number; } declare const _default: DrawPosterUseOpts; /** 绘制表单扩展方法 */ export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/create-from-list/index.js ================================================ /** 绘制表单扩展方法 */ export default { name: 'createLayer', init: (dp) => { dp.from = { height: 0, padding: 8, margin: 0 }; dp.setFromOptions = (opts) => { if (typeof opts.height !== 'undefined') { dp.from.height = opts.height; } if (typeof opts.margin !== 'undefined') { dp.from.margin = opts.margin; } if (typeof opts.padding !== 'undefined') { dp.from.padding = opts.padding; } }; }, handle: (dp, afferOpts, rowList) => { // 当前配置(头部偏移量, 列内边距, 表单外边距) const height = dp.from.height; const margin = dp.from.margin; const padding = dp.from.padding; // 当前层宽度 const containerWidth = dp.canvas.width - (margin * 2); // 基本层配置 const opts = Object.assign({ background: "#fff", columnY: height || margin, self: true, line: true, lineHeight: 0, border: true }, afferOpts); // 基本列配置 const baseRowOpts = { text: "", font: "24px sans-serif", color: "#333", center: false, width: 0, }; // 累计最高的列为标准定义为层高度 let maxRowHeight = 0; // 累计固定栅格列偏移量 let columnOffsetX = margin; // 创建行绘制任务 const drawLayerInfos = rowList.map((afferRowOpts = {}, index) => { const rowOpts = Object.assign(Object.assign({}, baseRowOpts), afferRowOpts); let columnX = 0; // 每列的X轴 let columnW = 0; // 每列的宽度 let fontOffsetX = 0; // 字体偏移X轴 let fontMaxWidth = 100; // 字体最大宽度 opts.lineHeight = opts.lineHeight || Number(rowOpts.font.replace(/[^0-9.]/g, "")); if (opts.self) { // 自适应栅格格子计算 columnX = containerWidth - (containerWidth / (index + 1)) + margin; columnW = containerWidth / rowList.length; if (columnX > 0 && columnX < containerWidth - columnW) { columnX = (columnW * index) + margin; } fontOffsetX = rowOpts.center ? columnX + (columnW / 2) : columnX + padding; fontMaxWidth = columnW - (padding * 3); } if (!opts.self) { // 固定栅格格子计算 columnW = rowOpts.width; columnX = columnOffsetX; fontMaxWidth = columnW - (padding * 3); fontOffsetX = rowOpts.center ? columnOffsetX + (rowOpts.width / 2) : columnOffsetX + padding; columnOffsetX += rowOpts.width; } dp.ctx.font = rowOpts.font; const drawFontInfos = dp.ctx.fillWarpText({ text: rowOpts.text, maxWidth: fontMaxWidth, lineHeight: opts.lineHeight, x: fontOffsetX, y: opts.columnY, layer: 10, notFillText: true }); // 当前行的高度 const rowHeight = (opts.lineHeight * drawFontInfos.length) + (padding * 3); // 若该列高度大于累计高度, 将累计高度替换 if (rowHeight > maxRowHeight) { maxRowHeight = rowHeight; } return { font: rowOpts.font, center: rowOpts.center, color: rowOpts.color, border: opts.border, background: opts.background, lineHeight: opts.lineHeight, line: opts.line, drawFontInfos, columnY: opts.columnY, columnX, columnW, columnH: maxRowHeight, margin, padding }; }); // 将行绘制任务添加至绘制容器中 dp.draw((ctx) => drawLayerInfos.forEach((rowOpts, index) => { ctx.font = rowOpts.font; ctx.fillStyle = rowOpts.background; ctx.strokeStyle = "#333"; ctx.textBaseline = "middle"; ctx.textAlign = 'left'; if (rowOpts.center) { ctx.textAlign = "center"; } ctx.fillRect(rowOpts.columnX, rowOpts.columnY, rowOpts.columnW, rowOpts.columnH); if (rowOpts.border) { dp.ctx.strokeRect(margin, rowOpts.columnY, dp.canvas.width - margin, maxRowHeight); } if (rowOpts.line && rowOpts.columnX !== margin) { ctx.moveTo(rowOpts.columnX, rowOpts.columnY); ctx.lineTo(rowOpts.columnX, rowOpts.columnY + rowOpts.columnH); ctx.stroke(); ctx.beginPath(); } ctx.fillStyle = rowOpts.color; rowOpts.drawFontInfos.forEach(fontInfo => { // 计算每行字体绘制y轴长度 // y(当前列置顶轴) + (rowOpts.columnH(当前列最高长度) / 2) - (((总列数-1) * 行高) / 2) const textTotal = rowOpts.drawFontInfos.length - 1; const textMiddleY = (textTotal * rowOpts.lineHeight) / 2; let fontOffsetY = fontInfo.y + (rowOpts.columnH / 2); fontOffsetY -= textMiddleY; ctx.fillText(fontInfo.text, fontInfo.x, fontOffsetY); }); })); if (opts.columnY === 0 || opts.columnY === margin) { maxRowHeight += margin; } // 叠加高度 dp.from.height += maxRowHeight; return maxRowHeight; }, }; ================================================ FILE: js_sdk/u-draw-poster/extends/create-gcanvas/index.d.ts ================================================ import { DrawPosterUseOpts } from '../../utils/interface'; export * from './gcanvas'; declare const _default: DrawPosterUseOpts; export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/create-gcanvas/index.js ================================================ import { WeexBridge, enable, Image } from './gcanvas'; export * from './gcanvas'; import DrawPoster from "../../draw-poster"; DrawPoster.prototype['gcanvas'] = { WeexBridge, enable, Image }; export default {}; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/draw-image-fit.d.ts ================================================ import { DrawPosterUseCtxOpts } from '../../utils/interface'; import { ObjectFit, ObjectPosition, Size } from "../../utils/object-sizing"; export interface ImageFitOption { radius?: number; objectFit?: ObjectFit; intrinsicSize?: Size; specifiedSize?: Size; intrinsicPosition?: ObjectPosition; specifiedPosition?: [number, number]; } declare const _default: DrawPosterUseCtxOpts; export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/draw-image-fit.js ================================================ import { calculateConcreteRect } from "../../utils/object-sizing"; import uni from "../../utils/global"; export default { name: 'drawImageFit', handle: async (canvas, ctx, url, options) => { var _a, _b, _c; const [error, imageInfo] = await uni.getImageInfo({ src: url }); // 配置默认值 const style = Object.assign({ radius: 0, objectFit: 'cover', intrinsicSize: { width: (_a = imageInfo === null || imageInfo === void 0 ? void 0 : imageInfo.width) !== null && _a !== void 0 ? _a : 100, height: (_b = imageInfo === null || imageInfo === void 0 ? void 0 : imageInfo.height) !== null && _b !== void 0 ? _b : 100 }, specifiedSize: { width: 100, height: 100 }, intrinsicPosition: ['center', 'center'], specifiedPosition: [0, 0] }, options); // 计算图片尺寸 const drawImageInfo = calculateConcreteRect(style, style.intrinsicSize, style.specifiedSize); // 如有圆角, 则进行裁剪 if (style.radius > 0) { ctx.save(); (_c = ctx.setFillStyle) === null || _c === void 0 ? void 0 : _c.call(ctx, 'transparent'); ctx.fillStyle = 'transparent'; ctx.fillRoundRect(style.specifiedPosition[0], style.specifiedPosition[1], style.specifiedSize.width, style.specifiedSize.height, style.radius); ctx.clip(); } const result = await ctx.drawImage(url, ...Object.values(drawImageInfo)); if (style.radius > 0) ctx.restore(); return result; } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/draw-image.d.ts ================================================ import { DrawPosterUseCtxOpts } from '../../utils/interface'; declare const _default: DrawPosterUseCtxOpts; /** 等待绘制图片原型方法 */ export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/draw-image.js ================================================ import { downloadImgUrl } from '../../utils/wx-utils'; /** 等待绘制图片原型方法 */ export default { name: 'drawImage', init: (canvas, ctx) => { ctx.drawImageProto = ctx.drawImage; }, handle: async (canvas, ctx, url, sx, sy, sh, sw, dx, dy, dh, dw) => { // 下载路径 const path = await downloadImgUrl(url); // 标记当前绘画存在图片绘制 let result = false; // 基本绘制方法, 如果是 fit 方式, 则传入所有参数, 不然则只传入四个参数 const baseDrawImage = (imageResource) => { const isFit = typeof dx === 'number' && typeof dw === 'number'; if (isFit) { ctx.drawImageProto(imageResource, sx, sy, sh, sw, dx, dy, dh, dw); } else { ctx.drawImageProto(imageResource, sx, sy, sh, sw); } }; // 如果是 context 绘制方式, 则直接绘制 if (ctx.drawType === 'context') { baseDrawImage(path); result = true; } // 如果是 type2d 绘制方式, 则等待图片绘制完毕 if (ctx.drawType === 'type2d') { result = await new Promise(resolve => { const image = canvas.createImage(); image.src = path; image.onload = () => { baseDrawImage(image); resolve(true); }; image.onerror = () => resolve(false); }); } return result; } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/draw-round-image.d.ts ================================================ import { DrawPosterUseCtxOpts } from '../../utils/interface'; declare const _default: DrawPosterUseCtxOpts; /** 绘制圆角图片原型方法 */ export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/draw-round-image.js ================================================ /** 绘制圆角图片原型方法 */ export default { name: 'drawRoundImage', handle: async (canvas, ctx, url, x, y, w, h, r = 15) => { var _a; ctx.save(); (_a = ctx.setFillStyle) === null || _a === void 0 ? void 0 : _a.call(ctx, 'transparent'); ctx.fillStyle = 'transparent'; ctx.fillRoundRect(x, y, w, h, r); ctx.clip(); const result = await ctx.drawImage(url, x, y, w, h); ctx.restore(); return result; } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/fill-round-rect.d.ts ================================================ import { DrawPosterUseCtxOpts } from '../../utils/interface'; declare const _default: DrawPosterUseCtxOpts; /** 绘制填充圆角矩形方法 */ export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/fill-round-rect.js ================================================ /** 绘制填充圆角矩形方法 */ export default { name: 'fillRoundRect', handle: (canvas, ctx, x, y, w, h, r) => { ctx.roundRect(x, y, w, h, r, true); } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/fill-warp-text.d.ts ================================================ import { DrawPosterUseCtxOpts } from '../../utils/interface'; declare const _default: DrawPosterUseCtxOpts; /** 绘制换行字体原型方法 */ export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/fill-warp-text.js ================================================ /** 绘制换行字体原型方法 */ export default { name: 'fillWarpText', handle: (canvas, ctx, config) => { const newConfig = config = Object.assign({ maxWidth: 100, layer: 2, lineHeight: Number(ctx.font.replace(/[^0-9.]/g, '')), x: 0, y: Number(ctx.font.replace(/[^0-9.]/g, '')) / 1.2, splitText: '', notFillText: false }, config); const { text, splitText, maxWidth, layer, lineHeight, notFillText, x, y } = newConfig; // 当字符串为空时, 抛出错误 if (!text) { throw Error('warpFillText Error: text is empty string'); } // 分割所有单个字符串 const chr = text.split(splitText); // 存入的每行字体的容器 let row = []; // 判断字符串 let timp = ''; if (splitText) { row = chr; } else { // 遍历所有字符串, 填充行容器 for (let i = 0; i < chr.length; i++) { // 当超出行列时, 停止执行遍历, 节省计算时间 if (row.length > layer) { break; } if (ctx.measureText(timp).width < maxWidth) { // 如果超出长度, 添加进row数组 timp += chr[i]; } else { // 如超出一行长度, 则换行, 并清除容器 i--; row.push(timp); timp = ''; } } // 如有剩下字体, 则在最后时添加一行 if (timp) { row.push(timp); } // 如果数组长度大于指定行数 if (row.length > layer) { row = row.slice(0, layer); // 结束的索引 const end = layer - 1; for (let i = 0; i < row[end].length; i++) { const currentWidth = ctx.measureText(`${row[end]}...`).width; if (currentWidth > maxWidth) { // 加上... 当前宽度大于最大宽度时, 去除一位字符串 const strEnd = row[end].length - 1; row[end] = row[end].slice(0, strEnd); } else { row[end] += '...'; break; } } } } // 储存并返回绘制信息 const drawInfos = row.map((item, index) => { const info = { text: item, y: y + index * lineHeight, x: x, }; // 默认执行绘制信息 if (!notFillText) { ctx.fillText(info.text, info.x, info.y); } return info; }); return drawInfos; } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/index.d.ts ================================================ export { default as drawImage } from "./draw-image"; export { default as roundRect } from "./round-rect"; export { default as fillRoundRect } from "./fill-round-rect"; export { default as strokeRoundRect } from "./stroke-round-rect"; export { default as fillWarpText } from "./fill-warp-text"; export { default as drawRoundImage } from "./draw-round-image"; export { default as drawImageFit } from "./draw-image-fit"; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/index.js ================================================ /* * @Author: Mr.Mao * @LastEditors: Mr.Mao * @Date: 2020-11-11 20:43:33 * @LastEditTime: 2021-01-02 00:16:59 * @Description: * @任何一个傻子都能写出让电脑能懂的代码,而只有好的程序员可以写出让人能看懂的代码 */ export { default as drawImage } from "./draw-image"; export { default as roundRect } from "./round-rect"; export { default as fillRoundRect } from "./fill-round-rect"; export { default as strokeRoundRect } from "./stroke-round-rect"; export { default as fillWarpText } from "./fill-warp-text"; export { default as drawRoundImage } from "./draw-round-image"; export { default as drawImageFit } from "./draw-image-fit"; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/round-rect.d.ts ================================================ import { DrawPosterUseCtxOpts } from '../../utils/interface'; declare const _default: DrawPosterUseCtxOpts; /** 绘制圆角矩形原型方法 */ export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/round-rect.js ================================================ /** 绘制圆角矩形原型方法 */ export default { name: 'roundRect', handle: (canvas, ctx, x, y, w, h, r = 15, fill = false, stroke = false) => { if (r === 0) { if (stroke) ctx.strokeRect(x, y, w, h); if (fill) ctx.fillRect(x, y, w, h); return; } if (w < 2 * r) { r = w / 2; } if (h < 2 * r) { r = h / 2; } // 开始绘制 ctx.beginPath(); ctx.arc(x + r, y + r, r, Math.PI, Math.PI * 1.5); // 移动复制 ctx.moveTo(x + r, y); ctx.lineTo(x + w - r, y); ctx.lineTo(x + w, y + r); // (x,y,z,j,f) x,y圆心z半径,j起始弧度f,终止弧度 ctx.arc(x + w - r, y + r, r, Math.PI * 1.5, Math.PI * 2); ctx.lineTo(x + w, y + h - r); ctx.lineTo(x + w - r, y + h); ctx.arc(x + w - r, y + h - r, r, 0, Math.PI * 0.5); ctx.lineTo(x + r, y + h); ctx.lineTo(x, y + h - r); ctx.arc(x + r, y + h - r, r, Math.PI * 0.5, Math.PI); ctx.lineTo(x, y + r); ctx.lineTo(x + r, y); if (stroke) ctx.stroke(); if (fill) ctx.fill(); ctx.closePath(); } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/stroke-round-rect.d.ts ================================================ import { DrawPosterUseCtxOpts } from '../../utils/interface'; declare const _default: DrawPosterUseCtxOpts; /** 绘制填充圆角矩形方法 */ export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-function/stroke-round-rect.js ================================================ /** 绘制填充圆角矩形方法 */ export default { name: 'strokeRoundRect', handle: (canvas, ctx, x, y, w, h, r) => { ctx.roundRect(x, y, w, h, r, false, true); } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-painter/index.d.ts ================================================ import { DrawPosterUseOpts } from '../../utils/interface'; import { ImageFitOption } from '../draw-function/draw-image-fit'; /** 矩形基本信息 */ interface PainterItemSize { /** 容器的宽度,固定值 */ width: number; /** 容器的高度,固定值 */ height: number; } /** 元素位置信息 */ interface PainterItemSite { /** 元素锚点距左边的距离; 默认: 0 */ left?: number; /** 元素锚点距上边的距离; 默认: 0 */ top?: number; } /** 绘制图片信息 */ interface PainterImageInfo extends PainterItemSize, PainterItemSite { /** 绘制图片元素 */ type: 'image'; /** 图片地址 */ src: string; /** 图片自适应, 可参考 css 属性 object-fit */ objectFit?: ImageFitOption['objectFit']; /** 图片在元素容器中显示的位置,可参考 css 属性 object-position */ position?: ImageFitOption['intrinsicPosition']; /** 圆角尺寸; 默认: 0 */ radius?: number; } /** 绘制矩形信息 */ interface PainterRectInfo extends PainterItemSize, PainterItemSite { /** 绘制矩形元素 */ type: "rect"; /** 矩形背景颜色; 默认: "#000" */ background?: string; /** 圆角尺寸; 默认: 0 */ radius?: number; } /** 绘制单行文字信息 */ interface PainterTextInfo extends PainterItemSite { /** 绘制文本元素 */ type: "text"; /** 文本颜色; 默认: "#000" */ color?: string; /** 字体; 默认: "serial" */ fontFamily?: string; /** 字号(单位rpx); 默认: 30 rpx */ fontSize?: number; /** 字重; 默认: "normal" 可选项: "bold" */ fontWeight?: string; /** 字型 默认: "normal" 可选项: "italic" */ fontStyle?: string; /** 元素的宽度(单位rpx), 水平排布时影响后一个元素的位置,为 null 时根据文字实际占用的宽度计算 */ width?: number; /** 文本内容 */ content: string; } /** 绘制多行文字信息 */ interface PainterLineFeedTextInfo extends PainterItemSite { /** 绘制换行文本元素 */ type: "line-feed-text"; /** 文本颜色; 默认: "#000" */ color?: string; /** 字体; 默认: "serial" */ fontFamily?: string; /** 字号(单位rpx); 默认: 30 rpx */ fontSize?: number; /** 字重; 默认: "normal" 可选项: "bold" */ fontWeight?: string; /** 字型 默认: "normal" 可选项: "italic" */ fontStyle?: string; /** 文本块的宽度,不能为空 */ width: number; /** 行高; 默认取当前文字行高 */ lineHeight?: number; /** 文本最大行数,超出即显示省略号; 默认3行 */ lineClamp?: number; /** 文本内容 */ content: string; } /** 绘制二维码信息 */ interface PainterQrCodeInfo extends PainterItemSite { /** 绘制换行文本元素 */ type: "qr-code"; /** 二维码尺寸 */ size: number; /** 二维码内容 */ content: string; /** 边距,二维码实际尺寸会根据所设边距值进行缩放调整(默认:5) */ margin?: number; /** 背景色(默认:'#ffffff')*/ backgroundColor?: string; /** 前景色(默认:'#000000') */ foregroundColor?: string; } export interface PainterContainerOption extends PainterItemSize { /** 绘制项的数组 */ contents: Array; } declare const _default: DrawPosterUseOpts; export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-painter/index.js ================================================ export default { name: 'painter', handle: (dp, option) => { dp.canvas.width = option.width; dp.canvas.height = option.height; dp.draw(async (ctx) => { for (let i = 0; i < option.contents.length; i++) { ctx.save(); const drawInfo = option.contents[i]; const { left = 0, top = 0 } = drawInfo; if (drawInfo.type === 'rect') { ctx.fillStyle = drawInfo.background || '#000000'; ctx.fillRoundRect(left, top, drawInfo.width, drawInfo.height, drawInfo.radius || 0); } if (drawInfo.type === 'image') { await ctx.drawImageFit(drawInfo.src, { objectFit: drawInfo.objectFit || 'cover', intrinsicPosition: drawInfo.position || ['center', 'center'], specifiedPosition: [left, top], specifiedSize: { width: drawInfo.width, height: drawInfo.height }, radius: drawInfo.radius }); } if (drawInfo.type === 'text') { ctx.fillStyle = drawInfo.color || '#000000'; ctx.font = `\ ${drawInfo.fontStyle || 'normal'} \ ${drawInfo.fontWeight || 'normal'} \ ${drawInfo.fontSize || 30} \ ${drawInfo.fontFamily || 'serial'}\ `; ctx.fillText(drawInfo.content, left, top, drawInfo.width); } if (drawInfo.type === 'line-feed-text') { ctx.fillStyle = drawInfo.color || '#000000'; ctx.font = `\ ${drawInfo.fontStyle || 'normal'} \ ${drawInfo.fontWeight || 'normal'} \ ${drawInfo.fontSize || 30} \ ${drawInfo.fontFamily || 'serial'}\ `; ctx.fillWarpText({ x: drawInfo.left, y: drawInfo.top, layer: drawInfo.lineClamp, lineHeight: drawInfo.lineHeight, maxWidth: drawInfo.width, text: drawInfo.content }); } if (drawInfo.type === 'qr-code') { if (typeof ctx.drawQrCode !== 'function') { console.error('--- 当前未引入qr-code扩展, 将自动省略该二维码绘制 ---'); return false; } ctx.drawQrCode({ x: left, y: top, size: drawInfo.size, text: drawInfo.content, margin: drawInfo.margin || 5, backgroundColor: drawInfo.backgroundColor || '#ffffff', foregroundColor: drawInfo.foregroundColor || '#000000', }); } ctx.restore(); } }); } }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-qr-code/index.d.ts ================================================ declare const _default: { name: string; handle: any; errorCorrectLevel: any; }; export default _default; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-qr-code/index.js ================================================ import uQRCode from "./uQRCode"; export default { name: "drawQrCode", handle: uQRCode.make.bind(uQRCode), errorCorrectLevel: uQRCode.errorCorrectLevel }; ================================================ FILE: js_sdk/u-draw-poster/extends/draw-qr-code/uQRCode.d.ts ================================================ /* * @Author: Mr.Mao * @LastEditors: Mr.Mao * @Date: 2021-01-02 13:30:58 * @LastEditTime: 2021-01-02 13:31:27 * @Description: * @任何一个傻子都能写出让电脑能懂的代码,而只有好的程序员可以写出让人能看懂的代码 */ declare const uQRCode: any export default uQRCode ================================================ FILE: js_sdk/u-draw-poster/extends/draw-qr-code/uQRCode.js ================================================ /* * @Author: Mr.Mao * @LastEditors: Mr.Mao * @Date: 2021-01-02 13:30:58 * @LastEditTime: 2021-01-02 13:30:58 * @Description: * @任何一个傻子都能写出让电脑能懂的代码,而只有好的程序员可以写出让人能看懂的代码 */ //--------------------------------------------------------------------- // github https://github.com/Sansnn/uQRCode //--------------------------------------------------------------------- let uQRCode = {}; (function () { //--------------------------------------------------------------------- // QRCode for JavaScript // // Copyright (c) 2009 Kazuhiko Arase // // URL: http://www.d-project.com/ // // Licensed under the MIT license: // http://www.opensource.org/licenses/mit-license.php // // The word "QR Code" is registered trademark of // DENSO WAVE INCORPORATED // http://www.denso-wave.com/qrcode/faqpatent-e.html // //--------------------------------------------------------------------- //--------------------------------------------------------------------- // QR8bitByte //--------------------------------------------------------------------- function QR8bitByte(data) { this.mode = QRMode.MODE_8BIT_BYTE; this.data = data; } QR8bitByte.prototype = { getLength: function (buffer) { return this.data.length; }, write: function (buffer) { for (var i = 0; i < this.data.length; i++) { // not JIS ... buffer.put(this.data.charCodeAt(i), 8); } } }; //--------------------------------------------------------------------- // QRCode //--------------------------------------------------------------------- function QRCode(typeNumber, errorCorrectLevel) { this.typeNumber = typeNumber; this.errorCorrectLevel = errorCorrectLevel; this.modules = null; this.moduleCount = 0; this.dataCache = null; this.dataList = new Array(); } QRCode.prototype = { addData: function (data) { var newData = new QR8bitByte(data); this.dataList.push(newData); this.dataCache = null; }, isDark: function (row, col) { if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) { throw new Error(row + "," + col); } return this.modules[row][col]; }, getModuleCount: function () { return this.moduleCount; }, make: function () { // Calculate automatically typeNumber if provided is < 1 if (this.typeNumber < 1) { var typeNumber = 1; for (typeNumber = 1; typeNumber < 40; typeNumber++) { var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, this.errorCorrectLevel); var buffer = new QRBitBuffer(); var totalDataCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalDataCount += rsBlocks[i].dataCount; } for (var i = 0; i < this.dataList.length; i++) { var data = this.dataList[i]; buffer.put(data.mode, 4); buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber)); data.write(buffer); } if (buffer.getLengthInBits() <= totalDataCount * 8) break; } this.typeNumber = typeNumber; } this.makeImpl(false, this.getBestMaskPattern()); }, makeImpl: function (test, maskPattern) { this.moduleCount = this.typeNumber * 4 + 17; this.modules = new Array(this.moduleCount); for (var row = 0; row < this.moduleCount; row++) { this.modules[row] = new Array(this.moduleCount); for (var col = 0; col < this.moduleCount; col++) { this.modules[row][col] = null; //(col + row) % 3; } } this.setupPositionProbePattern(0, 0); this.setupPositionProbePattern(this.moduleCount - 7, 0); this.setupPositionProbePattern(0, this.moduleCount - 7); this.setupPositionAdjustPattern(); this.setupTimingPattern(); this.setupTypeInfo(test, maskPattern); if (this.typeNumber >= 7) { this.setupTypeNumber(test); } if (this.dataCache == null) { this.dataCache = QRCode.createData(this.typeNumber, this.errorCorrectLevel, this.dataList); } this.mapData(this.dataCache, maskPattern); }, setupPositionProbePattern: function (row, col) { for (var r = -1; r <= 7; r++) { if (row + r <= -1 || this.moduleCount <= row + r) continue; for (var c = -1; c <= 7; c++) { if (col + c <= -1 || this.moduleCount <= col + c) continue; if ((0 <= r && r <= 6 && (c == 0 || c == 6)) || (0 <= c && c <= 6 && (r == 0 || r == 6)) || (2 <= r && r <= 4 && 2 <= c && c <= 4)) { this.modules[row + r][col + c] = true; } else { this.modules[row + r][col + c] = false; } } } }, getBestMaskPattern: function () { var minLostPoint = 0; var pattern = 0; for (var i = 0; i < 8; i++) { this.makeImpl(true, i); var lostPoint = QRUtil.getLostPoint(this); if (i == 0 || minLostPoint > lostPoint) { minLostPoint = lostPoint; pattern = i; } } return pattern; }, createMovieClip: function (target_mc, instance_name, depth) { var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth); var cs = 1; this.make(); for (var row = 0; row < this.modules.length; row++) { var y = row * cs; for (var col = 0; col < this.modules[row].length; col++) { var x = col * cs; var dark = this.modules[row][col]; if (dark) { qr_mc.beginFill(0, 100); qr_mc.moveTo(x, y); qr_mc.lineTo(x + cs, y); qr_mc.lineTo(x + cs, y + cs); qr_mc.lineTo(x, y + cs); qr_mc.endFill(); } } } return qr_mc; }, setupTimingPattern: function () { for (var r = 8; r < this.moduleCount - 8; r++) { if (this.modules[r][6] != null) { continue; } this.modules[r][6] = (r % 2 == 0); } for (var c = 8; c < this.moduleCount - 8; c++) { if (this.modules[6][c] != null) { continue; } this.modules[6][c] = (c % 2 == 0); } }, setupPositionAdjustPattern: function () { var pos = QRUtil.getPatternPosition(this.typeNumber); for (var i = 0; i < pos.length; i++) { for (var j = 0; j < pos.length; j++) { var row = pos[i]; var col = pos[j]; if (this.modules[row][col] != null) { continue; } for (var r = -2; r <= 2; r++) { for (var c = -2; c <= 2; c++) { if (r == -2 || r == 2 || c == -2 || c == 2 || (r == 0 && c == 0)) { this.modules[row + r][col + c] = true; } else { this.modules[row + r][col + c] = false; } } } } } }, setupTypeNumber: function (test) { var bits = QRUtil.getBCHTypeNumber(this.typeNumber); for (var i = 0; i < 18; i++) { var mod = (!test && ((bits >> i) & 1) == 1); this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod; } for (var i = 0; i < 18; i++) { var mod = (!test && ((bits >> i) & 1) == 1); this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod; } }, setupTypeInfo: function (test, maskPattern) { var data = (this.errorCorrectLevel << 3) | maskPattern; var bits = QRUtil.getBCHTypeInfo(data); // vertical for (var i = 0; i < 15; i++) { var mod = (!test && ((bits >> i) & 1) == 1); if (i < 6) { this.modules[i][8] = mod; } else if (i < 8) { this.modules[i + 1][8] = mod; } else { this.modules[this.moduleCount - 15 + i][8] = mod; } } // horizontal for (var i = 0; i < 15; i++) { var mod = (!test && ((bits >> i) & 1) == 1); if (i < 8) { this.modules[8][this.moduleCount - i - 1] = mod; } else if (i < 9) { this.modules[8][15 - i - 1 + 1] = mod; } else { this.modules[8][15 - i - 1] = mod; } } // fixed module this.modules[this.moduleCount - 8][8] = (!test); }, mapData: function (data, maskPattern) { var inc = -1; var row = this.moduleCount - 1; var bitIndex = 7; var byteIndex = 0; for (var col = this.moduleCount - 1; col > 0; col -= 2) { if (col == 6) col--; while (true) { for (var c = 0; c < 2; c++) { if (this.modules[row][col - c] == null) { var dark = false; if (byteIndex < data.length) { dark = (((data[byteIndex] >>> bitIndex) & 1) == 1); } var mask = QRUtil.getMask(maskPattern, row, col - c); if (mask) { dark = !dark; } this.modules[row][col - c] = dark; bitIndex--; if (bitIndex == -1) { byteIndex++; bitIndex = 7; } } } row += inc; if (row < 0 || this.moduleCount <= row) { row -= inc; inc = -inc; break; } } } } }; QRCode.PAD0 = 0xEC; QRCode.PAD1 = 0x11; QRCode.createData = function (typeNumber, errorCorrectLevel, dataList) { var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel); var buffer = new QRBitBuffer(); for (var i = 0; i < dataList.length; i++) { var data = dataList[i]; buffer.put(data.mode, 4); buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber)); data.write(buffer); } // calc num max data. var totalDataCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalDataCount += rsBlocks[i].dataCount; } if (buffer.getLengthInBits() > totalDataCount * 8) { throw new Error("code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")"); } // end code if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) { buffer.put(0, 4); } // padding while (buffer.getLengthInBits() % 8 != 0) { buffer.putBit(false); } // padding while (true) { if (buffer.getLengthInBits() >= totalDataCount * 8) { break; } buffer.put(QRCode.PAD0, 8); if (buffer.getLengthInBits() >= totalDataCount * 8) { break; } buffer.put(QRCode.PAD1, 8); } return QRCode.createBytes(buffer, rsBlocks); } QRCode.createBytes = function (buffer, rsBlocks) { var offset = 0; var maxDcCount = 0; var maxEcCount = 0; var dcdata = new Array(rsBlocks.length); var ecdata = new Array(rsBlocks.length); for (var r = 0; r < rsBlocks.length; r++) { var dcCount = rsBlocks[r].dataCount; var ecCount = rsBlocks[r].totalCount - dcCount; maxDcCount = Math.max(maxDcCount, dcCount); maxEcCount = Math.max(maxEcCount, ecCount); dcdata[r] = new Array(dcCount); for (var i = 0; i < dcdata[r].length; i++) { dcdata[r][i] = 0xff & buffer.buffer[i + offset]; } offset += dcCount; var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount); var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1); var modPoly = rawPoly.mod(rsPoly); ecdata[r] = new Array(rsPoly.getLength() - 1); for (var i = 0; i < ecdata[r].length; i++) { var modIndex = i + modPoly.getLength() - ecdata[r].length; ecdata[r][i] = (modIndex >= 0) ? modPoly.get(modIndex) : 0; } } var totalCodeCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalCodeCount += rsBlocks[i].totalCount; } var data = new Array(totalCodeCount); var index = 0; for (var i = 0; i < maxDcCount; i++) { for (var r = 0; r < rsBlocks.length; r++) { if (i < dcdata[r].length) { data[index++] = dcdata[r][i]; } } } for (var i = 0; i < maxEcCount; i++) { for (var r = 0; r < rsBlocks.length; r++) { if (i < ecdata[r].length) { data[index++] = ecdata[r][i]; } } } return data; } //--------------------------------------------------------------------- // QRMode //--------------------------------------------------------------------- var QRMode = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 }; //--------------------------------------------------------------------- // QRErrorCorrectLevel //--------------------------------------------------------------------- var QRErrorCorrectLevel = { L: 1, M: 0, Q: 3, H: 2 }; //--------------------------------------------------------------------- // QRMaskPattern //--------------------------------------------------------------------- var QRMaskPattern = { PATTERN000: 0, PATTERN001: 1, PATTERN010: 2, PATTERN011: 3, PATTERN100: 4, PATTERN101: 5, PATTERN110: 6, PATTERN111: 7 }; //--------------------------------------------------------------------- // QRUtil //--------------------------------------------------------------------- var QRUtil = { PATTERN_POSITION_TABLE: [ [], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170] ], G15: (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0), G18: (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0), G15_MASK: (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1), getBCHTypeInfo: function (data) { var d = data << 10; while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) { d ^= (QRUtil.G15 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15))); } return ((data << 10) | d) ^ QRUtil.G15_MASK; }, getBCHTypeNumber: function (data) { var d = data << 12; while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) { d ^= (QRUtil.G18 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18))); } return (data << 12) | d; }, getBCHDigit: function (data) { var digit = 0; while (data != 0) { digit++; data >>>= 1; } return digit; }, getPatternPosition: function (typeNumber) { return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1]; }, getMask: function (maskPattern, i, j) { switch (maskPattern) { case QRMaskPattern.PATTERN000: return (i + j) % 2 == 0; case QRMaskPattern.PATTERN001: return i % 2 == 0; case QRMaskPattern.PATTERN010: return j % 3 == 0; case QRMaskPattern.PATTERN011: return (i + j) % 3 == 0; case QRMaskPattern.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0; case QRMaskPattern.PATTERN101: return (i * j) % 2 + (i * j) % 3 == 0; case QRMaskPattern.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 == 0; case QRMaskPattern.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 == 0; default: throw new Error("bad maskPattern:" + maskPattern); } }, getErrorCorrectPolynomial: function (errorCorrectLength) { var a = new QRPolynomial([1], 0); for (var i = 0; i < errorCorrectLength; i++) { a = a.multiply(new QRPolynomial([1, QRMath.gexp(i)], 0)); } return a; }, getLengthInBits: function (mode, type) { if (1 <= type && type < 10) { // 1 - 9 switch (mode) { case QRMode.MODE_NUMBER: return 10; case QRMode.MODE_ALPHA_NUM: return 9; case QRMode.MODE_8BIT_BYTE: return 8; case QRMode.MODE_KANJI: return 8; default: throw new Error("mode:" + mode); } } else if (type < 27) { // 10 - 26 switch (mode) { case QRMode.MODE_NUMBER: return 12; case QRMode.MODE_ALPHA_NUM: return 11; case QRMode.MODE_8BIT_BYTE: return 16; case QRMode.MODE_KANJI: return 10; default: throw new Error("mode:" + mode); } } else if (type < 41) { // 27 - 40 switch (mode) { case QRMode.MODE_NUMBER: return 14; case QRMode.MODE_ALPHA_NUM: return 13; case QRMode.MODE_8BIT_BYTE: return 16; case QRMode.MODE_KANJI: return 12; default: throw new Error("mode:" + mode); } } else { throw new Error("type:" + type); } }, getLostPoint: function (qrCode) { var moduleCount = qrCode.getModuleCount(); var lostPoint = 0; // LEVEL1 for (var row = 0; row < moduleCount; row++) { for (var col = 0; col < moduleCount; col++) { var sameCount = 0; var dark = qrCode.isDark(row, col); for (var r = -1; r <= 1; r++) { if (row + r < 0 || moduleCount <= row + r) { continue; } for (var c = -1; c <= 1; c++) { if (col + c < 0 || moduleCount <= col + c) { continue; } if (r == 0 && c == 0) { continue; } if (dark == qrCode.isDark(row + r, col + c)) { sameCount++; } } } if (sameCount > 5) { lostPoint += (3 + sameCount - 5); } } } // LEVEL2 for (var row = 0; row < moduleCount - 1; row++) { for (var col = 0; col < moduleCount - 1; col++) { var count = 0; if (qrCode.isDark(row, col)) count++; if (qrCode.isDark(row + 1, col)) count++; if (qrCode.isDark(row, col + 1)) count++; if (qrCode.isDark(row + 1, col + 1)) count++; if (count == 0 || count == 4) { lostPoint += 3; } } } // LEVEL3 for (var row = 0; row < moduleCount; row++) { for (var col = 0; col < moduleCount - 6; col++) { if (qrCode.isDark(row, col) && !qrCode.isDark(row, col + 1) && qrCode.isDark(row, col + 2) && qrCode.isDark(row, col + 3) && qrCode.isDark(row, col + 4) && !qrCode.isDark(row, col + 5) && qrCode.isDark(row, col + 6)) { lostPoint += 40; } } } for (var col = 0; col < moduleCount; col++) { for (var row = 0; row < moduleCount - 6; row++) { if (qrCode.isDark(row, col) && !qrCode.isDark(row + 1, col) && qrCode.isDark(row + 2, col) && qrCode.isDark(row + 3, col) && qrCode.isDark(row + 4, col) && !qrCode.isDark(row + 5, col) && qrCode.isDark(row + 6, col)) { lostPoint += 40; } } } // LEVEL4 var darkCount = 0; for (var col = 0; col < moduleCount; col++) { for (var row = 0; row < moduleCount; row++) { if (qrCode.isDark(row, col)) { darkCount++; } } } var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5; lostPoint += ratio * 10; return lostPoint; } }; //--------------------------------------------------------------------- // QRMath //--------------------------------------------------------------------- var QRMath = { glog: function (n) { if (n < 1) { throw new Error("glog(" + n + ")"); } return QRMath.LOG_TABLE[n]; }, gexp: function (n) { while (n < 0) { n += 255; } while (n >= 256) { n -= 255; } return QRMath.EXP_TABLE[n]; }, EXP_TABLE: new Array(256), LOG_TABLE: new Array(256) }; for (var i = 0; i < 8; i++) { QRMath.EXP_TABLE[i] = 1 << i; } for (var i = 8; i < 256; i++) { QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8]; } for (var i = 0; i < 255; i++) { QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i; } //--------------------------------------------------------------------- // QRPolynomial //--------------------------------------------------------------------- function QRPolynomial(num, shift) { if (num.length == undefined) { throw new Error(num.length + "/" + shift); } var offset = 0; while (offset < num.length && num[offset] == 0) { offset++; } this.num = new Array(num.length - offset + shift); for (var i = 0; i < num.length - offset; i++) { this.num[i] = num[i + offset]; } } QRPolynomial.prototype = { get: function (index) { return this.num[index]; }, getLength: function () { return this.num.length; }, multiply: function (e) { var num = new Array(this.getLength() + e.getLength() - 1); for (var i = 0; i < this.getLength(); i++) { for (var j = 0; j < e.getLength(); j++) { num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i)) + QRMath.glog(e.get(j))); } } return new QRPolynomial(num, 0); }, mod: function (e) { if (this.getLength() - e.getLength() < 0) { return this; } var ratio = QRMath.glog(this.get(0)) - QRMath.glog(e.get(0)); var num = new Array(this.getLength()); for (var i = 0; i < this.getLength(); i++) { num[i] = this.get(i); } for (var i = 0; i < e.getLength(); i++) { num[i] ^= QRMath.gexp(QRMath.glog(e.get(i)) + ratio); } // recursive call return new QRPolynomial(num, 0).mod(e); } }; //--------------------------------------------------------------------- // QRRSBlock //--------------------------------------------------------------------- function QRRSBlock(totalCount, dataCount) { this.totalCount = totalCount; this.dataCount = dataCount; } QRRSBlock.RS_BLOCK_TABLE = [ // L // M // Q // H // 1 [1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], // 2 [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], // 3 [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], // 4 [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], // 5 [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], // 6 [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], // 7 [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], // 8 [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], // 9 [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], // 10 [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], // 11 [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], // 12 [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], // 13 [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], // 14 [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], // 15 [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], // 16 [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], // 17 [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], // 18 [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], // 19 [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], // 20 [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], // 21 [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], // 22 [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], // 23 [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], // 24 [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], // 25 [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], // 26 [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], // 27 [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], // 28 [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], // 29 [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], // 30 [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], // 31 [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], // 32 [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], // 33 [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], // 34 [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], // 35 [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], // 36 [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], // 37 [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], // 38 [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], // 39 [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], // 40 [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16] ]; QRRSBlock.getRSBlocks = function (typeNumber, errorCorrectLevel) { var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel); if (rsBlock == undefined) { throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel); } var length = rsBlock.length / 3; var list = new Array(); for (var i = 0; i < length; i++) { var count = rsBlock[i * 3 + 0]; var totalCount = rsBlock[i * 3 + 1]; var dataCount = rsBlock[i * 3 + 2]; for (var j = 0; j < count; j++) { list.push(new QRRSBlock(totalCount, dataCount)); } } return list; } QRRSBlock.getRsBlockTable = function (typeNumber, errorCorrectLevel) { switch (errorCorrectLevel) { case QRErrorCorrectLevel.L: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0]; case QRErrorCorrectLevel.M: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1]; case QRErrorCorrectLevel.Q: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2]; case QRErrorCorrectLevel.H: return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3]; default: return undefined; } } //--------------------------------------------------------------------- // QRBitBuffer //--------------------------------------------------------------------- function QRBitBuffer() { this.buffer = new Array(); this.length = 0; } QRBitBuffer.prototype = { get: function (index) { var bufIndex = Math.floor(index / 8); return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) == 1; }, put: function (num, length) { for (var i = 0; i < length; i++) { this.putBit(((num >>> (length - i - 1)) & 1) == 1); } }, getLengthInBits: function () { return this.length; }, putBit: function (bit) { var bufIndex = Math.floor(this.length / 8); if (this.buffer.length <= bufIndex) { this.buffer.push(0); } if (bit) { this.buffer[bufIndex] |= (0x80 >>> (this.length % 8)); } this.length++; } }; //--------------------------------------------------------------------- // Support Chinese //--------------------------------------------------------------------- function utf16To8(text) { var result = ''; var c; for (var i = 0; i < text.length; i++) { c = text.charCodeAt(i); if (c >= 0x0001 && c <= 0x007F) { result += text.charAt(i); } else if (c > 0x07FF) { result += String.fromCharCode(0xE0 | c >> 12 & 0x0F); result += String.fromCharCode(0x80 | c >> 6 & 0x3F); result += String.fromCharCode(0x80 | c >> 0 & 0x3F); } else { result += String.fromCharCode(0xC0 | c >> 6 & 0x1F); result += String.fromCharCode(0x80 | c >> 0 & 0x3F); } } return result; } uQRCode = { errorCorrectLevel: QRErrorCorrectLevel, defaults: { size: 354, margin: 0, backgroundColor: '#ffffff', foregroundColor: '#000000', errorCorrectLevel: QRErrorCorrectLevel.H, typeNumber: -1 }, make: function (canvas, ctx, options) { var defaultOptions = { x: 0, y: 0, text: options.text, size: this.defaults.size, margin: this.defaults.margin, backgroundColor: this.defaults.backgroundColor, foregroundColor: this.defaults.foregroundColor, errorCorrectLevel: this.defaults.errorCorrectLevel, typeNumber: this.defaults.typeNumber }; if (options) { for (var i in options) { defaultOptions[i] = options[i]; } } options = defaultOptions; var qrcode = new QRCode(options.typeNumber, options.errorCorrectLevel); qrcode.addData(utf16To8(options.text)); qrcode.make(); ctx.fill ctx.fillStyle = options.backgroundColor; ctx.fillRect(options.x, options.y, options.size, options.size); var tileW = (options.size - options.margin * 2) / qrcode.getModuleCount(); var tileH = tileW; for (var row = 0; row < qrcode.getModuleCount(); row++) { for (var col = 0; col < qrcode.getModuleCount(); col++) { var style = qrcode.isDark(row, col) ? options.foregroundColor : options.backgroundColor; ctx.fillStyle = style var x = Math.round(col * tileW) + options.margin; var y = Math.round(row * tileH) + options.margin; var w = Math.ceil((col + 1) * tileW) - Math.floor(col * tileW); var h = Math.ceil((row + 1) * tileW) - Math.floor(row * tileW); ctx.fillRect(options.x + x, options.y + y, w, h); } } } } })() export default uQRCode ================================================ FILE: js_sdk/u-draw-poster/index.d.ts ================================================ import { DrawPosterBuildOpts } from "./utils/interface"; import DrawPoster from "./draw-poster"; import drawQrCode from "./extends/draw-qr-code/index"; import createFromList from './extends/create-from-list/index'; import drawPainter from './extends/draw-painter/index'; declare const useDrawPoster: (options: string | DrawPosterBuildOpts) => Promise; declare const useDrawPosters: (optionsAll: (string | DrawPosterBuildOpts)[]) => Promise<{ [key: string]: DrawPoster & import("./utils/interface").drawPosterExtends; }>; export { DrawPoster, useDrawPoster, useDrawPosters, drawQrCode, drawPainter, createFromList }; export default DrawPoster; ================================================ FILE: js_sdk/u-draw-poster/index.js ================================================ import * as dfucs from "./extends/draw-function/index"; import DrawPoster from "./draw-poster"; import drawQrCode from "./extends/draw-qr-code/index"; import createFromList from './extends/create-from-list/index'; import drawPainter from './extends/draw-painter/index'; DrawPoster.useCtx(dfucs.drawImage); DrawPoster.useCtx(dfucs.fillWarpText); DrawPoster.useCtx(dfucs.roundRect); DrawPoster.useCtx(dfucs.fillRoundRect); DrawPoster.useCtx(dfucs.strokeRoundRect); DrawPoster.useCtx(dfucs.drawRoundImage); DrawPoster.useCtx(dfucs.drawImageFit); const useDrawPoster = async (options) => { const dp = await DrawPoster.build(options); return dp; }; const useDrawPosters = async (optionsAll) => { const dps = await DrawPoster.buildAll(optionsAll); return dps; }; export { DrawPoster, useDrawPoster, useDrawPosters, drawQrCode, drawPainter, createFromList }; export default DrawPoster; ================================================ FILE: js_sdk/u-draw-poster/package.json ================================================ { "id": "u-draw-poster", "name": "u-draw-poster uniVue2|3适用 海报绘制工具", "version": "1.1.5", "description": "全端支持,内置多种海报绘制方法、表单绘制、二维码生成,图片裁剪。原生开发体验,上手快,不污染组件数据", "keywords": [ "海报", "绘制", "分享", "小程序", "canvas" ] } ================================================ FILE: js_sdk/u-draw-poster/utils/global.d.ts ================================================ /// /** 当前环境类型 */ export declare type UniPlatforms = 'app-plus' | 'app-plus-nvue' | 'h5' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-qq' | 'mp-360' | 'mp' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei' | undefined; export declare const PLATFORM: UniPlatforms; /** 全局对象 */ declare const _uni: UniApp.Uni; export default _uni; ================================================ FILE: js_sdk/u-draw-poster/utils/global.js ================================================ var _a; export const PLATFORM = typeof process !== 'undefined' ? (_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.VUE_APP_PLATFORM : undefined; /** 全局对象 */ const _uni = (function () { if (typeof uni != "undefined") return uni; if (typeof wx != "undefined") return wx; return uni; })(); export default _uni; ================================================ FILE: js_sdk/u-draw-poster/utils/interface.d.ts ================================================ /// import DrawPoster from "../draw-poster"; import { ImageFitOption } from '../extends/draw-function/draw-image-fit'; import { CreateLayerOpts, DrawRowOpt } from "../extends/create-from-list"; import { PainterContainerOption } from "../extends/draw-painter"; /** 绘制容器 */ export declare type Execute = Array<() => Promise>; export interface drawPosterExtends { from: { height: number; padding: number; margin: number; }; createLayer: (afferOpts: CreateLayerOpts, rowList: DrawRowOpt[]) => number; setFromOptions: (opts: Partial<{ height: number; padding: number; margin: number; }>) => void; gcanvas: { WeexBridge: any; Image: any; enable: (el: any, options: { bridge?: any; debug?: boolean; disableAutoSwap?: any; disableComboCommands?: any; }) => Canvas; }; painter: (option: PainterContainerOption) => void; } /** 构建器配置 */ export interface DrawPosterBuildOpts { /** 查询选择器; 注意不需要加# */ selector: string; /** 选取组件范围 */ componentThis?: any; /** 绘制类型为2d绘制, 默认开启, 在微信小程序的时候动态加载 */ type2d?: boolean; /** 是否在绘制时进行加载提示 */ loading?: boolean; /** 当存在绘制图片时, 等待绘画完毕的时间(秒)仅App中生效 * * 具体查看文档说明:https://github.com/TuiMao233/uni-draw-poster */ drawImageTime?: number; /** 是否开启调试模式 */ debugging?: boolean; /** 加载提示文字 */ loadingText?: string; /** 创建图片提示文字 */ createText?: string; /** 是否启动gcanvas(nvue) */ gcanvas?: boolean; } /** 绘制换行配置 */ export interface FillWarpTextOpts { text: string; maxWidth?: number; lineHeight?: number; layer?: number; x?: number; y?: number; splitText?: string; notFillText?: boolean; } /** 绘制二维码配置 */ export interface DrawQrCodeOpts { text: string; x?: number; y?: number; size?: number; margin?: number; backgroundColor?: string; foregroundColor?: string; } /** 绘制换行, 单行信息 */ export interface FillWarpTextItemInfo { text: string; y: number; x: number; } /** 绘制画笔 */ export interface DrawPosterCanvasCtx extends UniApp.CanvasContext { [key: string]: any; createImageData: () => ImageData; textAlign: CanvasTextDrawingStyles["textAlign"]; textBaseline: CanvasTextDrawingStyles["textBaseline"]; transform: CanvasTransform["transform"]; /** 绘制图片原型 */ drawImageProto: UniApp.CanvasContext['drawImage']; /** 当前绘制类型 */ drawType: 'context' | 'type2d'; /** 等待绘制图片 * * 说明文档: https://tuimao233.gitee.io/mao-blog/my-extends/u-draw-poste */ drawImage(url: string, dx?: number | undefined, dy?: number | undefined, dWidth?: number | undefined, dHeigt?: number | undefined, sx?: number | undefined, sy?: number | undefined, sWidth?: number | undefined, sHeight?: number | undefined): Promise; /** 绘制圆角图片 * * 说明文档: https://tuimao233.gitee.io/mao-blog/my-extends/u-draw-poste */ drawRoundImage(url: string, x: number, y: number, w: number, h: number, r?: number): Promise; /** 绘制 Object-Fit 模式图片 * * 说明文档: https://tuimao233.gitee.io/mao-blog/my-extends/u-draw-poste */ drawImageFit(url: string, opts?: ImageFitOption): Promise; /** 绘制换行字体 * * 说明文档: https://tuimao233.gitee.io/mao-blog/my-extends/u-draw-poste */ fillWarpText(options: FillWarpTextOpts): Array; /** 绘制圆角矩形(原型) * */ roundRect(x: number, y: number, w: number, h: number, r: number, fill?: boolean, stroke?: boolean): void; /** 绘制圆角矩形(填充) * * 说明文档: https://tuimao233.gitee.io/mao-blog/my-extends/u-draw-poste */ fillRoundRect(x: number, y: number, w: number, h: number, r: number): void; /** 绘制圆角矩形(边框) * * 说明文档: https://tuimao233.gitee.io/mao-blog/my-extends/u-draw-poste */ strokeRoundRect(x: number, y: number, w: number, h: number, r: number): void; /** 绘制二维码 * * 说明文档: https://tuimao233.gitee.io/mao-blog/my-extends/u-draw-poste */ drawQrCode(options: DrawQrCodeOpts): void; } /** Canvas2d实例 */ export interface Canvas { width: number; height: number; getContext(contextType: "2d" | "webgl"): DrawPosterCanvasCtx | WebGLRenderingContext; createImage(): { src: string; width: number; height: number; onload: () => void; onerror: () => void; }; requestAnimationFrame(callback: Function): number; cancelAnimationFrame(requestID: number): void; createImageData(): ImageData; createPath2D(path: Path2D): Path2D; toDataURL(type: string, encoderOptions: number): string; } /** 创建图片路径配置项 */ export interface CreateImagePathOptions { x?: number; y?: number; width?: number; height?: number; destWidth?: number; destHeight?: number; } /** 绘制实例扩展配置 */ export interface DrawPosterUseOpts { name: string; init?: (dp: InstanceType) => void; handle: (dp: InstanceType, ...args: any[]) => any; createImage?: (dp: InstanceType) => void; [key: string]: any; } /** 绘制画笔实例扩展配置 */ export interface DrawPosterUseCtxOpts { name: string; init?: (canvas: Canvas, ctx: DrawPosterCanvasCtx) => void; handle: (canvas: Canvas, ctx: DrawPosterCanvasCtx, ...args: any[]) => any; [key: string]: any; } ================================================ FILE: js_sdk/u-draw-poster/utils/interface.js ================================================ export {}; ================================================ FILE: js_sdk/u-draw-poster/utils/object-sizing.d.ts ================================================ export declare type ObjectFit = "contain" | "cover"; export declare type ObjectPosition = ["left" | "center" | "right", "top" | "center" | "bottom"]; export interface Size { width: number; height: number; } /** * 用于计算图片的宽高比例 * @see https://drafts.csswg.org/css-images-3/#sizing-terms * * ## 名词解释 * ### intrinsic dimensions * 图片本身的尺寸 * * ### specified size * 用户指定的元素尺寸 * * ### concrete object size * 应用了 `objectFit` 之后图片的显示尺寸 * * ### default object size */ export declare function calculateConcreteRect(style: { /** @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit */ objectFit?: ObjectFit; /** @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-position */ intrinsicPosition?: ObjectPosition; specifiedPosition?: [number, number]; }, intrinsicSize: Size, specifiedSize: Size): { sx: number; sy: number; sw: number; sh: number; dx: number; dy: number; dw: number; dh: number; }; ================================================ FILE: js_sdk/u-draw-poster/utils/object-sizing.js ================================================ /** * 用于计算图片的宽高比例 * @see https://drafts.csswg.org/css-images-3/#sizing-terms * * ## 名词解释 * ### intrinsic dimensions * 图片本身的尺寸 * * ### specified size * 用户指定的元素尺寸 * * ### concrete object size * 应用了 `objectFit` 之后图片的显示尺寸 * * ### default object size */ export function calculateConcreteRect(style, intrinsicSize, specifiedSize) { var _a, _b; const isContain = style.objectFit === 'contain'; const specifiedPosition = style.specifiedPosition || [0, 0]; // ratio 越大表示矩形越"扁" let intrinsicRatio = intrinsicSize.width / intrinsicSize.height; let specifiedRatio = specifiedSize.width / specifiedSize.height; /** 图片原始尺寸与最终尺寸之比 */ let concreteScale = 1; if (intrinsicRatio > specifiedRatio && style.objectFit == "contain" || intrinsicRatio <= specifiedRatio && style.objectFit == "cover") // 图片较"胖"时完整显示图片,图片较"瘦"时完全覆盖容器 // 这两种情况下有 concreteRect.width = specifiedSize.width // 因为 concreteRect.width = intrinsicSize.width * concreteScale // 所以: concreteScale = specifiedSize.width / intrinsicSize.width; else if (intrinsicRatio > specifiedRatio && style.objectFit == "cover" || intrinsicRatio <= specifiedRatio && style.objectFit == "contain") // 图片较"瘦"时完整显示图片,图片较"胖"时完全覆盖容器 // 这两种情况下有 concreteRect.height = specifiedSize.height // 因为 concreteRect.height = intrinsicSize.height * concreteScale // 所以: concreteScale = specifiedSize.height / intrinsicSize.height; else throw new Error("Unkonwn concreteScale"); let concreteRectWidth = intrinsicSize.width * concreteScale; let concreteRectHeight = intrinsicSize.height * concreteScale; // 这里可以把 left top 的计算想象成投影 let xRelativeOrigin = { left: 0, center: .5, right: 1 }[((_a = style.intrinsicPosition) === null || _a === void 0 ? void 0 : _a[0]) || "center"]; let yRelativeOrigin = { top: 0, center: .5, bottom: 1 }[((_b = style.intrinsicPosition) === null || _b === void 0 ? void 0 : _b[1]) || "center"]; let concreteRectLeft = (specifiedSize.width - concreteRectWidth) * xRelativeOrigin; let concreteRectTop = (specifiedSize.height - concreteRectHeight) * yRelativeOrigin; if (isContain) { concreteRectLeft += specifiedPosition[0]; concreteRectTop += specifiedPosition[1]; } // 这里有两个坐标系,一个是 specified (dist) 的坐标系,一个是 intrinsic (src) 的坐标系 // 这里将两个坐标系的点位置进行变换 // 例: 带入 x=0, y=0, 得到的结果就是 specifiedRect 的左上角在 intrinsic 坐标系下的坐标位置 // 在 specified 坐标系下, intrinsic 的零点在 (concreteRectLeft, concreteRectTop), 缩放为 concreteScale // 所以有 x_dist = x_src * concreteScale + concreteRectLeft // y_dist = y_src * concreteScale + concreteRectTop let dist2src = (distX, distY) => [ /* srcX = */ (distX - concreteRectLeft) / concreteScale, /* srcY = */ (distY - concreteRectTop) / concreteScale ]; let [srcLeft, srcTop] = dist2src(0, 0); // srcRight = 图片 specified 框右边在 src 坐标系下的 x 坐标 // srcBottom = 图片 specified 框下边在 src 坐标系下的 y 坐标 let [srcRight, srcBottom] = dist2src(specifiedSize.width, specifiedSize.height); // 这里要对 src 和 disc 两个框进行约束 return { sx: Math.max(srcLeft, 0), sy: Math.max(srcTop, 0), sw: Math.min(srcRight - srcLeft, intrinsicSize.width), sh: Math.min(srcBottom - srcTop, intrinsicSize.height), dx: isContain ? Math.max(concreteRectLeft, 0) : specifiedPosition[0], dy: isContain ? Math.max(concreteRectTop, 0) : specifiedPosition[1], dw: Math.min(concreteRectWidth, specifiedSize.width), dh: Math.min(concreteRectHeight, specifiedSize.height) }; } ================================================ FILE: js_sdk/u-draw-poster/utils/utils.d.ts ================================================ import { DrawPosterBuildOpts } from "./interface"; /** 是否是base64本地地址 */ export declare const isBaseUrl: (str: string) => boolean; /** 是否是小程序本地地址 */ export declare const isTmpUrl: (str: string) => boolean; /** 是否是网络地址 */ export declare const isNetworkUrl: (str: string) => boolean; /** 对象target挂载到对象current */ export declare const extendMount: (current: Record, target: Record, handle?: (extend: Function, target?: Record | undefined) => any) => void; /** 处理构建配置 */ export declare const handleBuildOpts: (options: string | DrawPosterBuildOpts) => { selector: string; componentThis: any; type2d: boolean; loading: boolean; debugging: boolean; loadingText: string; createText: string; gcanvas: boolean; }; ================================================ FILE: js_sdk/u-draw-poster/utils/utils.js ================================================ import { PLATFORM } from "./global"; /** 是否是base64本地地址 */ export const isBaseUrl = (str) => { return /^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*?)\s*$/i.test(str); }; /** 是否是小程序本地地址 */ export const isTmpUrl = (str) => { return /http:\/\/temp\/wx/.test(str); }; /** 是否是网络地址 */ export const isNetworkUrl = (str) => { return /^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/.test(str); }; /** 对象target挂载到对象current */ export const extendMount = (current, target, handle = (extend, target) => undefined) => { for (const key in target) { current[key] = handle(target[key].handle, target[key]) || target[key].handle; } }; /** 处理构建配置 */ export const handleBuildOpts = (options) => { let defaultOpts = { selector: '', componentThis: undefined, type2d: true, loading: false, debugging: false, loadingText: '绘制海报中...', createText: '生成图片中...', gcanvas: false }; if (typeof options === "string") { defaultOpts.selector = options; } else { defaultOpts = Object.assign(Object.assign({}, defaultOpts), options); } const oldSelector = defaultOpts.selector; if (PLATFORM === 'mp-weixin' && defaultOpts.type2d) { defaultOpts.selector = '#' + defaultOpts.selector; } if (!PLATFORM) { console.error('注意! draw-poster未开启uni条件编译! 当环境是微信小程序将不会动态切换为type2d模式'); console.error(`请在vue.config.js中的transpileDependencies中添加'uni-draw-poster'`); console.error(`或者可以在选择器字符串前缀中添加#来切换为type2d绘制`); defaultOpts.selector = oldSelector; } return defaultOpts; }; ================================================ FILE: js_sdk/u-draw-poster/utils/wx-utils.d.ts ================================================ import { Canvas } from "./interface"; export declare const downloadImgUrl: (url: string) => Promise; export declare const getCanvas2dContext: (selector: string, componentThis?: any) => Promise; ================================================ FILE: js_sdk/u-draw-poster/utils/wx-utils.js ================================================ /* * @Author: Mr.Mao * @LastEditors: Mr.Mao * @Date: 2020-10-12 08:49:27 * @LastEditTime: 2020-12-09 13:54:10 * @Description: * @任何一个傻子都能写出让电脑能懂的代码,而只有好的程序员可以写出让人能看懂的代码 */ import uni from "./global"; import { isBaseUrl, isNetworkUrl, isTmpUrl } from './utils'; // 下载指定地址图片, 如果不符合下载图片, 则直接返回 export const downloadImgUrl = (url) => { const isLocalFile = isBaseUrl(url) || isTmpUrl(url) || !isNetworkUrl(url); return new Promise((resolve, reject) => { if (isLocalFile) { return resolve(url); } uni.downloadFile({ url, success: (res) => resolve(res.tempFilePath), fail: reject }); }); }; // 获取当前指定 node 节点 export const getCanvas2dContext = (selector, componentThis) => { return new Promise(resolve => { const query = (componentThis ? uni.createSelectorQuery().in(componentThis) : uni.createSelectorQuery()); query.select(selector) .fields({ node: true }, res => { const node = res === null || res === void 0 ? void 0 : res.node; resolve(node || {}); }).exec(); }); }; ================================================ FILE: js_sdk/wa-permission/permission.js ================================================ /** * 本模块封装了Android、iOS的应用权限判断、打开应用权限设置界面、以及位置系统服务是否开启 * https://ext.dcloud.net.cn/plugin?id=594 */ var isIos // #ifdef APP-PLUS isIos = (plus.os.name == "iOS") // #endif // 判断推送权限是否开启 function judgeIosPermissionPush() { var result = false; var UIApplication = plus.ios.import("UIApplication"); var app = UIApplication.sharedApplication(); var enabledTypes = 0; if (app.currentUserNotificationSettings) { var settings = app.currentUserNotificationSettings(); enabledTypes = settings.plusGetAttribute("types"); console.log("enabledTypes1:" + enabledTypes); if (enabledTypes == 0) { console.log("推送权限没有开启"); } else { result = true; console.log("已经开启推送功能!") } plus.ios.deleteObject(settings); } else { enabledTypes = app.enabledRemoteNotificationTypes(); if (enabledTypes == 0) { console.log("推送权限没有开启!"); } else { result = true; console.log("已经开启推送功能!") } console.log("enabledTypes2:" + enabledTypes); } plus.ios.deleteObject(app); plus.ios.deleteObject(UIApplication); return result; } // 判断定位权限是否开启 function judgeIosPermissionLocation() { var result = false; var cllocationManger = plus.ios.import("CLLocationManager"); var status = cllocationManger.authorizationStatus(); result = (status != 2) console.log("定位权限开启:" + result); // 以下代码判断了手机设备的定位是否关闭,推荐另行使用方法 checkSystemEnableLocation /* var enable = cllocationManger.locationServicesEnabled(); var status = cllocationManger.authorizationStatus(); console.log("enable:" + enable); console.log("status:" + status); if (enable && status != 2) { result = true; console.log("手机定位服务已开启且已授予定位权限"); } else { console.log("手机系统的定位没有打开或未给予定位权限"); } */ plus.ios.deleteObject(cllocationManger); return result; } // 判断麦克风权限是否开启 function judgeIosPermissionRecord() { var result = false; var avaudiosession = plus.ios.import("AVAudioSession"); var avaudio = avaudiosession.sharedInstance(); var permissionStatus = avaudio.recordPermission(); console.log("permissionStatus:" + permissionStatus); if (permissionStatus == 1684369017 || permissionStatus == 1970168948) { console.log("麦克风权限没有开启"); } else { result = true; console.log("麦克风权限已经开启"); } plus.ios.deleteObject(avaudiosession); return result; } // 判断相机权限是否开启 function judgeIosPermissionCamera() { var result = false; var AVCaptureDevice = plus.ios.import("AVCaptureDevice"); var authStatus = AVCaptureDevice.authorizationStatusForMediaType('vide'); console.log("authStatus:" + authStatus); if (authStatus == 3) { result = true; console.log("相机权限已经开启"); } else { console.log("相机权限没有开启"); } plus.ios.deleteObject(AVCaptureDevice); return result; } // 判断相册权限是否开启 function judgeIosPermissionPhotoLibrary() { var result = false; var PHPhotoLibrary = plus.ios.import("PHPhotoLibrary"); var authStatus = PHPhotoLibrary.authorizationStatus(); console.log("authStatus:" + authStatus); if (authStatus == 3) { result = true; console.log("相册权限已经开启"); } else { console.log("相册权限没有开启"); } plus.ios.deleteObject(PHPhotoLibrary); return result; } // 判断通讯录权限是否开启 function judgeIosPermissionContact() { var result = false; var CNContactStore = plus.ios.import("CNContactStore"); var cnAuthStatus = CNContactStore.authorizationStatusForEntityType(0); if (cnAuthStatus == 3) { result = true; console.log("通讯录权限已经开启"); } else { console.log("通讯录权限没有开启"); } plus.ios.deleteObject(CNContactStore); return result; } // 判断日历权限是否开启 function judgeIosPermissionCalendar() { var result = false; var EKEventStore = plus.ios.import("EKEventStore"); var ekAuthStatus = EKEventStore.authorizationStatusForEntityType(0); if (ekAuthStatus == 3) { result = true; console.log("日历权限已经开启"); } else { console.log("日历权限没有开启"); } plus.ios.deleteObject(EKEventStore); return result; } // 判断备忘录权限是否开启 function judgeIosPermissionMemo() { var result = false; var EKEventStore = plus.ios.import("EKEventStore"); var ekAuthStatus = EKEventStore.authorizationStatusForEntityType(1); if (ekAuthStatus == 3) { result = true; console.log("备忘录权限已经开启"); } else { console.log("备忘录权限没有开启"); } plus.ios.deleteObject(EKEventStore); return result; } // Android权限查询 function requestAndroidPermission(permissionID) { return new Promise((resolve, reject) => { plus.android.requestPermissions( [permissionID], // 理论上支持多个权限同时查询,但实际上本函数封装只处理了一个权限的情况。有需要的可自行扩展封装 function(resultObj) { var result = 0; for (var i = 0; i < resultObj.granted.length; i++) { var grantedPermission = resultObj.granted[i]; console.log('已获取的权限:' + grantedPermission); result = 1 } for (var i = 0; i < resultObj.deniedPresent.length; i++) { var deniedPresentPermission = resultObj.deniedPresent[i]; console.log('拒绝本次申请的权限:' + deniedPresentPermission); result = 0 } for (var i = 0; i < resultObj.deniedAlways.length; i++) { var deniedAlwaysPermission = resultObj.deniedAlways[i]; console.log('永久拒绝申请的权限:' + deniedAlwaysPermission); result = -1 } resolve(result); // 若所需权限被拒绝,则打开APP设置界面,可以在APP设置界面打开相应权限 // if (result != 1) { // gotoAppPermissionSetting() // } }, function(error) { console.log('申请权限错误:' + error.code + " = " + error.message); resolve({ code: error.code, message: error.message }); } ); }); } // 使用一个方法,根据参数判断权限 function judgeIosPermission(permissionID) { if (permissionID == "location") { return judgeIosPermissionLocation() } else if (permissionID == "camera") { return judgeIosPermissionCamera() } else if (permissionID == "photoLibrary") { return judgeIosPermissionPhotoLibrary() } else if (permissionID == "record") { return judgeIosPermissionRecord() } else if (permissionID == "push") { return judgeIosPermissionPush() } else if (permissionID == "contact") { return judgeIosPermissionContact() } else if (permissionID == "calendar") { return judgeIosPermissionCalendar() } else if (permissionID == "memo") { return judgeIosPermissionMemo() } return false; } // 跳转到**应用**的权限页面 function gotoAppPermissionSetting() { if (isIos) { var UIApplication = plus.ios.import("UIApplication"); var application2 = UIApplication.sharedApplication(); var NSURL2 = plus.ios.import("NSURL"); // var setting2 = NSURL2.URLWithString("prefs:root=LOCATION_SERVICES"); var setting2 = NSURL2.URLWithString("app-settings:"); application2.openURL(setting2); plus.ios.deleteObject(setting2); plus.ios.deleteObject(NSURL2); plus.ios.deleteObject(application2); } else { // console.log(plus.device.vendor); 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); } } // 检查系统的设备服务是否开启 // var checkSystemEnableLocation = async function () { function checkSystemEnableLocation() { if (isIos) { var result = false; var cllocationManger = plus.ios.import("CLLocationManager"); var result = cllocationManger.locationServicesEnabled(); console.log("系统定位开启:" + result); plus.ios.deleteObject(cllocationManger); return result; } else { var context = plus.android.importClass("android.content.Context"); var locationManager = plus.android.importClass("android.location.LocationManager"); var main = plus.android.runtimeMainActivity(); var mainSvr = main.getSystemService(context.LOCATION_SERVICE); var result = mainSvr.isProviderEnabled(locationManager.GPS_PROVIDER); console.log("系统定位开启:" + result); return result } } module.exports = { judgeIosPermission: judgeIosPermission, requestAndroidPermission: requestAndroidPermission, checkSystemEnableLocation: checkSystemEnableLocation, gotoAppPermissionSetting: gotoAppPermissionSetting } ================================================ FILE: lib/request/adapters/index.js ================================================ import buildURL from '../helpers/buildURL' import buildFullPath from '../core/buildFullPath' import settle from '../core/settle' /** * 返回可选值存在的配置 * @param {Array} keys - 可选值数组 * @param {Object} config2 - 配置 * @return {{}} - 存在的配置项 */ const mergeKeys = (keys, config2) => { let config = {} keys.forEach(prop => { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop] } }) return config } export default (config) => { return new Promise((resolve, reject) => { const _config = { url: buildURL(buildFullPath(config.baseURL, config.url), config.params), header: config.header, complete: (response) => { 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') { let 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 'formData' ] requestTask = uni.uploadFile({..._config, ...otherConfig, ...mergeKeys(optionalKeys, config)}) } else if (config.method === 'DOWNLOAD') { requestTask = uni.downloadFile(_config) } else { const optionalKeys = [ 'data', 'method', // #ifdef MP-ALIPAY || MP-WEIXIN 'timeout', // #endif 'dataType', // #ifndef MP-ALIPAY || APP-PLUS 'responseType', // #endif // #ifdef APP-PLUS 'sslVerify', // #endif // #ifdef H5 'withCredentials' // #endif ] requestTask = uni.request({..._config,...mergeKeys(optionalKeys, config)}) } if (config.getTask) { config.getTask(requestTask, config) } }) } ================================================ FILE: lib/request/core/InterceptorManager.js ================================================ '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: fulfilled, rejected: 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 ================================================ FILE: lib/request/core/Request.js ================================================ /** * @Class Request * @description luch-request http请求插件 * @version 3.0.2 * @Author lu-ch * @Date 2020-06-04 * @Email webwork.s@qq.com * 文档: https://quanzhan.co/luch-request/ * github: https://github.com/lei-mu/luch-request * DCloud: http://ext.dcloud.net.cn/plugin?id=392 * HBuilderX: 2.7.9 */ import dispatchRequest from './dispatchRequest' import InterceptorManager from './InterceptorManager' import mergeConfig from './mergeConfig' import defaults from './defaults' import { isPlainObject } from '../utils' 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] - 全局默认的dataType * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。App和支付宝小程序不支持 * @param {Object} arg.custom - 全局默认的自定义参数 * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认30000。仅微信小程序(2.10.0)、支付宝小程序支持 * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+) * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+) * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300 */ constructor(arg = {}) { if (!isPlainObject(arg)) { arg = {} //console.warn('设置全局参数必须接收一个Object') } this.config = {...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) let chain = [dispatchRequest, undefined] let promise = Promise.resolve(config) this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected) }) this.interceptors.response.forEach(function pushResponseInterceptors(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} */ request(config = {}) { return this._middleware(config) } get(url, options = {}) { return this.request({ url, method: 'GET', ...options }) } post(url, data, options = {}) { return this.request({ url, data, method: 'POST', ...options }) } // #ifndef MP-ALIPAY put(url, data, options = {}) { return this.request({ url, data, method: 'PUT', ...options }) } // #endif // #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-BAIDU delete(url, data, options = {}) { return this.request({ url, data, method: 'DELETE', ...options }) } // #endif // #ifdef APP-PLUS || H5 || MP-WEIXIN connect(url, data, options = {}) { return this.request({ url, data, method: 'CONNECT', ...options }) } // #endif // #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-BAIDU head(url, data, options = {}) { return this.request({ url, data, method: 'HEAD', ...options }) } // #endif // #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-BAIDU options(url, data, options = {}) { return this.request({ url, data, method: 'OPTIONS', ...options }) } // #endif // #ifdef APP-PLUS || H5 || MP-WEIXIN trace(url, data, options = {}) { return this.request({ 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 */ ================================================ FILE: lib/request/core/buildFullPath.js ================================================ '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 } ================================================ FILE: lib/request/core/defaults.js ================================================ /** * 默认的全局配置 */ export default { baseURL: '', header: {}, method: 'GET', dataType: 'json', // #ifndef MP-ALIPAY || APP-PLUS responseType: 'text', // #endif custom: {}, // #ifdef MP-ALIPAY || MP-WEIXIN timeout: 30000, // #endif // #ifdef APP-PLUS sslVerify: true, // #endif // #ifdef H5 withCredentials: false, // #endif validateStatus: function validateStatus(status) { return status >= 200 && status < 300 } } ================================================ FILE: lib/request/core/dispatchRequest.js ================================================ import adapter from '../adapters/index' export default (config) => { config.header = config.header || {} return adapter(config) } ================================================ FILE: lib/request/core/mergeConfig.js ================================================ import {deepMerge, isObject} from '../utils' /** * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局 * @param {Array} keys - 配置项 * @param {Object} globalsConfig - 当前的全局配置 * @param {Object} config2 - 局部配置 * @return {{}} */ const mergeKeys = (keys, globalsConfig, config2) => { let config = {} keys.forEach(prop => { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop] } else if (typeof globalsConfig[prop] !== 'undefined') { 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: method, url: config2.url || '' } const mergeDeepPropertiesKeys = ['header', 'params', 'custom'] const defaultToConfig2Keys = ['getTask', 'validateStatus'] mergeDeepPropertiesKeys.forEach(prop => { if (isObject(config2[prop])) { config[prop] = deepMerge(globalsConfig[prop], config2[prop]) } else if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop] } else if (isObject(globalsConfig[prop])) { config[prop] = deepMerge(globalsConfig[prop]) } else if (typeof globalsConfig[prop] !== 'undefined') { config[prop] = globalsConfig[prop] } }) config = {...config, ...mergeKeys(defaultToConfig2Keys, globalsConfig, config2)} // eslint-disable-next-line no-empty if (method === 'DOWNLOAD') { } else if (method === 'UPLOAD') { if (isObject(config.header)) { 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', 'formData', ] uploadKeys.forEach(prop => { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop] } }) } else { const defaultsKeys = [ 'data', // #ifdef MP-ALIPAY || MP-WEIXIN 'timeout', // #endif 'dataType', // #ifndef MP-ALIPAY || APP-PLUS 'responseType', // #endif // #ifdef APP-PLUS 'sslVerify', // #endif // #ifdef H5 'withCredentials' // #endif ] config = {...config, ...mergeKeys(defaultsKeys, globalsConfig, config2)} } return config } ================================================ FILE: lib/request/core/settle.js ================================================ /** * 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.validateStatus const status = response.statusCode if (status && (!validateStatus || validateStatus(status))) { resolve(response) } else { reject(response) } } ================================================ FILE: lib/request/helpers/buildURL.js ================================================ '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 } var serializedParams if (utils.isURLSearchParams(params)) { serializedParams = params.toString() } else { var parts = [] utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return } if (utils.isArray(val)) { key = key + '[]' } else { val = [val] } utils.forEach(val, function parseValue(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) { var hashmarkIndex = url.indexOf('#') if (hashmarkIndex !== -1) { url = url.slice(0, hashmarkIndex) } url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams } return url } ================================================ FILE: lib/request/helpers/combineURLs.js ================================================ '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 } ================================================ FILE: lib/request/helpers/isAbsoluteURL.js ================================================ '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 "://" 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) } ================================================ FILE: lib/request/index.js ================================================ import Request from './core/Request' export default Request ================================================ FILE: lib/request/utils.js ================================================ 'use strict' // utils is a library of generic helper functions non-specific to axios var toString = Object.prototype.toString /** * 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 (var i = 0, l = obj.length; i < l; i++) { fn.call(null, obj[i], i, obj) } } else { // Iterate over object keys for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { fn.call(null, obj[key], key, obj) } } } } /** * 是否为boolean 值 * @param val * @returns {boolean} */ export function isBoolean(val) { return typeof val === 'boolean' } /** * 是否为真正的对象{} 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, ... */) { let 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 } ================================================ FILE: main.js ================================================ import Vue from "vue"; import App from "./App"; import * as filters from "./utils/filters.js"; // global filter import uView from "uview-ui"; import store from "./store"; import config from '@/config/config'; import airBtn from "@/components/m-airbtn/index.vue"; import socketIO from './pages/mine/im/socket'; /** * 仅在h5中显示唤醒app功能 * 在h5页面手动挂载 * */ // #ifdef H5 if (config.enableMiniBarStartUpApp) { let btn = Vue.component("airBtn", airBtn); //全局注册 document.body.appendChild(new btn().$mount().$el); } // #endif // 引入uView对小程序分享的mixin封装 let mpShare = require('uview-ui/libs/mixin/mpShare.js'); Vue.mixin(mpShare) /** * 全局filters */ Object.keys(filters).forEach((key) => { Vue.filter(key, filters[key]); }); // 引入Vuex Vue.prototype.$store = store; // Vue.prototype.socketIo = new socketIO(); Vue.use(uView); Vue.config.productionTip = false; /** * 注意! * 此处将常用的颜色嵌入到原型链上面 * 颜色使用驼峰命名对应 uni.scss中全局颜色变量名 * 如需更换主题请修改此处以及uni.scss中的全局颜色 */ // 主题色 Vue.prototype.$mainColor = config.mainColor; // 高亮主题色 Vue.prototype.$lightColor = config.lightColor; // 辅助高亮颜色 Vue.prototype.$aiderLightColor = config.aiderLightColor; App.mpType = "app"; const app = new Vue({ ...App, }); app.$mount(); ================================================ FILE: manifest.json ================================================ { "name" : "lilishop", "appid" : "__UNI__ED807EA", "description" : "", "versionName" : "4.5.3", "versionCode" : 4000503, "transformPx" : false, "app-plus" : { "compatible" : { "ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 }, /* 5+App特有相关 */ "usingComponents" : true, "splashscreen" : { "alwaysShowBeforeRender" : true, "waiting" : true, "autoclose" : true, "delay" : 0 }, "modules" : { "Payment" : {}, "Share" : {}, "Fingerprint" : {}, "FaceID" : {}, "Geolocation" : {}, "Maps" : {}, "OAuth" : {} }, "error" : { /* 404错误页面*/ "url" : "hybrid/html/error.html" }, /* 模块配置 */ "distribute" : { /* 应用发布信息 */ "android" : { /* android打包配置 */ "permissions" : [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "schemes" : "lilishop", //安卓自添加 权限 应用市场 过度索取权限 "permissionExternalStorage" : { "request" : "none", "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" }, "permissionPhoneState" : { "request" : "none", "prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许" }, "autoSdkPermissions" : false }, //安卓自添加 权限 应用市场 过度索取权限 "ios" : { "idfa" : false, "privacyDescription" : { "NSPhotoLibraryUsageDescription" : "需要用与评论上传,头像上传功能", "NSPhotoLibraryAddUsageDescription" : "保存商品图片到本地", "NSFaceIDUsageDescription" : "使用面部识别进行登录", "NSCameraUsageDescription" : "需要用与扫描二维码和商品评论图片拍摄", "NSLocationAlwaysAndWhenInUseUsageDescription" : "位置信息将用于高德地图的效果展示", "NSMicrophoneUsageDescription" : "用户上传视频时需使用音频信息" }, "urltypes" : "lilishop", "dSYMs" : false }, /* ios打包配置 */ "sdkConfigs" : { "payment" : { "weixin" : { "__platform__" : [ "ios", "android" ], "appid" : "wx32788b91bdb614c0", "UniversalLinks" : "https://m-b2b2c.pickmall.cn/app/" }, "alipay" : { "__platform__" : [ "ios", "android" ] } }, "ad" : {}, "share" : { "weixin" : { "appid" : "wx32788b91bdb614c0", "UniversalLinks" : "https://m-b2b2c.pickmall.cn/app/" } }, "oauth" : { "weixin" : { "appid" : "wx32788b91bdb614c0", "appsecret" : "230233cef7520ee935bbecad372a370e", "UniversalLinks" : "https://m-b2b2c.pickmall.cn/app/" }, "apple" : {}, "qq" : { "appid" : "101918503" } }, "geolocation" : { "amap" : { "__platform__" : [ "ios", "android" ], "appkey_ios" : "48e85877d7d8877661aeb7392c54deff", "appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df" } }, "maps" : { "amap" : { "appkey_ios" : "48e85877d7d8877661aeb7392c54deff", "appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df" } }, "push" : {} }, "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" } } }, "splashscreen" : { "iosStyle" : "common", "ios" : { "storyboard" : "CustomStoryboard.zip" }, "androidStyle" : "default", "android" : { "hdpi" : "CustomStartPage/start-page.9.png", "xhdpi" : "CustomStartPage/start-page.9.png", "xxhdpi" : "CustomStartPage/start-page.9.png" } } } }, "permission" : { "scope.userLocation" : { "desc" : "你的位置信息将用于高德地图的效果展示" } }, /* SDK配置 */ "quickapp" : {}, /* 快应用特有相关 */ "mp-weixin" : { /* 小程序特有相关 */ "usingComponents" : true, "appid" : "wx6f10f29075dc1b0b", "optimization" : { "subPackages" : true }, "setting" : { "urlCheck" : false, "minified" : true, "postcss" : false, "es6" : true }, "permission" : { "scope.userLocation" : { "desc" : "位置信息将用于高德地图的效果展示" }, "scope.writePhotosAlbum" : { "desc" : "将用于保存图片" } }, "plugins" : {}, // 直播插件注释 // "live-player-plugin" : { // "version" : "1.3.0", // "provider" : "wx2b03c6e691cd7370" // } "requiredPrivateInfos" : [ "chooseLocation", "getLocation" ] }, "h5" : { "devServer" : { "disableHostCheck" : true }, "router" : { "mode" : "history", "base" : "" }, "sdkConfigs" : { "maps" : {} }, "optimization" : { "treeShaking" : { "enable" : true } }, "title" : "lilishop", "template" : "" } } ================================================ FILE: pages/cart/coupon/couponCenter.vue ================================================ ================================================ FILE: pages/cart/coupon/couponDetail.vue ================================================ ================================================ FILE: pages/cart/coupon/index.vue ================================================ ================================================ FILE: pages/cart/coupon/myCoupon.vue ================================================ ================================================ FILE: pages/cart/payment/error.vue ================================================ ================================================ FILE: pages/cart/payment/payOrder.vue ================================================ ================================================ FILE: pages/cart/payment/shareOrderGoods.vue ================================================ ================================================ FILE: pages/cart/payment/success.vue ================================================ ================================================ FILE: pages/floor/empty.vue ================================================ ================================================ FILE: pages/mine/address/add.vue ================================================ ================================================ FILE: pages/mine/address/address.scss ================================================ .empty { margin-top: 200rpx !important; } .alifont { display: inline-block; } .region { span { margin: 0 4rpx !important; } } .address { .default { border: 1px solid #ff6262; color: #ff6262; font-size: 22rpx; border-radius: 6rpx; align-self: center; padding: 2rpx 20rpx; } .list { .item:hover { background: #ededed; } .item { margin-top: 20rpx; font-size: $font-base; color: #666; .basic { padding: 30rpx; line-height: 1.5em; border-bottom: 1px solid $border-color-light; :nth-child(2) { margin: 0 20rpx; } :nth-child(4) { color: $font-color-light; font-size: $font-sm; margin-top: 10rpx; text:nth-child(2) { margin: 0; } view { font-size: 28rpx; } } } .edit { display: flex; justify-content: space-between; align-items: center; vertical-align: middle; height: 80rpx; font-size: $font-sm; color: $font-color-light; padding: 0 30rpx; .unchecked { width: 28rpx; height: 28rpx; border-radius: 50%; border: 1px solid #e0e0e0; display: inline-block; vertical-align: middle; margin-right: 8rpx; position: relative; top: -2rpx; left: 0; } view:nth-child(1) { view:nth-child(1) { font-size: $font-base; color: $main-color; margin-right: 8rpx; vertical-align: middle; } } view:nth-child(2) { text { margin-left: 5rpx; } .alifont { font-size: 32rpx; } .icon-bianji-copy { font-size: 28rpx; position: relative; top: 2rpx; left: 0; } .icon-lajitong { position: relative; top: 4rpx; } } .mr-40 { margin-right: 40rpx; } } } } .btn { background: $light-color; position: fixed; width: 690rpx; bottom: 60rpx; height: 80rpx; left: 30rpx; font-size: 30rpx; line-height: 80rpx; .u-icon { margin-right: 10rpx; } } } ================================================ FILE: pages/mine/address/address.vue ================================================ ================================================ FILE: pages/mine/address/addressManage.vue ================================================ ================================================ FILE: pages/mine/address/storeAddress.vue ================================================ ================================================ FILE: pages/mine/deposit/index.vue ================================================ ================================================ FILE: pages/mine/deposit/info.vue ================================================ ================================================ FILE: pages/mine/deposit/operation.vue ================================================ ================================================ FILE: pages/mine/deposit/recharge.vue ================================================ ================================================ FILE: pages/mine/deposit/style.scss ================================================ /deep/ .u-input__input, .u-input { font-size: 80rpx !important; height: 102rpx !important; } /deep/ .u-input__input { height: 100%; font-size: 80rpx; } .content { display: flex; > .price { width: 60%; margin: 20rpx 0; font-size: 80rpx; display: flex; } > .all { justify-content: center; width: 40%; display: flex; flex-direction: column; align-items: flex-end; } } .-list { margin: 20rpx 0; background: #fff; padding: 16rpx 32rpx; } .title { font-size: 35rpx; } .light { opacity: 0.6; } .submit { margin: 80rpx auto; width: 94%; background: $light-color; height: 90rpx; color: #fff; border-radius: 10rpx; text-align: center; line-height: 90rpx; } ================================================ FILE: pages/mine/deposit/withdrawal.vue ================================================ ================================================ FILE: pages/mine/distribution/achievement.vue ================================================ ================================================ FILE: pages/mine/distribution/auth.vue ================================================ ================================================ FILE: pages/mine/distribution/history.vue ================================================ ================================================ FILE: pages/mine/distribution/home.vue ================================================ ================================================ FILE: pages/mine/distribution/join.vue ================================================ ================================================ FILE: pages/mine/distribution/list.vue ================================================ ================================================ FILE: pages/mine/distribution/withdrawal.vue ================================================ ================================================ FILE: pages/mine/help/tips.vue ================================================ ================================================ FILE: pages/mine/im/index-app.scss ================================================ .status_bar { height: var(--status-bar-height); background-color: #f1f1f1; width: 100%; } .status_bar-nobg { height: var(--status-bar-height); width: 100%; } /* 转圈动画 */ .turn-load { animation: turnmy 1s linear infinite; } @keyframes turnmy { 0% { -webkit-transform: rotate(0deg); } 25% { -webkit-transform: rotate(90deg); } 50% { -webkit-transform: rotate(180deg); } 75% { -webkit-transform: rotate(270deg); } 100% { -webkit-transform: rotate(360deg); } } .one-show { animation: oneshow 0.8s ease 1; } @keyframes oneshow { from { opacity: 0; } to { opacity: 1; } } .status_bar-fixed { height: var(--status-bar-height); width: 100%; position: fixed; background-color: #f1f1f1; z-index: 20; } .head-dh-my { display: flex; position: fixed; justify-content: space-around; align-items: flex-end; padding-bottom: 10rpx; z-index: 15; background-color: #e3e3e3; width: 750rpx; } .border-bom { border-bottom: 0.5rpx solid #DDDDDD; } .border-red { border-bottom: 1rpx solid #d33e18; } .border-bom-big { border-bottom: 8rpx solid #DDDDDD; } .border-bom-white { border-bottom: 2rpx solid #FFFFFF; } .border-bom-green { border-bottom: 4rpx solid #f8f9bd; } .border-bom-index { border-bottom: 4rpx solid #27d9b3; } .padding-left { padding-left: 20rpx; } .padding-left-top { padding-left: 20rpx; padding-top: 20rpx; } .padding-right { padding-right: 20rpx; } .input-my { padding-left: 20rpx; border-radius: 40rpx; height: 50rpx; margin: 10rpx; } .tb-tag-absolute { position: absolute; z-index: 5; border-radius: 25rpx; font-size: 16rpx; margin-left: 25rpx; margin-top: -35rpx; } .lk-tag { height: 50rpx; padding: 0 10rpx; display: flex; justify-content: center; align-items: center; border: 2rpx solid #24bd9f; border-radius: 6rpx; color: #1c947a; font-weight: 500; } .tb-tag-my { border-radius: 15rpx; font-size: 16rpx; margin-left: 5rpx; } .my-green { color: #29c7a5; } .my-hui { color: #585858; font-size: 22rpx; } .flex-column-center { display: flex; flex-direction: column; justify-content: center; align-items: center; } .flex-column-between { display: flex; flex-direction: column; justify-content: space-between; align-items: center; } .flex-column-start { display: flex; flex-direction: column; justify-content: center; } .flex-column-around { display: flex; flex-direction: column; justify-content: space-around; align-items: center; } .flex-row-start { display: flex; flex-direction: row; align-items: center; } .flex-row-around { display: flex; flex-direction: row; justify-content: space-around; align-items: center; } .flex-row-center { display: flex; flex-direction: row; justify-content: center; align-items: center; } .flex-row-between { display: flex; flex-direction: row; justify-content: space-between; align-items: center; } .my-title { font-size: 35rpx; font-weight: bold; } .my-neirong { font-size: 26rpx; color: #6d6d6d; } .my-neirong-sm { font-size: 23rpx; color: #616161; } .my-tag-text { font-size: 22rpx; padding-top: 20rpx; color: #bababa; } .padding-top { padding-top: 35rpx; } .padding-top-sm { padding-top: 20rpx; } .bottom-dh { background-color: #f1f1f1; position: fixed; z-index: 10; bottom: 0; width: 750rpx; height: 110rpx; } .tb-text { display: flex; flex-direction: column; justify-content: center; align-items: center; } .bottom-text { width: 750rpx; position: fixed; text-align: center; font-size: 26rpx; color: #9d9d9d; bottom: 70rpx; } .white-box { padding: 0 20rpx; margin-bottom: 15rpx; margin-top: 5rpx; width: 715rpx; background-color: #FFFFFF; border-radius: 30rpx; } .green-box { padding: 0 20rpx; margin-bottom: 15rpx; margin-top: 5rpx; width: 715rpx; background-color: #FFFFFF; border-radius: 30rpx; background-image: linear-gradient(#1faf97, #29c7a5); } .yuan-sm { width: 13rpx; height: 13rpx; border-radius: 50%; background-color: #1fc189; margin-left: 10rpx; } .yuan-normal { width: 14rpx; height: 14rpx; border-radius: 50%; background-color: #159f3c; margin-left: 10rpx; } .yuan-normal-red { width: 14rpx; height: 14rpx; border-radius: 50%; background-color: #bc3c11; margin-left: 10rpx; } .yuan-sm-red { width: 13rpx; height: 13rpx; border-radius: 50%; background-color: #de410d; margin-left: 10rpx; } .white-box-all { margin-top: 5rpx; width: 750rpx; background-color: #FFFFFF; border-radius: 13px; } .moneycolor { color: #ea5002; } .text-bold-sm { font-weight: 425; } .sm-moneycolor { color: #e3793b; } .margin-top { margin-top: 20rpx; } .margin-top-sm { margin-top: 12rpx; } .margin { margin: 20rpx; } .margin-left { margin-left: 20rpx; } .margin-left-top { margin-left: 20rpx; margin-top: 20rpx; } .margin-right { margin-right: 20rpx; } .my-absolute { position: absolute; } .my-fixed { position: fixed; } .my-seach { width: 450rpx; height: 55rpx; background-color: #f8f8f8; border-radius: 30rpx; padding-left: 20rpx; } .move-view { width: 48rpx; height: 10rpx; background-color: #28ba91; border-radius: 4rpx; margin-left: 100rpx; } .move-view-p { width: 45rpx; height: 10rpx; background-color: #28ba91; border-radius: 4rpx; } .header-dh { position: fixed; padding-top: 20rpx; padding-bottom: 15rpx; height: 70rpx; width: 750rpx; background-color: #f1f1f1; z-index: 20; } .tp-normal { width: 60rpx; height: 60rpx; } .tp-sm { width: 45rpx; height: 45rpx; } .tp-big { width: 70rpx; height: 70rpx; border-radius: 50%; } .main-color { color: #07D188; } //icon @keyframes cuIcon-spin { 0% { -webkit-transform: rotate(0); transform: rotate(0); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } .cuIconfont-spin { -webkit-animation: cuIcon-spin 2s infinite linear; animation: cuIcon-spin 2s infinite linear; display: inline-block; } .cuIconfont-pulse { -webkit-animation: cuIcon-spin 1s infinite steps(8); animation: cuIcon-spin 1s infinite steps(8); display: inline-block; } [class*="cuIcon-"] { font-family: "cuIcon"; font-size: inherit; font-style: normal; } @font-face { font-family: "cuIcon"; src: url('//at.alicdn.com/t/font_533566_yfq2d9wdij.eot?t=1545239985831'); /* IE9*/ src: url('//at.alicdn.com/t/font_533566_yfq2d9wdij.eot?t=1545239985831#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAKQcAAsAAAABNKAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8dkoiY21hcAAAAYAAAAiaAAATkilZPq9nbHlmAAAKHAAAjqoAAQkUOjYlCmhlYWQAAJjIAAAALwAAADYUMoFgaGhlYQAAmPgAAAAfAAAAJAhwBcpobXR4AACZGAAAABkAAAScnSIAAGxvY2EAAJk0AAACUAAAAlAhX2C+bWF4cAAAm4QAAAAfAAAAIAJAAOpuYW1lAACbpAAAAUUAAAJtPlT+fXBvc3QAAJzsAAAHLQAADMYi8KXJeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2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97W+czmzJyZerwwCqYTNu4Lkz+I7OQaOpS6AuRyryt3Dndl0s1T1oWRakSt/M0Zd9gIObM1MF4y16ZL1tYeubvWzt3wyKaaU4FDWevJ0WxHD70DNuPTqlVeLJse7RUrW9CLfVpyWk9L1ifcRt/RuvvkgOPKqtla59gENYWt1qHm2ukiFz46kYfrdlGXF56Y3krsvdTlOK83V7OcO8Ocy7xTooebK1W5GQf/x3a+rfr698fGhbsi56VKed69SIJJ67KCl534bWkaO7a6DE56I61YQUsXLIcS0+djakEnrrjDgW3TBS+Yq9yhQwHb4TpRc+4fHhaMK/P02c28dEeteeEYf3z98jjpJ2zsXRpbLsaqzVQueeNu++4050ZTrmdtFk1LkVEzp3sjuA9sJmz1t7m5l+xta3JwvX+MuGWHLnMc3G/Ta6u7Yfye3fvFGQd8zd3y9G/1b415YErR3FzW9QU8ZmXJG8XibbllL4e4MEqatTTg+crn8waZrtfW/gthnmJTAAAA') format('woff'), url('//at.alicdn.com/t/font_533566_yfq2d9wdij.ttf?t=1545239985831') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ url('//at.alicdn.com/t/font_533566_yfq2d9wdij.svg?t=1545239985831#cuIconfont') format('svg'); /* iOS 4.1- */ } .cuIcon-appreciate:before { content: "\e644"; } .cuIcon-check:before { content: "\e645"; } .cuIcon-close:before { content: "\e646"; } .cuIcon-edit:before { content: "\e649"; } .cuIcon-emoji:before { content: "\e64a"; } .cuIcon-favorfill:before { content: "\e64b"; } .cuIcon-favor:before { content: "\e64c"; } .cuIcon-loading:before { content: "\e64f"; } .cuIcon-locationfill:before { content: "\e650"; } .cuIcon-location:before { content: "\e651"; } .cuIcon-phone:before { content: "\e652"; } .cuIcon-roundcheckfill:before { content: "\e656"; } .cuIcon-roundcheck:before { content: "\e657"; } .cuIcon-roundclosefill:before { content: "\e658"; } .cuIcon-roundclose:before { content: "\e659"; } .cuIcon-roundrightfill:before { content: "\e65a"; } .cuIcon-roundright:before { content: "\e65b"; } .cuIcon-search:before { content: "\e65c"; } .cuIcon-taxi:before { content: "\e65d"; } .cuIcon-timefill:before { content: "\e65e"; } .cuIcon-time:before { content: "\e65f"; } .cuIcon-unfold:before { content: "\e661"; } .cuIcon-warnfill:before { content: "\e662"; } .cuIcon-warn:before { content: "\e663"; } .cuIcon-camerafill:before { content: "\e664"; } .cuIcon-camera:before { content: "\e665"; } .cuIcon-commentfill:before { content: "\e666"; } .cuIcon-comment:before { content: "\e667"; } .cuIcon-likefill:before { content: "\e668"; } .cuIcon-like:before { content: "\e669"; } .cuIcon-notificationfill:before { content: "\e66a"; } .cuIcon-notification:before { content: "\e66b"; } .cuIcon-order:before { content: "\e66c"; } .cuIcon-samefill:before { content: "\e66d"; } .cuIcon-same:before { content: "\e66e"; } .cuIcon-deliver:before { content: "\e671"; } .cuIcon-evaluate:before { content: "\e672"; } .cuIcon-pay:before { content: "\e673"; } .cuIcon-send:before { content: "\e675"; } .cuIcon-shop:before { content: "\e676"; } .cuIcon-ticket:before { content: "\e677"; } .cuIcon-back:before { content: "\e679"; } .cuIcon-cascades:before { content: "\e67c"; } .cuIcon-discover:before { content: "\e67e"; } .cuIcon-list:before { content: "\e682"; } .cuIcon-more:before { content: "\e684"; } .cuIcon-scan:before { content: "\e689"; } .cuIcon-settings:before { content: "\e68a"; } .cuIcon-questionfill:before { content: "\e690"; } .cuIcon-question:before { content: "\e691"; } .cuIcon-shopfill:before { content: "\e697"; } .cuIcon-form:before { content: "\e699"; } .cuIcon-pic:before { content: "\e69b"; } .cuIcon-filter:before { content: "\e69c"; } .cuIcon-footprint:before { content: "\e69d"; } .cuIcon-top:before { content: "\e69e"; } .cuIcon-pulldown:before { content: "\e69f"; } .cuIcon-pullup:before { content: "\e6a0"; } .cuIcon-right:before { content: "\e6a3"; } .cuIcon-refresh:before { content: "\e6a4"; } .cuIcon-moreandroid:before { content: "\e6a5"; } .cuIcon-deletefill:before { content: "\e6a6"; } .cuIcon-refund:before { content: "\e6ac"; } .cuIcon-cart:before { content: "\e6af"; } .cuIcon-qrcode:before { content: "\e6b0"; } .cuIcon-remind:before { content: "\e6b2"; } .cuIcon-delete:before { content: "\e6b4"; } .cuIcon-profile:before { content: "\e6b7"; } .cuIcon-home:before { content: "\e6b8"; } .cuIcon-cartfill:before { content: "\e6b9"; } .cuIcon-discoverfill:before { content: "\e6ba"; } .cuIcon-homefill:before { content: "\e6bb"; } .cuIcon-message:before { content: "\e6bc"; } .cuIcon-addressbook:before { content: "\e6bd"; } .cuIcon-link:before { content: "\e6bf"; } .cuIcon-lock:before { content: "\e6c0"; } .cuIcon-unlock:before { content: "\e6c2"; } .cuIcon-vip:before { content: "\e6c3"; } .cuIcon-weibo:before { content: "\e6c4"; } .cuIcon-activity:before { content: "\e6c5"; } .cuIcon-friendaddfill:before { content: "\e6c9"; } .cuIcon-friendadd:before { content: "\e6ca"; } .cuIcon-friendfamous:before { content: "\e6cb"; } .cuIcon-friend:before { content: "\e6cc"; } .cuIcon-goods:before { content: "\e6cd"; } .cuIcon-selection:before { content: "\e6ce"; } .cuIcon-explore:before { content: "\e6d2"; } .cuIcon-present:before { content: "\e6d3"; } .cuIcon-squarecheckfill:before { content: "\e6d4"; } .cuIcon-square:before { content: "\e6d5"; } .cuIcon-squarecheck:before { content: "\e6d6"; } .cuIcon-round:before { content: "\e6d7"; } .cuIcon-roundaddfill:before { content: "\e6d8"; } .cuIcon-roundadd:before { content: "\e6d9"; } .cuIcon-add:before { content: "\e6da"; } .cuIcon-notificationforbidfill:before { content: "\e6db"; } .cuIcon-explorefill:before { content: "\e6dd"; } .cuIcon-fold:before { content: "\e6de"; } .cuIcon-game:before { content: "\e6df"; } .cuIcon-redpacket:before { content: "\e6e0"; } .cuIcon-selectionfill:before { content: "\e6e1"; } .cuIcon-similar:before { content: "\e6e2"; } .cuIcon-appreciatefill:before { content: "\e6e3"; } .cuIcon-infofill:before { content: "\e6e4"; } .cuIcon-info:before { content: "\e6e5"; } .cuIcon-forwardfill:before { content: "\e6ea"; } .cuIcon-forward:before { content: "\e6eb"; } .cuIcon-rechargefill:before { content: "\e6ec"; } .cuIcon-recharge:before { content: "\e6ed"; } .cuIcon-vipcard:before { content: "\e6ee"; } .cuIcon-voice:before { content: "\e6ef"; } .cuIcon-voicefill:before { content: "\e6f0"; } .cuIcon-friendfavor:before { content: "\e6f1"; } .cuIcon-wifi:before { content: "\e6f2"; } .cuIcon-share:before { content: "\e6f3"; } .cuIcon-wefill:before { content: "\e6f4"; } .cuIcon-we:before { content: "\e6f5"; } .cuIcon-lightauto:before { content: "\e6f6"; } .cuIcon-lightforbid:before { content: "\e6f7"; } .cuIcon-lightfill:before { content: "\e6f8"; } .cuIcon-camerarotate:before { content: "\e6f9"; } .cuIcon-light:before { content: "\e6fa"; } .cuIcon-barcode:before { content: "\e6fb"; } .cuIcon-flashlightclose:before { content: "\e6fc"; } .cuIcon-flashlightopen:before { content: "\e6fd"; } .cuIcon-searchlist:before { content: "\e6fe"; } .cuIcon-service:before { content: "\e6ff"; } .cuIcon-sort:before { content: "\e700"; } .cuIcon-down:before { content: "\e703"; } .cuIcon-mobile:before { content: "\e704"; } .cuIcon-mobilefill:before { content: "\e705"; } .cuIcon-copy:before { content: "\e706"; } .cuIcon-countdownfill:before { content: "\e707"; } .cuIcon-countdown:before { content: "\e708"; } .cuIcon-noticefill:before { content: "\e709"; } .cuIcon-notice:before { content: "\e70a"; } .cuIcon-upstagefill:before { content: "\e70e"; } .cuIcon-upstage:before { content: "\e70f"; } .cuIcon-babyfill:before { content: "\e710"; } .cuIcon-baby:before { content: "\e711"; } .cuIcon-brandfill:before { content: "\e712"; } .cuIcon-brand:before { content: "\e713"; } .cuIcon-choicenessfill:before { content: "\e714"; } .cuIcon-choiceness:before { content: "\e715"; } .cuIcon-clothesfill:before { content: "\e716"; } .cuIcon-clothes:before { content: "\e717"; } .cuIcon-creativefill:before { content: "\e718"; } .cuIcon-creative:before { content: "\e719"; } .cuIcon-female:before { content: "\e71a"; } .cuIcon-keyboard:before { content: "\e71b"; } .cuIcon-male:before { content: "\e71c"; } .cuIcon-newfill:before { content: "\e71d"; } .cuIcon-new:before { content: "\e71e"; } .cuIcon-pullleft:before { content: "\e71f"; } .cuIcon-pullright:before { content: "\e720"; } .cuIcon-rankfill:before { content: "\e721"; } .cuIcon-rank:before { content: "\e722"; } .cuIcon-bad:before { content: "\e723"; } .cuIcon-cameraadd:before { content: "\e724"; } .cuIcon-focus:before { content: "\e725"; } .cuIcon-friendfill:before { content: "\e726"; } .cuIcon-cameraaddfill:before { content: "\e727"; } .cuIcon-apps:before { content: "\e729"; } .cuIcon-paintfill:before { content: "\e72a"; } .cuIcon-paint:before { content: "\e72b"; } .cuIcon-picfill:before { content: "\e72c"; } .cuIcon-refresharrow:before { content: "\e72d"; } .cuIcon-colorlens:before { content: "\e6e6"; } .cuIcon-markfill:before { content: "\e730"; } .cuIcon-mark:before { content: "\e731"; } .cuIcon-presentfill:before { content: "\e732"; } .cuIcon-repeal:before { content: "\e733"; } .cuIcon-album:before { content: "\e734"; } .cuIcon-peoplefill:before { content: "\e735"; } .cuIcon-people:before { content: "\e736"; } .cuIcon-servicefill:before { content: "\e737"; } .cuIcon-repair:before { content: "\e738"; } .cuIcon-file:before { content: "\e739"; } .cuIcon-repairfill:before { content: "\e73a"; } .cuIcon-taoxiaopu:before { content: "\e73b"; } .cuIcon-weixin:before { content: "\e612"; } .cuIcon-attentionfill:before { content: "\e73c"; } .cuIcon-attention:before { content: "\e73d"; } .cuIcon-commandfill:before { content: "\e73e"; } .cuIcon-command:before { content: "\e73f"; } .cuIcon-communityfill:before { content: "\e740"; } .cuIcon-community:before { content: "\e741"; } .cuIcon-read:before { content: "\e742"; } .cuIcon-calendar:before { content: "\e74a"; } .cuIcon-cut:before { content: "\e74b"; } .cuIcon-magic:before { content: "\e74c"; } .cuIcon-backwardfill:before { content: "\e74d"; } .cuIcon-playfill:before { content: "\e74f"; } .cuIcon-stop:before { content: "\e750"; } .cuIcon-tagfill:before { content: "\e751"; } .cuIcon-tag:before { content: "\e752"; } .cuIcon-group:before { content: "\e753"; } .cuIcon-all:before { content: "\e755"; } .cuIcon-backdelete:before { content: "\e756"; } .cuIcon-hotfill:before { content: "\e757"; } .cuIcon-hot:before { content: "\e758"; } .cuIcon-post:before { content: "\e759"; } .cuIcon-radiobox:before { content: "\e75b"; } .cuIcon-rounddown:before { content: "\e75c"; } .cuIcon-upload:before { content: "\e75d"; } .cuIcon-writefill:before { content: "\e760"; } .cuIcon-write:before { content: "\e761"; } .cuIcon-radioboxfill:before { content: "\e763"; } .cuIcon-punch:before { content: "\e764"; } .cuIcon-shake:before { content: "\e765"; } .cuIcon-move:before { content: "\e768"; } .cuIcon-safe:before { content: "\e769"; } .cuIcon-activityfill:before { content: "\e775"; } .cuIcon-crownfill:before { content: "\e776"; } .cuIcon-crown:before { content: "\e777"; } .cuIcon-goodsfill:before { content: "\e778"; } .cuIcon-messagefill:before { content: "\e779"; } .cuIcon-profilefill:before { content: "\e77a"; } .cuIcon-sound:before { content: "\e77b"; } .cuIcon-sponsorfill:before { content: "\e77c"; } .cuIcon-sponsor:before { content: "\e77d"; } .cuIcon-upblock:before { content: "\e77e"; } .cuIcon-weblock:before { content: "\e77f"; } .cuIcon-weunblock:before { content: "\e780"; } .cuIcon-my:before { content: "\e78b"; } .cuIcon-myfill:before { content: "\e78c"; } .cuIcon-emojifill:before { content: "\e78d"; } .cuIcon-emojiflashfill:before { content: "\e78e"; } .cuIcon-flashbuyfill:before { content: "\e78f"; } .cuIcon-text:before { content: "\e791"; } .cuIcon-goodsfavor:before { content: "\e794"; } .cuIcon-musicfill:before { content: "\e795"; } .cuIcon-musicforbidfill:before { content: "\e796"; } .cuIcon-card:before { content: "\e624"; } .cuIcon-triangledownfill:before { content: "\e79b"; } .cuIcon-triangleupfill:before { content: "\e79c"; } .cuIcon-roundleftfill-copy:before { content: "\e79e"; } .cuIcon-font:before { content: "\e76a"; } .cuIcon-title:before { content: "\e82f"; } .cuIcon-recordfill:before { content: "\e7a4"; } .cuIcon-record:before { content: "\e7a6"; } .cuIcon-cardboardfill:before { content: "\e7a9"; } .cuIcon-cardboard:before { content: "\e7aa"; } .cuIcon-formfill:before { content: "\e7ab"; } .cuIcon-coin:before { content: "\e7ac"; } .cuIcon-cardboardforbid:before { content: "\e7af"; } .cuIcon-circlefill:before { content: "\e7b0"; } .cuIcon-circle:before { content: "\e7b1"; } .cuIcon-attentionforbid:before { content: "\e7b2"; } .cuIcon-attentionforbidfill:before { content: "\e7b3"; } .cuIcon-attentionfavorfill:before { content: "\e7b4"; } .cuIcon-attentionfavor:before { content: "\e7b5"; } .cuIcon-titles:before { content: "\e701"; } .cuIcon-icloading:before { content: "\e67a"; } .cuIcon-full:before { content: "\e7bc"; } .cuIcon-mail:before { content: "\e7bd"; } .cuIcon-peoplelist:before { content: "\e7be"; } .cuIcon-goodsnewfill:before { content: "\e7bf"; } .cuIcon-goodsnew:before { content: "\e7c0"; } .cuIcon-medalfill:before { content: "\e7c1"; } .cuIcon-medal:before { content: "\e7c2"; } .cuIcon-newsfill:before { content: "\e7c3"; } .cuIcon-newshotfill:before { content: "\e7c4"; } .cuIcon-newshot:before { content: "\e7c5"; } .cuIcon-news:before { content: "\e7c6"; } .cuIcon-videofill:before { content: "\e7c7"; } .cuIcon-video:before { content: "\e7c8"; } .cuIcon-exit:before { content: "\e7cb"; } .cuIcon-skinfill:before { content: "\e7cc"; } .cuIcon-skin:before { content: "\e7cd"; } .cuIcon-moneybagfill:before { content: "\e7ce"; } .cuIcon-usefullfill:before { content: "\e7cf"; } .cuIcon-usefull:before { content: "\e7d0"; } .cuIcon-moneybag:before { content: "\e7d1"; } .cuIcon-redpacket_fill:before { content: "\e7d3"; } .cuIcon-subscription:before { content: "\e7d4"; } .cuIcon-loading1:before { content: "\e633"; } .cuIcon-github:before { content: "\e692"; } .cuIcon-global:before { content: "\e7eb"; } .cuIcon-settingsfill:before { content: "\e6ab"; } .cuIcon-back_android:before { content: "\e7ed"; } .cuIcon-expressman:before { content: "\e7ef"; } .cuIcon-evaluate_fill:before { content: "\e7f0"; } .cuIcon-group_fill:before { content: "\e7f5"; } .cuIcon-play_forward_fill:before { content: "\e7f6"; } .cuIcon-deliver_fill:before { content: "\e7f7"; } .cuIcon-notice_forbid_fill:before { content: "\e7f8"; } .cuIcon-fork:before { content: "\e60c"; } .cuIcon-pick:before { content: "\e7fa"; } .cuIcon-wenzi:before { content: "\e6a7"; } .cuIcon-ellipse:before { content: "\e600"; } .cuIcon-qr_code:before { content: "\e61b"; } .cuIcon-dianhua:before { content: "\e64d"; } .cuIcon-cuIcon:before { content: "\e602"; } .cuIcon-loading2:before { content: "\e7f1"; } .cuIcon-btn:before { content: "\e601"; } //main /* ColorUi for uniApp v2.1.6 | by 文晓港 2019-05-31 10:44:24 仅供学习交流,如作它用所承受的法律责任一概与作者无关 *使用ColorUi开发扩展与插件时,请注明基于ColorUi开发 (QQ交流群:240787041) */ /* ================== 初始化 ==================== */ body { background-color: #f1f1f1; font-size: 28upx; color: #333333; font-family: Helvetica Neue, Helvetica, sans-serif; } view, scroll-view, swiper, button, input, textarea, label, navigator, image { box-sizing: border-box; } .round { border-radius: 5000rpx; } .radius-m { border-radius: 12rpx; } .radius { border-radius: 6rpx; } /* ================== 图片 ==================== */ image { max-width: 100%; display: inline-block; position: relative; z-index: 0; } image.loading::before { content: ""; background-color: #f5f5f5; display: block; position: absolute; width: 100%; height: 100%; z-index: -2; } image.loading::after { content: "\e7f1"; font-family: "cuIcon"; position: absolute; top: 0; left: 0; width: 32upx; height: 32upx; line-height: 32upx; right: 0; bottom: 0; z-index: -1; font-size: 32upx; margin: auto; color: #ccc; -webkit-animation: cuIcon-spin 2s infinite linear; animation: cuIcon-spin 2s infinite linear; display: block; } .response { width: 100%; } /* ================== 开关 ==================== */ switch, checkbox, radio { position: relative; } switch::after, switch::before { font-family: "cuIcon"; content: "\e645"; position: absolute; color: #ffffff !important; top: 0%; left: 0upx; font-size: 26upx; line-height: 26px; width: 50%; text-align: center; pointer-events: none; transform: scale(0, 0); transition: all 0.3s ease-in-out 0s; z-index: 9; bottom: 0; height: 26px; margin: auto; } switch::before { content: "\e646"; right: 0; transform: scale(1, 1); left: auto; } switch[checked]::after, switch.checked::after { transform: scale(1, 1); } switch[checked]::before, switch.checked::before { transform: scale(0, 0); } /* #ifndef MP-ALIPAY */ radio::before, checkbox::before { font-family: "cuIcon"; content: "\e645"; position: absolute; color: #ffffff !important; top: 50%; margin-top: -8px; right: 5px; font-size: 32upx; line-height: 16px; pointer-events: none; transform: scale(1, 1); transition: all 0.3s ease-in-out 0s; z-index: 9; } radio .wx-radio-input, checkbox .wx-checkbox-input, radio .uni-radio-input, checkbox .uni-checkbox-input { margin: 0; width: 24px; height: 24px; } checkbox.round .wx-checkbox-input, checkbox.round .uni-checkbox-input { border-radius: 100upx; } /* #endif */ switch[checked]::before { transform: scale(0, 0); } switch .wx-switch-input, switch .uni-switch-input { border: none; padding: 0 24px; width: 48px; height: 26px; margin: 0; border-radius: 100upx; } switch .wx-switch-input:not([class*="bg-"]), switch .uni-switch-input:not([class*="bg-"]) { background: #8799a3 !important; } switch .wx-switch-input::after, switch .uni-switch-input::after { margin: auto; width: 26px; height: 26px; border-radius: 100upx; left: 0upx; top: 0upx; bottom: 0upx; position: absolute; transform: scale(0.9, 0.9); transition: all 0.1s ease-in-out 0s; } switch .wx-switch-input.wx-switch-input-checked::after, switch .uni-switch-input.uni-switch-input-checked::after { margin: auto; left: 22px; box-shadow: none; transform: scale(0.9, 0.9); } radio-group { display: inline-block; } switch.radius .wx-switch-input::after, switch.radius .wx-switch-input, switch.radius .wx-switch-input::before, switch.radius .uni-switch-input::after, switch.radius .uni-switch-input, switch.radius .uni-switch-input::before { border-radius: 10upx; } switch .wx-switch-input::before, radio.radio::before, checkbox .wx-checkbox-input::before, radio .wx-radio-input::before, switch .uni-switch-input::before, radio.radio::before, checkbox .uni-checkbox-input::before, radio .uni-radio-input::before { display: none; } radio.radio[checked]::after, radio.radio .uni-radio-input-checked::after { content: ""; background-color: transparent; display: block; position: absolute; width: 8px; height: 8px; z-index: 999; top: 0upx; left: 0upx; right: 0; bottom: 0; margin: auto; border-radius: 200upx; /* #ifndef MP */ border: 7px solid #ffffff !important; /* #endif */ /* #ifdef MP */ border: 8px solid #ffffff !important; /* #endif */ } .switch-sex::after { content: "\e71c"; } .switch-sex::before { content: "\e71a"; } .switch-sex .wx-switch-input, .switch-sex .uni-switch-input { background: #e54d42 !important; border-color: #e54d42 !important; } .switch-sex[checked] .wx-switch-input, .switch-sex.checked .uni-switch-input { background: #0081ff !important; border-color: #0081ff !important; } switch.red[checked] .wx-switch-input.wx-switch-input-checked, checkbox.red[checked] .wx-checkbox-input, radio.red[checked] .wx-radio-input, switch.red.checked .uni-switch-input.uni-switch-input-checked, checkbox.red.checked .uni-checkbox-input, radio.red.checked .uni-radio-input { background-color: #e54d42 !important; border-color: #e54d42 !important; color: #ffffff !important; } switch.orange[checked] .wx-switch-input, checkbox.orange[checked] .wx-checkbox-input, radio.orange[checked] .wx-radio-input, switch.orange.checked .uni-switch-input, checkbox.orange.checked .uni-checkbox-input, radio.orange.checked .uni-radio-input { background-color: #f37b1d !important; border-color: #f37b1d !important; color: #ffffff !important; } switch.yellow[checked] .wx-switch-input, checkbox.yellow[checked] .wx-checkbox-input, radio.yellow[checked] .wx-radio-input, switch.yellow.checked .uni-switch-input, checkbox.yellow.checked .uni-checkbox-input, radio.yellow.checked .uni-radio-input { background-color: #fbbd08 !important; border-color: #fbbd08 !important; color: #333333 !important; } switch.olive[checked] .wx-switch-input, checkbox.olive[checked] .wx-checkbox-input, radio.olive[checked] .wx-radio-input, switch.olive.checked .uni-switch-input, checkbox.olive.checked .uni-checkbox-input, radio.olive.checked .uni-radio-input { background-color: #8dc63f !important; border-color: #8dc63f !important; color: #ffffff !important; } switch.green[checked] .wx-switch-input, switch[checked] .wx-switch-input, checkbox.green[checked] .wx-checkbox-input, checkbox[checked] .wx-checkbox-input, radio.green[checked] .wx-radio-input, radio[checked] .wx-radio-input, switch.green.checked .uni-switch-input, switch.checked .uni-switch-input, checkbox.green.checked .uni-checkbox-input, checkbox.checked .uni-checkbox-input, radio.green.checked .uni-radio-input, radio.checked .uni-radio-input { background-color: #39b54a !important; border-color: #39b54a !important; color: #ffffff !important; border-color: #39B54A !important; } switch.cyan[checked] .wx-switch-input, checkbox.cyan[checked] .wx-checkbox-input, radio.cyan[checked] .wx-radio-input, switch.cyan.checked .uni-switch-input, checkbox.cyan.checked .uni-checkbox-input, radio.cyan.checked .uni-radio-input { background-color: #1cbbb4 !important; border-color: #1cbbb4 !important; color: #ffffff !important; } switch.blue[checked] .wx-switch-input, checkbox.blue[checked] .wx-checkbox-input, radio.blue[checked] .wx-radio-input, switch.blue.checked .uni-switch-input, checkbox.blue.checked .uni-checkbox-input, radio.blue.checked .uni-radio-input { background-color: #0081ff !important; border-color: #0081ff !important; color: #ffffff !important; } switch.purple[checked] .wx-switch-input, checkbox.purple[checked] .wx-checkbox-input, radio.purple[checked] .wx-radio-input, switch.purple.checked .uni-switch-input, checkbox.purple.checked .uni-checkbox-input, radio.purple.checked .uni-radio-input { background-color: #6739b6 !important; border-color: #6739b6 !important; color: #ffffff !important; } switch.mauve[checked] .wx-switch-input, checkbox.mauve[checked] .wx-checkbox-input, radio.mauve[checked] .wx-radio-input, switch.mauve.checked .uni-switch-input, checkbox.mauve.checked .uni-checkbox-input, radio.mauve.checked .uni-radio-input { background-color: #9c26b0 !important; border-color: #9c26b0 !important; color: #ffffff !important; } switch.pink[checked] .wx-switch-input, checkbox.pink[checked] .wx-checkbox-input, radio.pink[checked] .wx-radio-input, switch.pink.checked .uni-switch-input, checkbox.pink.checked .uni-checkbox-input, radio.pink.checked .uni-radio-input { background-color: #e03997 !important; border-color: #e03997 !important; color: #ffffff !important; } switch.brown[checked] .wx-switch-input, checkbox.brown[checked] .wx-checkbox-input, radio.brown[checked] .wx-radio-input, switch.brown.checked .uni-switch-input, checkbox.brown.checked .uni-checkbox-input, radio.brown.checked .uni-radio-input { background-color: #a5673f !important; border-color: #a5673f !important; color: #ffffff !important; } switch.grey[checked] .wx-switch-input, checkbox.grey[checked] .wx-checkbox-input, radio.grey[checked] .wx-radio-input, switch.grey.checked .uni-switch-input, checkbox.grey.checked .uni-checkbox-input, radio.grey.checked .uni-radio-input { background-color: #8799a3 !important; border-color: #8799a3 !important; color: #ffffff !important; } switch.gray[checked] .wx-switch-input, checkbox.gray[checked] .wx-checkbox-input, radio.gray[checked] .wx-radio-input, switch.gray.checked .uni-switch-input, checkbox.gray.checked .uni-checkbox-input, radio.gray.checked .uni-radio-input { background-color: #f0f0f0 !important; border-color: #f0f0f0 !important; color: #333333 !important; } switch.black[checked] .wx-switch-input, checkbox.black[checked] .wx-checkbox-input, radio.black[checked] .wx-radio-input, switch.black.checked .uni-switch-input, checkbox.black.checked .uni-checkbox-input, radio.black.checked .uni-radio-input { background-color: #333333 !important; border-color: #333333 !important; color: #ffffff !important; } switch.white[checked] .wx-switch-input, checkbox.white[checked] .wx-checkbox-input, radio.white[checked] .wx-radio-input, switch.white.checked .uni-switch-input, checkbox.white.checked .uni-checkbox-input, radio.white.checked .uni-radio-input { background-color: #ffffff !important; border-color: #ffffff !important; color: #333333 !important; } /* ================== 边框 ==================== */ /* -- 实线 -- */ .solid, .solid-top, .solid-right, .solid-bottom, .solid-left, .solids, .solids-top, .solids-right, .solids-bottom, .solids-left, .dashed, .dashed-top, .dashed-right, .dashed-bottom, .dashed-left { position: relative; } .solid::after, .solid-top::after, .solid-right::after, .solid-bottom::after, .solid-left::after, .solids::after, .solids-top::after, .solids-right::after, .solids-bottom::after, .solids-left::after, .dashed::after, .dashed-top::after, .dashed-right::after, .dashed-bottom::after, .dashed-left::after { content: " "; width: 200%; height: 200%; position: absolute; top: 0; left: 0; border-radius: inherit; transform: scale(0.5); transform-origin: 0 0; pointer-events: none; box-sizing: border-box; } .solid::after { border: 1upx solid rgba(0, 0, 0, 0.1); } .solid-top::after { border-top: 1upx solid rgba(0, 0, 0, 0.1); } .solid-right::after { border-right: 1upx solid rgba(0, 0, 0, 0.1); } .solid-bottom::after { border-bottom: 1upx solid rgba(0, 0, 0, 0.1); } .solid-left::after { border-left: 1upx solid rgba(0, 0, 0, 0.1); } .solids::after { border: 8upx solid #eee; } .solids-top::after { border-top: 8upx solid #eee; } .solids-right::after { border-right: 8upx solid #eee; } .solids-bottom::after { border-bottom: 8upx solid #eee; } .solids-left::after { border-left: 8upx solid #eee; } /* -- 虚线 -- */ .dashed::after { border: 1upx dashed #ddd; } .dashed-top::after { border-top: 1upx dashed #ddd; } .dashed-right::after { border-right: 1upx dashed #ddd; } .dashed-bottom::after { border-bottom: 1upx dashed #ddd; } .dashed-left::after { border-left: 1upx dashed #ddd; } /* -- 阴影 -- */ .shadow[class*='white'] { --ShadowSize: 0 1upx 6upx; } .shadow-lg { --ShadowSize: 0upx 40upx 100upx 0upx; } .shadow-warp { position: relative; box-shadow: 0 0 10upx rgba(0, 0, 0, 0.1); } .shadow-warp:before, .shadow-warp:after { position: absolute; content: ""; top: 20upx; bottom: 30upx; left: 20upx; width: 50%; box-shadow: 0 30upx 20upx rgba(0, 0, 0, 0.2); transform: rotate(-3deg); z-index: -1; } .shadow-warp:after { right: 20upx; left: auto; transform: rotate(3deg); } .shadow-blur { position: relative; } .shadow-blur::before { content: ""; display: block; background: inherit; filter: blur(10upx); position: absolute; width: 100%; height: 100%; top: 10upx; left: 10upx; z-index: -1; opacity: 0.4; transform-origin: 0 0; border-radius: inherit; transform: scale(1, 1); } /* ================== 按钮 ==================== */ .cu-btn { position: relative; border: 0upx; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0 30upx; font-size: 28upx; height: 64upx; line-height: 1; text-align: center; text-decoration: none; overflow: visible; margin-left: initial; transform: translate(0upx, 0upx); margin-right: initial; } .cu-btn::after { display: none; } .cu-btn:not([class*="bg-"]) { background-color: #f0f0f0; } .cu-btn[class*="line"] { background-color: transparent; } .cu-btn[class*="line"]::after { content: " "; display: block; width: 200%; height: 200%; position: absolute; top: 0; left: 0; border: 1upx solid currentColor; transform: scale(0.5); transform-origin: 0 0; box-sizing: border-box; border-radius: 12upx; z-index: 1; pointer-events: none; } .cu-btn.round[class*="line"]::after { border-radius: 1000upx; } .cu-btn[class*="lines"]::after { border: 6upx solid currentColor; } .cu-btn[class*="bg-"]::after { display: none; } .cu-btn.sm { padding: 0 20upx; font-size: 20upx; height: 48upx; } .cu-btn.smm { padding: 0 15upx; font-size: 15upx; height: 30upx; } .cu-btn.lg { padding: 0 40upx; font-size: 32upx; height: 80upx; } .cu-btn.cuIcon.sm { width: 48upx; height: 48upx; } .cu-btn.cuIcon { width: 64upx; height: 64upx; border-radius: 500upx; padding: 0; } button.cuIcon.lg { width: 80upx; height: 80upx; } .cu-btn.shadow-blur::before { top: 4upx; left: 4upx; filter: blur(6upx); opacity: 0.6; } .cu-btn.button-hover { transform: translate(1upx, 1upx); } .block { display: block; } .cu-btn.block { display: flex; } .cu-btn[disabled] { opacity: 0.6; color: #ffffff; } /* ================== 徽章 ==================== */ .cu-tag { vertical-align: middle; position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0upx 16rpx; height: 70rpx; width: 150rpx; font-family: Helvetica Neue, Helvetica, sans-serif; white-space: nowrap; } .cu-tag:not([class*="bg"]):not([class*="line"]) { background-color: #f1f1f1; } .cu-tag[class*="line-"]::after { content: " "; width: 200%; height: 200%; position: absolute; top: 0; left: 0; border: 1upx solid currentColor; transform: scale(0.5); transform-origin: 0 0; box-sizing: border-box; border-radius: inherit; z-index: 1; pointer-events: none; } .cu-tag.radius[class*="line"]::after { border-radius: 12upx; } .cu-tag.round[class*="line"]::after { border-radius: 1000upx; } .cu-tag[class*="line-"]::after { border-radius: 0; } .cu-tag+.cu-tag { margin-left: 10upx; } .cu-tag.sm { font-size: 20upx; padding: 0upx 12upx; height: 32upx; } .cu-capsule { display: inline-flex; vertical-align: middle; } .cu-capsule+.cu-capsule { margin-left: 10upx; } .cu-capsule .cu-tag { margin: 0; } .cu-capsule .cu-tag[class*="line-"]:last-child::after { border-left: 0upx solid transparent; } .cu-capsule .cu-tag[class*="line-"]:first-child::after { border-right: 0upx solid transparent; } .cu-capsule.radius .cu-tag:first-child { border-top-left-radius: 6upx; border-bottom-left-radius: 6upx; } .cu-capsule.radius .cu-tag:last-child::after, .cu-capsule.radius .cu-tag[class*="line-"] { border-top-right-radius: 12upx; border-bottom-right-radius: 12upx; } .cu-capsule.round .cu-tag:first-child { border-top-left-radius: 200upx; border-bottom-left-radius: 200upx; text-indent: 4upx; } .cu-capsule.round .cu-tag:last-child::after, .cu-capsule.round .cu-tag:last-child { border-top-right-radius: 200upx; border-bottom-right-radius: 200upx; text-indent: -4upx; } .cu-tag.badge { border-radius: 200upx; position: absolute; top: -10upx; right: -10upx; font-size: 20upx; padding: 0upx 10upx; height: 28upx; color: #ffffff; } .cu-tag.badge:not([class*="bg-"]) { background-color: #dd514c; } .cu-tag:empty:not([class*="cuIcon-"]) { padding: 0upx; width: 16upx; height: 16upx; top: -4upx; right: -4upx; } .cu-tag[class*="cuIcon-"] { width: 32upx; height: 32upx; top: -4upx; right: -4upx; } /* ================== 头像 ==================== */ .cu-avatar { font-variant: small-caps; margin: 0; padding: 0; display: inline-flex; text-align: center; justify-content: center; align-items: center; background-color: #ccc; color: #ffffff; white-space: nowrap; position: relative; width: 64upx; height: 64upx; background-size: cover; background-position: center; vertical-align: middle; font-size: 1.5em; } .cu-avatar.sm { width: 48upx; height: 48upx; font-size: 1em; } .cu-avatar.lg { width: 96upx; height: 96upx; font-size: 2em; } .cu-avatar.xl { width: 128upx; height: 128upx; font-size: 2.5em; } .cu-avatar .avatar-text { font-size: 0.4em; } .cu-avatar-group { direction: rtl; unicode-bidi: bidi-override; padding: 0 10upx 0 40upx; display: inline-block; } .cu-avatar-group .cu-avatar { margin-left: -30upx; border: 4upx solid #f1f1f1; vertical-align: middle; } .cu-avatar-group .cu-avatar.sm { margin-left: -20upx; border: 1upx solid #f1f1f1; } /* ================== 进度条 ==================== */ .cu-progress { overflow: hidden; height: 28upx; background-color: #ebeef5; display: inline-flex; align-items: center; width: 100%; } .cu-progress+view, .cu-progress+text { line-height: 1; } .cu-progress.xs { height: 10upx; } .cu-progress.sm { height: 20upx; } .cu-progress view { width: 0; height: 100%; align-items: center; display: flex; justify-items: flex-end; justify-content: space-around; font-size: 20upx; color: #ffffff; transition: width 0.6s ease; } .cu-progress text { align-items: center; display: flex; font-size: 20upx; color: #333333; text-indent: 10upx; } .cu-progress.text-progress { padding-right: 60upx; } .cu-progress.striped view { background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 72upx 72upx; } .cu-progress.active view { animation: progress-stripes 2s linear infinite; } @keyframes progress-stripes { from { background-position: 72upx 0; } to { background-position: 0 0; } } /* ================== 加载 ==================== */ .cu-load { display: block; line-height: 3em; text-align: center; } .cu-load::before { font-family: "cuIcon"; display: inline-block; margin-right: 6upx; } .cu-load.loading::before { content: "\e67a"; animation: cuIcon-spin 2s infinite linear; } .cu-load.loading::after { content: "加载中..."; } .cu-load.over::before { content: "\e64a"; } .cu-load.over::after { content: "没有更多了"; } .cu-load.erro::before { content: "\e658"; } .cu-load.erro::after { content: "加载失败"; } .cu-load.load-cuIcon::before { font-size: 32upx; } .cu-load.load-cuIcon::after { display: none; } .cu-load.load-cuIcon.over { display: none; } .cu-load.load-modal { position: fixed; top: 0; right: 0; bottom: 140upx; left: 0; margin: auto; width: 260upx; height: 260upx; background-color: #ffffff; border-radius: 10upx; box-shadow: 0 0 0upx 2000upx rgba(0, 0, 0, 0.5); display: flex; align-items: center; flex-direction: column; justify-content: center; font-size: 28upx; z-index: 9999; line-height: 2.4em; } .cu-load.load-modal [class*="cuIcon-"] { font-size: 60upx; } .cu-load.load-modal image { width: 70upx; height: 70upx; } .cu-load.load-modal::after { content: ""; position: absolute; background-color: #ffffff; border-radius: 50%; width: 200upx; height: 200upx; font-size: 10px; border-top: 6upx solid rgba(0, 0, 0, 0.05); border-right: 6upx solid rgba(0, 0, 0, 0.05); border-bottom: 6upx solid rgba(0, 0, 0, 0.05); border-left: 6upx solid #f37b1d; animation: cuIcon-spin 1s infinite linear; z-index: -1; } .load-progress { pointer-events: none; top: 0; position: fixed; width: 100%; left: 0; z-index: 2000; } .load-progress.hide { display: none; } .load-progress .load-progress-bar { position: relative; width: 100%; height: 4upx; overflow: hidden; transition: all 200ms ease 0s; } .load-progress .load-progress-spinner { position: absolute; top: 10upx; right: 10upx; z-index: 2000; display: block; } .load-progress .load-progress-spinner::after { content: ""; display: block; width: 24upx; height: 24upx; -webkit-box-sizing: border-box; box-sizing: border-box; border: solid 4upx transparent; border-top-color: inherit; border-left-color: inherit; border-radius: 50%; -webkit-animation: load-progress-spinner 0.4s linear infinite; animation: load-progress-spinner 0.4s linear infinite; } @-webkit-keyframes load-progress-spinner { 0% { -webkit-transform: rotate(0); transform: rotate(0); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes load-progress-spinner { 0% { -webkit-transform: rotate(0); transform: rotate(0); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } /* ================== 列表 ==================== */ .grayscale { filter: grayscale(1); } .cu-list+.cu-list { margin-top: 30upx } .cu-list>.cu-item { transition: all .6s ease-in-out 0s; transform: translateX(0upx) } .cu-list>.cu-item.move-cur { transform: translateX(-260upx) } .cu-list>.cu-item .move { position: absolute; right: 0; display: flex; width: 260upx; height: 100%; transform: translateX(100%) } .cu-list>.cu-item .move view { display: flex; flex: 1; justify-content: center; align-items: center } .cu-list.menu-avatar { overflow: hidden; } .cu-list.menu-avatar>.cu-item { position: relative; display: flex; padding-right: 10upx; height: 140upx; background-color: #ffffff; justify-content: flex-end; align-items: center } .cu-list.menu-avatar>.cu-item>.cu-avatar { position: absolute; left: 30upx } .cu-list.menu-avatar>.cu-item .flex .text-cut { max-width: 510upx } .cu-list.menu-avatar>.cu-item .content { position: absolute; left: 146upx; width: calc(100% - 96upx - 60upx - 120upx - 20upx); line-height: 1.6em; } .cu-list.menu-avatar>.cu-item .content.flex-sub { width: calc(100% - 96upx - 60upx - 20upx); } .cu-list.menu-avatar>.cu-item .content>view:first-child { font-size: 30upx; display: flex; align-items: center } .cu-list.menu-avatar>.cu-item .content .cu-tag.sm { display: inline-block; margin-left: 10upx; height: 28upx; font-size: 16upx; line-height: 32upx } .cu-list.menu-avatar>.cu-item .action { width: 100upx; text-align: center } .cu-list.menu-avatar>.cu-item .action view+view { margin-top: 10upx } .cu-list.menu-avatar.comment>.cu-item .content { position: relative; left: 0; width: auto; flex: 1; } .cu-list.menu-avatar.comment>.cu-item { padding: 30upx 30upx 30upx 120upx; height: auto } .cu-list.menu-avatar.comment .cu-avatar { align-self: flex-start } .cu-list.menu>.cu-item { position: relative; display: flex; padding: 0 30upx; min-height: 100upx; background-color: #ffffff; justify-content: space-between; align-items: center } .cu-list.menu>.cu-item:last-child:after { border: none } .cu-list.menu-avatar>.cu-item:after, .cu-list.menu>.cu-item:after { position: absolute; top: 0; left: 0; box-sizing: border-box; width: 200%; height: 200%; border-bottom: 1upx solid #ddd; border-radius: inherit; content: " "; transform: scale(.5); transform-origin: 0 0; pointer-events: none } .cu-list.menu>.cu-item.grayscale { background-color: #f5f5f5 } .cu-list.menu>.cu-item.cur { background-color: #fcf7e9 } .cu-list.menu>.cu-item.arrow { padding-right: 90upx } .cu-list.menu>.cu-item.arrow:before { position: absolute; top: 0; right: 30upx; bottom: 0; display: block; margin: auto; width: 30upx; height: 30upx; color: #8799a3; content: "\e6a3"; text-align: center; font-size: 34upx; font-family: cuIcon; line-height: 30upx } .cu-list.menu>.cu-item button.content { padding: 0; background-color: transparent; justify-content: flex-start } .cu-list.menu>.cu-item button.content:after { display: none } .cu-list.menu>.cu-item .cu-avatar-group .cu-avatar { border-color: #ffffff } .cu-list.menu>.cu-item .content>view:first-child { display: flex; align-items: center } .cu-list.menu>.cu-item .content>text[class*=cuIcon] { display: inline-block; margin-right: 10upx; width: 1.6em; text-align: center } .cu-list.menu>.cu-item .content>image { display: inline-block; margin-right: 10upx; width: 1.6em; height: 1.6em; vertical-align: middle } .cu-list.menu>.cu-item .content { font-size: 30upx; line-height: 1.6em; flex: 1 } .cu-list.menu>.cu-item .content .cu-tag.sm { display: inline-block; margin-left: 10upx; height: 28upx; font-size: 16upx; line-height: 32upx } .cu-list.menu>.cu-item .action .cu-tag:empty { right: 10upx } .cu-list.menu { display: block; overflow: hidden } .cu-list.menu.sm-border>.cu-item:after { left: 30upx; width: calc(200% - 120upx) } .cu-list.grid>.cu-item { position: relative; display: flex; padding: 20upx 0 30upx; transition-duration: 0s; flex-direction: column } .cu-list.grid>.cu-item:after { position: absolute; top: 0; left: 0; box-sizing: border-box; width: 200%; height: 200%; border-right: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); border-radius: inherit; content: " "; transform: scale(.5); transform-origin: 0 0; pointer-events: none } .cu-list.grid>.cu-item text { display: block; margin-top: 10upx; color: #888; font-size: 26upx; line-height: 40upx } .cu-list.grid>.cu-item [class*=cuIcon] { position: relative; display: block; margin-top: 20upx; width: 100%; font-size: 48upx } .cu-list.grid>.cu-item .cu-tag { right: auto; left: 50%; margin-left: 20upx } .cu-list.grid { background-color: #ffffff; text-align: center } .cu-list.grid.no-border>.cu-item { padding-top: 10upx; padding-bottom: 20upx } .cu-list.grid.no-border>.cu-item:after { border: none } .cu-list.grid.no-border { padding: 20upx 10upx } .cu-list.grid.col-3>.cu-item:nth-child(3n):after, .cu-list.grid.col-4>.cu-item:nth-child(4n):after, .cu-list.grid.col-5>.cu-item:nth-child(5n):after { border-right-width: 0 } .cu-list.card-menu { overflow: hidden; margin-right: 30upx; margin-left: 30upx; border-radius: 20upx } /* ================== 操作条 ==================== */ .cu-bar { display: flex; position: relative; align-items: center; min-height: 100upx; justify-content: space-between; } .cu-bar .action { display: flex; align-items: center; height: 100%; justify-content: center; max-width: 100%; } .cu-bar .action.border-title { position: relative; top: -10upx; } .cu-bar .action.border-title text[class*="bg-"]:last-child { position: absolute; bottom: -0.5rem; min-width: 2rem; height: 6upx; left: 0; } .cu-bar .action.sub-title { position: relative; top: -0.2rem; } .cu-bar .action.sub-title text { position: relative; z-index: 1; } .cu-bar .action.sub-title text[class*="bg-"]:last-child { position: absolute; display: inline-block; bottom: -0.2rem; border-radius: 6upx; width: 100%; height: 0.6rem; left: 0.6rem; opacity: 0.3; z-index: 0; } .cu-bar .action.sub-title text[class*="text-"]:last-child { position: absolute; display: inline-block; bottom: -0.7rem; left: 0.5rem; opacity: 0.2; z-index: 0; text-align: right; font-weight: 900; font-size: 36upx; } .cu-bar.justify-center .action.border-title text:last-child, .cu-bar.justify-center .action.sub-title text:last-child { left: 0; right: 0; margin: auto; text-align: center; } .cu-bar .action:first-child { margin-left: 30upx; font-size: 30upx; } .cu-bar .action text.text-cut { text-align: left; width: 100%; } .cu-bar .cu-avatar:first-child { margin-left: 20upx; } .cu-bar .action:first-child>text[class*="cuIcon-"] { margin-left: -0.3em; margin-right: 0.3em; } .cu-bar .action:last-child { margin-right: 30upx; } .cu-bar .action>text[class*="cuIcon-"], .cu-bar .action>view[class*="cuIcon-"] { font-size: 36upx; } .cu-bar .action>text[class*="cuIcon-"]+text[class*="cuIcon-"] { margin-left: 0.5em; } .cu-bar .content { position: absolute; text-align: center; width: calc(100% - 340upx); left: 0; right: 0; bottom: 0; top: 0; margin: auto; height: 60upx; font-size: 32upx; line-height: 60upx; cursor: none; pointer-events: none; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .cu-bar.ios .content { bottom: 7px; height: 30px; font-size: 32upx; line-height: 30px; } .cu-bar.btn-group { justify-content: space-around; } .cu-bar.btn-group button { padding: 20upx 32upx; } .cu-bar.btn-group button { flex: 1; margin: 0 20upx; max-width: 50%; } .cu-bar .search-form { background-color: #f5f5f5; line-height: 64upx; height: 64upx; font-size: 24upx; color: #333333; flex: 1; display: flex; align-items: center; margin: 0 30upx; } .cu-bar .search-form+.action { margin-right: 30upx; } .cu-bar .search-form input { flex: 1; padding-right: 30upx; height: 64upx; line-height: 64upx; font-size: 26upx; background-color: transparent; } .cu-bar .search-form [class*="cuIcon-"] { margin: 0 0.5em 0 0.8em; } .cu-bar .search-form [class*="cuIcon-"]::before { top: 0upx; } .cu-bar.fixed, .nav.fixed { position: fixed; width: 100%; top: 0; z-index: 1024; box-shadow: 0 1upx 6upx rgba(0, 0, 0, 0.1); } .cu-bar.foot { position: fixed; width: 100%; bottom: 0; z-index: 1024; box-shadow: 0 -1upx 6upx rgba(0, 0, 0, 0.1); } .cu-bar.tabbar { padding: 0; height: calc(100upx + env(safe-area-inset-bottom) / 2); padding-bottom: calc(env(safe-area-inset-bottom) / 2); } .cu-tabbar-height { min-height: 100upx; height: calc(100upx + env(safe-area-inset-bottom) / 2); } .cu-bar.tabbar.shadow { box-shadow: 0 -1upx 6upx rgba(0, 0, 0, 0.1); } .cu-bar.tabbar .action { font-size: 22upx; position: relative; flex: 1; text-align: center; padding: 0; display: block; height: auto; line-height: 1; margin: 0; background-color: inherit; overflow: initial; } .cu-bar.tabbar.shop .action { width: 140upx; flex: initial; } .cu-bar.tabbar .action.add-action { position: relative; z-index: 2; padding-top: 50upx; } .cu-bar.tabbar .action.add-action [class*="cuIcon-"] { position: absolute; width: 70upx; z-index: 2; height: 70upx; border-radius: 50%; line-height: 70upx; font-size: 50upx; top: -35upx; left: 0; right: 0; margin: auto; padding: 0; } .cu-bar.tabbar .action.add-action::after { content: ""; position: absolute; width: 100upx; height: 100upx; top: -50upx; left: 0; right: 0; margin: auto; box-shadow: 0 -3upx 8upx rgba(0, 0, 0, 0.08); border-radius: 50upx; background-color: inherit; z-index: 0; } .cu-bar.tabbar .action.add-action::before { content: ""; position: absolute; width: 100upx; height: 30upx; bottom: 30upx; left: 0; right: 0; margin: auto; background-color: inherit; z-index: 1; } .cu-bar.tabbar .btn-group { flex: 1; display: flex; justify-content: space-around; align-items: center; padding: 0 10upx; } .cu-bar.tabbar button.action::after { border: 0; } .cu-bar.tabbar .action [class*="cuIcon-"] { width: 100upx; position: relative; display: block; height: auto; margin: 0 auto 10upx; text-align: center; font-size: 40upx; } .cu-bar.tabbar .action .cuIcon-cu-image { margin: 0 auto; } .cu-bar.tabbar .action .cuIcon-cu-image image { width: 50upx; height: 50upx; display: inline-block; } .cu-bar.tabbar .submit { align-items: center; display: flex; justify-content: center; text-align: center; position: relative; flex: 2; align-self: stretch; } .cu-bar.tabbar .submit:last-child { flex: 2.6; } .cu-bar.tabbar .submit+.submit { flex: 2; } .cu-bar.tabbar.border .action::before { content: " "; width: 200%; height: 200%; position: absolute; top: 0; left: 0; transform: scale(0.5); transform-origin: 0 0; border-right: 1upx solid rgba(0, 0, 0, 0.1); z-index: 3; } .cu-bar.tabbar.border .action:last-child:before { display: none; } .cu-bar.input { padding-right: 20upx; background-color: #ffffff; } .cu-bar.input input { overflow: initial; line-height: 64upx; height: 64upx; min-height: 64upx; flex: 1; font-size: 30upx; margin: 0 20upx; } .cu-bar.input .action { margin-left: 20upx; } .cu-bar.input .action [class*="cuIcon-"] { font-size: 48upx; } .cu-bar.input input+.action { margin-right: 20upx; margin-left: 0upx; } .cu-bar.input .action:first-child [class*="cuIcon-"] { margin-left: 0upx; } .cu-custom { display: block; position: relative; } .cu-custom .cu-bar .content { width: calc(100% - 440upx); } /* #ifdef MP-ALIPAY */ .cu-custom .cu-bar .action .cuIcon-back { opacity: 0; } /* #endif */ .cu-custom .cu-bar .content image { height: 60upx; width: 240upx; } .cu-custom .cu-bar { min-height: 0px; /* #ifdef MP-WEIXIN */ padding-right: 220upx; /* #endif */ /* #ifdef MP-ALIPAY */ padding-right: 150upx; /* #endif */ box-shadow: 0upx 0upx 0upx; z-index: 9999; } .cu-custom .cu-bar .border-custom { position: relative; background: rgba(0, 0, 0, 0.15); border-radius: 1000upx; height: 30px; } .cu-custom .cu-bar .border-custom::after { content: " "; width: 200%; height: 200%; position: absolute; top: 0; left: 0; border-radius: inherit; transform: scale(0.5); transform-origin: 0 0; pointer-events: none; box-sizing: border-box; border: 1upx solid #ffffff; opacity: 0.5; } .cu-custom .cu-bar .border-custom::before { content: " "; width: 1upx; height: 110%; position: absolute; top: 22.5%; left: 0; right: 0; margin: auto; transform: scale(0.5); transform-origin: 0 0; pointer-events: none; box-sizing: border-box; opacity: 0.6; background-color: #ffffff; } .cu-custom .cu-bar .border-custom text { display: block; flex: 1; margin: auto !important; text-align: center; font-size: 34upx; } /* ================== 导航栏 ==================== */ .nav { white-space: nowrap; } ::-webkit-scrollbar { display: none; } .nav .cu-item { height: 90upx; display: inline-block; line-height: 90upx; margin: 0 10upx; padding: 0 20upx; } .nav .cu-item.cur { border-bottom: 4upx solid; } /* ================== 时间轴 ==================== */ .cu-timeline { display: block; background-color: #ffffff; } .cu-timeline .cu-time { width: 120upx; text-align: center; padding: 20upx 0; font-size: 26upx; color: #888; display: block; } .cu-timeline>.cu-item { padding: 30upx 30upx 30upx 120upx; position: relative; display: block; z-index: 0; } .cu-timeline>.cu-item:not([class*="text-"]) { color: #ccc; } .cu-timeline>.cu-item::after { content: ""; display: block; position: absolute; width: 1upx; background-color: #ddd; left: 60upx; height: 100%; top: 0; z-index: 8; } .cu-timeline>.cu-item::before { font-family: "cuIcon"; display: block; position: absolute; top: 36upx; z-index: 9; background-color: #ffffff; width: 50upx; height: 50upx; text-align: center; border: none; line-height: 50upx; left: 36upx; } .cu-timeline>.cu-item:not([class*="cuIcon-"])::before { content: "\e763"; } .cu-timeline>.cu-item[class*="cuIcon-"]::before { background-color: #ffffff; width: 50upx; height: 50upx; text-align: center; border: none; line-height: 50upx; left: 36upx; } .cu-timeline>.cu-item>.content { padding: 30upx; border-radius: 6upx; display: block; line-height: 1.6; } .cu-timeline>.cu-item>.content:not([class*="bg-"]) { background-color: #f1f1f1; color: #333333; } .cu-timeline>.cu-item>.content+.content { margin-top: 20upx; } /* ================== 聊天 ==================== */ .cu-chat { display: flex; flex-direction: column; } .cu-chat .cu-item { display: flex; padding: 30upx 30upx 70upx; position: relative; } .cu-chat .cu-item>.cu-avatar { width: 80upx; height: 80upx; } .cu-chat .cu-item>.main { max-width: calc(100% - 260upx); margin: 0 40upx; display: flex; align-items: center; } .cu-chat .cu-item>image { height: 320upx; } .cu-chat .cu-item>.main .content { padding: 20upx; border-radius: 6upx; display: inline-flex; max-width: 100%; align-items: center; font-size: 30upx; position: relative; min-height: 80upx; line-height: 40upx; text-align: left; } .cu-chat .cu-item>.main .content:not([class*="bg-"]) { background-color: #ffffff; color: #333333; } .cu-chat .cu-item .date { position: absolute; font-size: 24upx; color: #8799a3; width: calc(100% - 320upx); bottom: 20upx; left: 160upx; } .cu-chat .cu-item .action { padding: 0 30upx; display: flex; align-items: center; } .cu-chat .cu-item>.main .content::after { content: ""; top: 27upx; transform: rotate(45deg); position: absolute; z-index: 100; display: inline-block; overflow: hidden; width: 24upx; height: 24upx; left: -12upx; right: initial; background-color: inherit; } .cu-chat .cu-item.self>.main .content::after { left: auto; right: -12upx; } .cu-chat .cu-item>.main .content::before { content: ""; top: 30upx; transform: rotate(45deg); position: absolute; z-index: -1; display: inline-block; overflow: hidden; width: 24upx; height: 24upx; left: -12upx; right: initial; background-color: inherit; filter: blur(5upx); opacity: 0.3; } .cu-chat .cu-item>.main .content:not([class*="bg-"])::before { background-color: #333333; opacity: 0.1; } .cu-chat .cu-item.self>.main .content::before { left: auto; right: -12upx; } .cu-chat .cu-item.self { justify-content: flex-end; text-align: right; } .cu-chat .cu-info { display: inline-block; margin: 20upx auto; font-size: 24upx; padding: 8upx 12upx; background-color: rgba(0, 0, 0, 0.2); border-radius: 6upx; color: #ffffff; max-width: 400upx; line-height: 1.4; } /* ================== 卡片 ==================== */ .cu-card { display: block; overflow: hidden; } .cu-card>.cu-item { display: block; background-color: #ffffff; overflow: hidden; border-radius: 10upx; margin: 30upx; } .cu-card>.cu-item.shadow-blur { overflow: initial; } .cu-card.no-card>.cu-item { margin: 0upx; border-radius: 0upx; } .cu-card .grid.grid-square { margin-bottom: -20upx; } .cu-card.case .image { position: relative; } .cu-card.case .image image { width: 100%; } .cu-card.case .image .cu-tag { position: absolute; right: 0; top: 0; } .cu-card.case .image .cu-bar { position: absolute; bottom: 0; width: 100%; background-color: transparent; padding: 0upx 30upx; } .cu-card.case.no-card .image { margin: 30upx 30upx 0; overflow: hidden; border-radius: 10upx; } .cu-card.dynamic { display: block; } .cu-card.dynamic>.cu-item { display: block; background-color: #ffffff; overflow: hidden; } .cu-card.dynamic>.cu-item>.text-content { padding: 0 30upx 0; max-height: 6.4em; overflow: hidden; font-size: 30upx; margin-bottom: 20upx; } .cu-card.dynamic>.cu-item .square-img { width: 100%; height: 200upx; border-radius: 6upx; } .cu-card.dynamic>.cu-item .only-img { width: 100%; height: 320upx; border-radius: 6upx; } /* card.dynamic>.cu-item .comment { padding: 20upx; background-color: #f1f1f1; margin: 0 30upx 30upx; border-radius: 6upx; } */ .cu-card.article { display: block; } .cu-card.article>.cu-item { padding-bottom: 30upx; } .cu-card.article>.cu-item .title { font-size: 30upx; font-weight: 900; color: #333333; line-height: 100upx; padding: 0 30upx; } .cu-card.article>.cu-item .content { display: flex; padding: 0 30upx; } .cu-card.article>.cu-item .content>image { width: 240upx; height: 6.4em; margin-right: 20upx; border-radius: 6upx; } .cu-card.article>.cu-item .content .desc { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } .cu-card.article>.cu-item .content .text-content { font-size: 28upx; color: #888; height: 4.8em; overflow: hidden; } /* ================== 表单 ==================== */ .cu-form-group { background-color: #ffffff; padding: 1upx 30upx; display: flex; align-items: center; min-height: 100upx; justify-content: space-between; } .cu-form-group+.cu-form-group { border-top: 1upx solid #eee; } .cu-form-group .title { text-align: justify; padding-right: 30upx; font-size: 30upx; position: relative; height: 60upx; line-height: 60upx; } .cu-form-group input { flex: 1; font-size: 30upx; color: #555; padding-right: 20upx; } .cu-form-group>text[class*="cuIcon-"] { font-size: 36upx; padding: 0; box-sizing: border-box; } .cu-form-group textarea { margin: 32upx 0 30upx; height: 4.6em; width: 100%; line-height: 1.2em; flex: 1; font-size: 28upx; padding: 0; } .cu-form-group.align-start .title { height: 1em; margin-top: 32upx; line-height: 1em; } .cu-form-group picker { flex: 1; padding-right: 40upx; overflow: hidden; position: relative; } .cu-form-group picker .picker { line-height: 100upx; font-size: 28upx; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; width: 100%; text-align: right; } .cu-form-group picker::after { font-family: cuIcon; display: block; content: "\e6a3"; position: absolute; font-size: 34upx; color: #8799a3; line-height: 100upx; width: 60upx; text-align: center; top: 0; bottom: 0; right: -20upx; margin: auto; } .cu-form-group textarea[disabled], .cu-form-group textarea[disabled] .placeholder { color: transparent; } /* ================== 模态窗口 ==================== */ .cu-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1110; opacity: 0; outline: 0; text-align: center; -ms-transform: scale(1.185); transform: scale(1.185); backface-visibility: hidden; perspective: 2000upx; background: rgba(0, 0, 0, 0.6); transition: all 0.3s ease-in-out 0s; pointer-events: none; } .cu-modal::before { content: "\200B"; display: inline-block; height: 100%; vertical-align: middle; } .cu-modal.show { opacity: 1; transition-duration: 0.3s; -ms-transform: scale(1); transform: scale(1); overflow-x: hidden; overflow-y: auto; pointer-events: auto; } .cu-dialog { position: relative; display: inline-block; vertical-align: middle; margin-left: auto; margin-right: auto; width: 680upx; max-width: 100%; background-color: #f8f8f8; border-radius: 10upx; overflow: hidden; } .cu-modal.bottom-modal::before { vertical-align: bottom; } .cu-modal.bottom-modal .cu-dialog { width: 100%; border-radius: 0; } .cu-modal.bottom-modal { margin-bottom: -1000upx; } .cu-modal.bottom-modal.show { margin-bottom: 0; } .cu-modal.drawer-modal { transform: scale(1); display: flex; } .cu-modal.drawer-modal .cu-dialog { height: 100%; min-width: 200upx; border-radius: 0; margin: initial; transition-duration: 0.3s; } .cu-modal.drawer-modal.justify-start .cu-dialog { transform: translateX(-100%); } .cu-modal.drawer-modal.justify-end .cu-dialog { transform: translateX(100%); } .cu-modal.drawer-modal.show .cu-dialog { transform: translateX(0%); } .cu-modal .cu-dialog>.cu-bar:first-child .action { min-width: 100rpx; margin-right: 0; min-height: 100rpx; } /* ================== 轮播 ==================== */ swiper .a-swiper-dot { display: inline-block; width: 16upx; height: 16upx; background: rgba(0, 0, 0, .3); border-radius: 50%; vertical-align: middle; } swiper[class*="-dot"] .wx-swiper-dots, swiper[class*="-dot"] .a-swiper-dots, swiper[class*="-dot"] .uni-swiper-dots { display: flex; align-items: center; width: 100%; justify-content: center; } swiper.square-dot .wx-swiper-dot, swiper.square-dot .a-swiper-dot, swiper.square-dot .uni-swiper-dot { background-color: #ffffff; opacity: 0.4; width: 10upx; height: 10upx; border-radius: 20upx; margin: 0 8upx !important; } swiper.square-dot .wx-swiper-dot.wx-swiper-dot-active, swiper.square-dot .a-swiper-dot.a-swiper-dot-active, swiper.square-dot .uni-swiper-dot.uni-swiper-dot-active { opacity: 1; width: 30upx; } swiper.round-dot .wx-swiper-dot, swiper.round-dot .a-swiper-dot, swiper.round-dot .uni-swiper-dot { width: 10upx; height: 10upx; position: relative; margin: 4upx 8upx !important; } swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active::after, swiper.round-dot .a-swiper-dot.a-swiper-dot-active::after, swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active::after { content: ""; position: absolute; width: 10upx; height: 10upx; top: 0upx; left: 0upx; right: 0; bottom: 0; margin: auto; background-color: #ffffff; border-radius: 20upx; } swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active, swiper.round-dot .a-swiper-dot.a-swiper-dot-active, swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active { width: 18upx; height: 18upx; } .screen-swiper { /* min-height: 375upx; */ } .screen-swiper image, .screen-swiper video, .swiper-item image, .swiper-item video { width: 100%; display: block; height: 100%; margin: 0; pointer-events: none; } .card-swiper { height: 420upx !important; } .card-swiper swiper-item { width: 610upx !important; left: 70upx; box-sizing: border-box; padding: 40upx 0upx 70upx; overflow: initial; } .card-swiper swiper-item .swiper-item { width: 100%; display: block; height: 100%; border-radius: 10upx; transform: scale(0.9); transition: all 0.2s ease-in 0s; overflow: hidden; } .card-swiper swiper-item.cur .swiper-item { transform: none; transition: all 0.2s ease-in 0s; } .tower-swiper { height: 420upx; position: relative; max-width: 750upx; overflow: hidden; } .tower-swiper .tower-item { position: absolute; width: 300upx; height: 380upx; top: 0; bottom: 0; left: 50%; margin: auto; transition: all 0.2s ease-in 0s; opacity: 1; } .tower-swiper .tower-item.none { opacity: 0; } .tower-swiper .tower-item .swiper-item { width: 100%; height: 100%; border-radius: 6upx; overflow: hidden; } /* ================== 步骤条 ==================== */ .cu-steps { display: flex; } scroll-view.cu-steps { display: block; white-space: nowrap; } scroll-view.cu-steps .cu-item { display: inline-block; } .cu-steps .cu-item { flex: 1; text-align: center; position: relative; min-width: 100upx; } .cu-steps .cu-item:not([class*="text-"]) { color: #8799a3; } .cu-steps .cu-item [class*="cuIcon-"], .cu-steps .cu-item .num { display: block; font-size: 40upx; line-height: 80upx; } .cu-steps .cu-item::before, .cu-steps .cu-item::after, .cu-steps.steps-arrow .cu-item::before, .cu-steps.steps-arrow .cu-item::after { content: ""; display: block; position: absolute; height: 0px; width: calc(100% - 80upx); border-bottom: 1px solid #ccc; left: calc(0px - (100% - 80upx) / 2); top: 40upx; z-index: 0; } .cu-steps.steps-arrow .cu-item::before, .cu-steps.steps-arrow .cu-item::after { content: "\e6a3"; font-family: 'cuIcon'; height: 30upx; border-bottom-width: 0px; line-height: 30upx; top: 0; bottom: 0; margin: auto; color: #ccc; } .cu-steps.steps-bottom .cu-item::before, .cu-steps.steps-bottom .cu-item::after { bottom: 40upx; top: initial; } .cu-steps .cu-item::after { border-bottom: 1px solid currentColor; width: 0px; transition: all 0.3s ease-in-out 0s; } .cu-steps .cu-item[class*="text-"]::after { width: calc(100% - 80upx); color: currentColor; } .cu-steps .cu-item:first-child::before, .cu-steps .cu-item:first-child::after { display: none; } .cu-steps .cu-item .num { width: 40upx; height: 40upx; border-radius: 50%; line-height: 40upx; margin: 20upx auto; font-size: 24upx; border: 1px solid currentColor; position: relative; overflow: hidden; } .cu-steps .cu-item[class*="text-"] .num { background-color: currentColor; } .cu-steps .cu-item .num::before, .cu-steps .cu-item .num::after { content: attr(data-index); position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; transition: all 0.3s ease-in-out 0s; transform: translateY(0upx); } .cu-steps .cu-item[class*="text-"] .num::before { transform: translateY(-40upx); color: #ffffff; } .cu-steps .cu-item .num::after { transform: translateY(40upx); color: #ffffff; transition: all 0.3s ease-in-out 0s; } .cu-steps .cu-item[class*="text-"] .num::after { content: "\e645"; font-family: 'cuIcon'; color: #ffffff; transform: translateY(0upx); } .cu-steps .cu-item[class*="text-"] .num.err::after { content: "\e646"; } /* ================== 布局 ==================== */ /* -- flex弹性布局 -- */ .flex { display: flex; } .basis-xs { flex-basis: 20%; } .basis-sm { flex-basis: 40%; } .basis-df { flex-basis: 50%; } .basis-lg { flex-basis: 60%; } .basis-xl { flex-basis: 80%; } .flex-sub { flex: 1; } .flex-twice { flex: 2; } .flex-treble { flex: 3; } .flex-direction { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .align-start { align-items: flex-start; } .align-end { align-items: flex-end; } .align-center { align-items: center; } .align-stretch { align-items: stretch; } .self-start { align-self: flex-start; } .self-center { align-self: flex-center; } .self-end { align-self: flex-end; } .self-stretch { align-self: stretch; } .align-stretch { align-items: stretch; } .justify-start { justify-content: flex-start; } .justify-end { justify-content: flex-end; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .justify-around { justify-content: space-around; } /* grid布局 */ .grid { display: flex; flex-wrap: wrap; } .grid.grid-square { overflow: hidden; } .grid.grid-square .cu-tag { position: absolute; right: 0; top: 0; border-bottom-left-radius: 6upx; padding: 6upx 12upx; height: auto; background-color: rgba(0, 0, 0, 0.5); } .grid.grid-square>view>text[class*="cuIcon-"] { font-size: 52upx; position: absolute; color: #8799a3; margin: auto; top: 0; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; } .grid.grid-square>view { margin-right: 20upx; margin-bottom: 20upx; border-radius: 6upx; position: relative; overflow: hidden; } .grid.grid-square>view.bg-img image { width: 100%; height: 100%; position: absolute; } .grid.col-1.grid-square>view { padding-bottom: 100%; height: 0; margin-right: 0; } .grid.col-2.grid-square>view { padding-bottom: calc((100% - 20upx)/2); height: 0; width: calc((100% - 20upx)/2); } .grid.col-3.grid-square>view { padding-bottom: calc((100% - 40upx)/3); height: 0; width: calc((100% - 40upx)/3); } .grid.col-4.grid-square>view { padding-bottom: calc((100% - 60upx)/4); height: 0; width: calc((100% - 60upx)/4); } .grid.col-5.grid-square>view { padding-bottom: calc((100% - 80upx)/5); height: 0; width: calc((100% - 80upx)/5); } .grid.col-2.grid-square>view:nth-child(2n), .grid.col-3.grid-square>view:nth-child(3n), .grid.col-4.grid-square>view:nth-child(4n), .grid.col-5.grid-square>view:nth-child(5n) { margin-right: 0; } .grid.col-1>view { width: 100%; } .grid.col-2>view { width: 50%; } .grid.col-3>view { width: 33.33%; } .grid.col-4>view { width: 25%; } .grid.col-5>view { width: 20%; } /* -- 内外边距 -- */ .margin-0 { margin: 0; } .margin-xs { margin: 10upx; } .margin-sm { margin: 20upx; } .margin { margin: 30upx; } .margin-lg { margin: 40upx; } .margin-xl { margin: 50upx; } .margin-top-xs { margin-top: 10upx; } .margin-top-sm { margin-top: 20upx; } .margin-top { margin-top: 30upx; } .margin-top-lg { margin-top: 40upx; } .margin-top-xl { margin-top: 50upx; } .margin-right-xs { margin-right: 10upx; } .margin-right-sm { margin-right: 20upx; } .margin-right { margin-right: 30upx; } .margin-right-lg { margin-right: 40upx; } .margin-right-xl { margin-right: 50upx; } .margin-bottom-xs { margin-bottom: 10upx; } .margin-bottom-sm { margin-bottom: 20upx; } .margin-bottom { margin-bottom: 30upx; } .margin-bottom-lg { margin-bottom: 40upx; } .margin-bottom-xl { margin-bottom: 50upx; } .margin-left-xs { margin-left: 10upx; } .margin-left-sm { margin-left: 20upx; } .margin-left { margin-left: 30upx; } .margin-left-lg { margin-left: 40upx; } .margin-left-xl { margin-left: 50upx; } .margin-lr-xs { margin-left: 10upx; margin-right: 10upx; } .margin-lr-sm { margin-left: 20upx; margin-right: 20upx; } .margin-lr { margin-left: 30upx; margin-right: 30upx; } .margin-lr-lg { margin-left: 40upx; margin-right: 40upx; } .margin-lr-xl { margin-left: 50upx; margin-right: 50upx; } .margin-tb-xs { margin-top: 10upx; margin-bottom: 10upx; } .margin-tb-sm { margin-top: 20upx; margin-bottom: 20upx; } .margin-tb { margin-top: 30upx; margin-bottom: 30upx; } .margin-tb-lg { margin-top: 40upx; margin-bottom: 40upx; } .margin-tb-xl { margin-top: 50upx; margin-bottom: 50upx; } .padding-0 { padding: 0; } .padding-xs { padding: 10upx; } .padding-sm { padding: 20upx; } .padding { padding: 30upx; } .padding-lg { padding: 40upx; } .padding-xl { padding: 50upx; } .padding-top-xs { padding-top: 10upx; } .padding-top-sm { padding-top: 20upx; } .padding-top { padding-top: 30upx; } .padding-top-lg { padding-top: 40upx; } .padding-top-xl { padding-top: 50upx; } .padding-right-xs { padding-right: 10upx; } .padding-right-sm { padding-right: 20upx; } .padding-right { padding-right: 30upx; } .padding-right-lg { padding-right: 40upx; } .padding-right-xl { padding-right: 50upx; } .padding-bottom-xs { padding-bottom: 10upx; } .padding-bottom-sm { padding-bottom: 20upx; } .padding-bottom { padding-bottom: 30upx; } .padding-bottom-lg { padding-bottom: 40upx; } .padding-bottom-xl { padding-bottom: 50upx; } .padding-left-xs { padding-left: 10upx; } .padding-left-sm { padding-left: 20upx; } .padding-left { padding-left: 30upx; } .padding-left-lg { padding-left: 40upx; } .padding-left-xl { padding-left: 50upx; } .padding-lr-xs { padding-left: 10upx; padding-right: 10upx; } .padding-lr-sm { padding-left: 20upx; padding-right: 20upx; } .padding-lr { padding-left: 30upx; padding-right: 30upx; } .padding-lr-lg { padding-left: 40upx; padding-right: 40upx; } .padding-lr-xl { padding-left: 50upx; padding-right: 50upx; } .padding-tb-xs { padding-top: 10upx; padding-bottom: 10upx; } .padding-tb-sm { padding-top: 20upx; padding-bottom: 20upx; } .padding-tb { padding-top: 30upx; padding-bottom: 30upx; } .padding-tb-lg { padding-top: 40upx; padding-bottom: 40upx; } .padding-tb-xl { padding-top: 50upx; padding-bottom: 50upx; } /* -- 浮动 -- */ .cf::after, .cf::before { content: " "; display: table; } .cf::after { clear: both; } .fl { float: left; } .fr { float: right; } /* ================== 背景 ==================== */ .line-red::after, .lines-red::after { border-color: #e54d42; } .line-orange::after, .lines-orange::after { border-color: #f37b1d; } .line-yellow::after, .lines-yellow::after { border-color: #fbbd08; } .line-olive::after, .lines-olive::after { border-color: #8dc63f; } .line-green::after, .lines-green::after { border-color: #39b54a; } .line-cyan::after, .lines-cyan::after { border-color: #1cbbb4; } .line-blue::after, .lines-blue::after { border-color: #0081ff; } .line-purple::after, .lines-purple::after { border-color: #6739b6; } .line-mauve::after, .lines-mauve::after { border-color: #9c26b0; } .line-pink::after, .lines-pink::after { border-color: #e03997; } .line-brown::after, .lines-brown::after { border-color: #a5673f; } .line-grey::after, .lines-grey::after { border-color: #8799a3; } .line-gray::after, .lines-gray::after { border-color: #aaaaaa; } .line-black::after, .lines-black::after { border-color: #333333; } .line-white::after, .lines-white::after { border-color: #ffffff; } .bg-red { background-color: #e54d42; color: #ffffff; } .bg-orange { background-color: #f37b1d; color: #ffffff; } .bg-user-orang { background-color:rgba($main-color,0.1); color: black; } .bg-to-color { background-color: #F5F5F5; color: black; } .bg-yellow { background-color: #fbbd08; color: #333333; } .bg-olive { background-color: #8dc63f; color: #ffffff; } .bg-green { background-color: #39b54a; color: #ffffff; } .bg-main-color { background-color: $main-color; color: #ffffff; } .bg-blue { background-color: #0081ff; color: #ffffff; } .bg-purple { background-color: #6739b6; color: #ffffff; } .bg-mauve { background-color: #9c26b0; color: #ffffff; } .bg-pink { background-color: #e03997; color: #ffffff; } .bg-brown { background-color: #a5673f; color: #ffffff; } .bg-grey { background-color: #8799a3; color: #ffffff; } .bg-gray { background-color: #f0f0f0; color: #333333; } .bg-black { background-color: #333333; color: #ffffff; } .bg-white { background-color: #ffffff; color: #666666; } .bg-shadeTop { background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01)); color: #ffffff; } .bg-shadeBottom { background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1)); color: #ffffff; } .bg-red.light { color: #e54d42; background-color: #fadbd9; } .bg-orange.light { color: #f37b1d; background-color: #fde6d2; } .bg-yellow.light { color: #fbbd08; background-color: #fef2ced2; } .bg-olive.light { color: #8dc63f; background-color: #e8f4d9; } .bg-green.light { color: #39b54a; background-color: #d7f0dbff; } .bg-main-color.light { color: #1cbbb4; background-color: #d2f1f0; } .bg-blue.light { color: #0081ff; background-color: #cce6ff; } .bg-purple.light { color: #6739b6; background-color: #e1d7f0; } .bg-mauve.light { color: #9c26b0; background-color: #ebd4ef; } .bg-pink.light { color: #e03997; background-color: #f9d7ea; } .bg-brown.light { color: #a5673f; background-color: #ede1d9; } .bg-grey.light { color: #8799a3; background-color: #e7ebed; } .bg-gradual-red { background-image: linear-gradient(45deg, #f43f3b, #ec008c); color: #ffffff; } .bg-gradual-orange-sm { background-image: linear-gradient(45deg, #ff7903, #ed9e00); color: #ffffff; } .bg-gradual-orange { background-image: linear-gradient(45deg, #ff9700, #ed1c24); color: #ffffff; } .bg-gradual-green { background-image: linear-gradient(45deg, #39b54a, #8dc63f); color: #ffffff; } .bg-gradual-index-row { background-image: linear-gradient(60deg, #23cb8e, #1ea875); color: #ffffff; } .bg-gradual-purple { background-image: linear-gradient(45deg, #9000ff, #5e00ff); color: #ffffff; } .bg-gradual-pink { background-image: linear-gradient(45deg, #ec008c, #6739b6); color: #ffffff; } .bg-gradual-blue { background-image: linear-gradient(45deg, #0081ff, #1cbbb4); color: #ffffff; } .bg-gradual-blue-sm { background-image: linear-gradient(45deg, #1bcaa7, #5ddfa2); color: #ffffff; } .shadow[class*="-red"] { box-shadow: 6upx 6upx 8upx rgba(204, 69, 59, 0.2); } .shadow[class*="-orange"] { box-shadow: 6upx 6upx 8upx rgba(217, 109, 26, 0.2); } .shadow[class*="-yellow"] { box-shadow: 6upx 6upx 8upx rgba(224, 170, 7, 0.2); } .shadow[class*="-olive"] { box-shadow: 6upx 6upx 8upx rgba(124, 173, 55, 0.2); } .shadow[class*="-green"] { box-shadow: 6upx 6upx 8upx rgba(48, 156, 63, 0.2); } .shadow[class*="-cyan"] { box-shadow: 6upx 6upx 8upx rgba(28, 187, 180, 0.2); } .shadow[class*="-blue"] { box-shadow: 6upx 6upx 8upx rgba(0, 102, 204, 0.2); } .shadow[class*="-purple"] { box-shadow: 6upx 6upx 8upx rgba(88, 48, 156, 0.2); } .shadow[class*="-mauve"] { box-shadow: 6upx 6upx 8upx rgba(133, 33, 150, 0.2); } .shadow[class*="-pink"] { box-shadow: 6upx 6upx 8upx rgba(199, 50, 134, 0.2); } .shadow[class*="-brown"] { box-shadow: 6upx 6upx 8upx rgba(140, 88, 53, 0.2); } .shadow[class*="-grey"] { box-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2); } .shadow[class*="-gray"] { box-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2); } .shadow[class*="-black"] { box-shadow: 6upx 6upx 8upx rgba(26, 26, 26, 0.2); } .shadow[class*="-white"] { box-shadow: 6upx 6upx 8upx rgba(26, 26, 26, 0.2); } .text-shadow[class*="-red"] { text-shadow: 6upx 6upx 8upx rgba(204, 69, 59, 0.2); } .text-shadow[class*="-orange"] { text-shadow: 6upx 6upx 8upx rgba(217, 109, 26, 0.2); } .text-shadow[class*="-yellow"] { text-shadow: 6upx 6upx 8upx rgba(224, 170, 7, 0.2); } .text-shadow[class*="-olive"] { text-shadow: 6upx 6upx 8upx rgba(124, 173, 55, 0.2); } .text-shadow[class*="-green"] { text-shadow: 6upx 6upx 8upx rgba(48, 156, 63, 0.2); } .text-shadow[class*="-cyan"] { text-shadow: 6upx 6upx 8upx rgba(28, 187, 180, 0.2); } .text-shadow[class*="-blue"] { text-shadow: 6upx 6upx 8upx rgba(0, 102, 204, 0.2); } .text-shadow[class*="-purple"] { text-shadow: 6upx 6upx 8upx rgba(88, 48, 156, 0.2); } .text-shadow[class*="-mauve"] { text-shadow: 6upx 6upx 8upx rgba(133, 33, 150, 0.2); } .text-shadow[class*="-pink"] { text-shadow: 6upx 6upx 8upx rgba(199, 50, 134, 0.2); } .text-shadow[class*="-brown"] { text-shadow: 6upx 6upx 8upx rgba(140, 88, 53, 0.2); } .text-shadow[class*="-grey"] { text-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2); } .text-shadow[class*="-gray"] { text-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2); } .text-shadow[class*="-black"] { text-shadow: 6upx 6upx 8upx rgba(26, 26, 26, 0.2); } .bg-img { background-size: cover; background-position: center; background-repeat: no-repeat; } .bg-mask { background-color: #333333; position: relative; } .bg-mask::after { content: ""; border-radius: inherit; width: 100%; height: 100%; display: block; background-color: rgba(0, 0, 0, 0.4); position: absolute; left: 0; right: 0; bottom: 0; top: 0; } .bg-mask view, .bg-mask cover-view { z-index: 5; position: relative; } .bg-video { position: relative; } .bg-video video { display: block; height: 100%; width: 100%; -o-object-fit: cover; object-fit: cover; position: absolute; top: 0; z-index: 0; pointer-events: none; } /* ================== 文本 ==================== */ .text-xs { font-size: 20upx; } .text-sm { font-size: 24upx; } .text-df { font-size: 28upx; } .text-lg { font-size: 32upx; } .text-xl { font-size: 36upx; } .text-xxl { font-size: 44upx; } .text-sl { font-size: 80upx; } .text-xsl { font-size: 120upx; } .text-Abc { text-transform: Capitalize; } .text-ABC { text-transform: Uppercase; } .text-abc { text-transform: Lowercase; } .text-price::before { content: "¥"; font-size: 80%; margin-right: 4upx; } .text-cut { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .text-bold { font-weight: bold; } .text-center { text-align: center; } .text-content { line-height: 1.6; } .text-left { text-align: left; } .text-right { text-align: right; } .text-red, .line-red, .lines-red { color: #e54d42; } .text-orange, .line-orange, .lines-orange { color: #f37b1d; } .text-yellow, .line-yellow, .lines-yellow { color: #fbbd08; } .text-olive, .line-olive, .lines-olive { color: #8dc63f; } .text-green, .line-green, .lines-green { color: #39b54a; } .text-cyan, .line-cyan, .lines-cyan { color: #1cbbb4; } .text-blue, .line-blue, .lines-blue { color: #0081ff; } .text-hui { color: #787878; } .text-purple, .line-purple, .lines-purple { color: #6739b6; } .text-mauve, .line-mauve, .lines-mauve { color: #9c26b0; } .text-pink, .line-pink, .lines-pink { color: #e03997; } .text-brown, .line-brown, .lines-brown { color: #a5673f; } .text-grey, .line-grey, .lines-grey { color: #8799a3; } .text-gray, .line-gray, .lines-gray { color: #aaaaaa; } .text-black, .line-black, .lines-black { color: #333333; } .text-white, .line-white, .lines-white { color: #ffffff; } //animation /* Animation 微动画 基于ColorUI组建库的动画模块 by 文晓港 2019年3月26日19:52:28 */ /* css 滤镜 控制黑白底色gif的 */ .gif-black { mix-blend-mode: screen; } .gif-white { mix-blend-mode: multiply; } /* Animation css */ [class*=animation-] { animation-duration: .5s; animation-timing-function: ease-out; animation-fill-mode: both } .animation-fade { animation-name: fade; animation-duration: .8s; animation-timing-function: linear } .animation-scale-up { animation-name: scale-up } .animation-scale-down { animation-name: scale-down } .animation-slide-top { animation-name: slide-top } .animation-slide-bottom { animation-name: slide-bottom } .animation-slide-left { animation-name: slide-left } .animation-slide-right { animation-name: slide-right } .animation-shake { animation-name: shake } .animation-reverse { animation-direction: reverse } @keyframes fade { 0% { opacity: 0 } 100% { opacity: 1 } } @keyframes scale-up { 0% { opacity: 0; transform: scale(.2) } 100% { opacity: 1; transform: scale(1) } } @keyframes scale-down { 0% { opacity: 0; transform: scale(1.8) } 100% { opacity: 1; transform: scale(1) } } @keyframes slide-top { 0% { opacity: 0; transform: translateY(-100%) } 100% { opacity: 1; transform: translateY(0) } } @keyframes slide-bottom { 0% { opacity: 0; transform: translateY(100%) } 100% { opacity: 1; transform: translateY(0) } } @keyframes shake { 0%, 100% { transform: translateX(0) } 10% { transform: translateX(-9px) } 20% { transform: translateX(8px) } 30% { transform: translateX(-7px) } 40% { transform: translateX(6px) } 50% { transform: translateX(-5px) } 60% { transform: translateX(4px) } 70% { transform: translateX(-3px) } 80% { transform: translateX(2px) } 90% { transform: translateX(-1px) } } @keyframes slide-left { 0% { opacity: 0; transform: translateX(-100%) } 100% { opacity: 1; transform: translateX(0) } } @keyframes slide-right { 0% { opacity: 0; transform: translateX(100%) } 100% { opacity: 1; transform: translateX(0) } } ================================================ FILE: pages/mine/im/index.vue ================================================ ================================================ FILE: pages/mine/im/list.vue ================================================ ================================================ FILE: pages/mine/im/socket.js ================================================ import config from '@/config/config.js' import storage from '@/utils/storage'; class socketIO { constructor(data, time, url) { this.socketTask = null this.is_open_socket = false //避免重复连接 this.url = config.baseWsUrl + '/' + storage.getAccessToken() //连接地址 this.data = data ? data : null this.connectNum = 1 // 重连次数 this.traderDetailIndex = 100 // traderDetailIndex ==2 重连 this.accountStateIndex = 100 // traderDetailIndex ==1 重连 this.followFlake = false // traderDetailIndex == true 重连 //心跳检测 this.timeout = time ? time : 15000 //多少秒执行检测 this.heartbeatInterval = null //检测服务器端是否还活着 this.reconnectTimeOut = null //重连之后多久再次重连 } // 进入这个页面的时候创建websocket连接【整个页面随时使用】 connectSocketInit (data) { this.data = data this.socketTask = uni.connectSocket({ url: this.url, success: () => { console.log("正准备建立websocket中..."); // 返回实例 return this.socketTask }, }); this.socketTask.onOpen((res) => { this.connectNum = 1 console.log("WebSocket连接正常!"); this.send(data) clearInterval(this.reconnectTimeOut) clearInterval(this.heartbeatInterval) this.is_open_socket = true; this.start(); // 注:只有连接正常打开中 ,才能正常收到消息 this.socketTask.onMessage((e) => { // 字符串转json let res = JSON.parse(e.data); console.log("res---------->", res) // 这里 查看 推送过来的消息 if (res.data) { uni.$emit('getPositonsOrder', res); } }); }) // 监听连接失败,这里代码我注释掉的原因是因为如果服务器关闭后,和下面的onclose方法一起发起重连操作,这样会导致重复连接 uni.onSocketError((res) => { console.log('WebSocket连接打开失败,请检查!'); this.socketTask = null this.is_open_socket = false; clearInterval(this.heartbeatInterval) clearInterval(this.reconnectTimeOut) uni.$off('getPositonsOrder') if (this.connectNum < 6) { uni.showToast({ title: `WebSocket连接失败,正尝试第${this.connectNum}次连接`, icon: "none" }) this.reconnect(); this.connectNum += 1 } else { uni.$emit('connectError'); this.connectNum = 1 } }); // 这里仅是事件监听【如果socket关闭了会执行】 this.socketTask.onClose(() => { console.log("已经被关闭了-------") clearInterval(this.heartbeatInterval) clearInterval(this.reconnectTimeOut) this.is_open_socket = false; this.socketTask = null uni.$off('getPositonsOrder') if (this.connectNum < 6) { this.reconnect(); } else { uni.$emit('connectError'); this.connectNum = 1 } }) } // 主动关闭socket连接 Close () { if (!this.is_open_socket) { return } this.socketTask.close({ success () { uni.showToast({ title: 'SocketTask 关闭成功', icon: "none" }); } }); } //发送消息 send (data) { console.log("data---------->", data); // 注:只有连接正常打开中 ,才能正常成功发送消息 if (this.socketTask) { this.socketTask.send({ data: JSON.stringify(data), async success () { console.log("消息发送成功"); }, }); } } //开启心跳检测 start () { this.heartbeatInterval = setInterval(() => { this.send({ "traderid": 10260, "type": "Ping" }); }, this.timeout) } //重新连接 reconnect () { //停止发送心跳 clearInterval(this.heartbeatInterval) //如果不是人为关闭的话,进行重连 if (!this.is_open_socket && (this.traderDetailIndex == 2 || this.accountStateIndex == 0 || this .followFlake)) { this.reconnectTimeOut = setInterval(() => { this.connectSocketInit(this.data); }, 5000) } } /** * @description 将 scoket 数据进行过滤 * @param {array} array * @param {string} type 区分 弹窗 openposition 分为跟随和我的 */ arrayFilter (array, type = 'normal', signalId = 0) { let arr1 = [] let arr2 = [] let obj = { arr1: [], arr2: [] } arr1 = array.filter(v => v.flwsig == true) arr2 = array.filter(v => v.flwsig == false) if (type == 'normal') { if (signalId) { arr1 = array.filter(v => v.flwsig == true && v.sigtraderid == signalId) return arr1 } else { return arr1.concat(arr2) } } else { if (signalId > 0) { arr1 = array.filter(v => v.flwsig == true && v.sigtraderid == signalId) obj.arr1 = arr1 } else { obj.arr1 = arr1 } obj.arr2 = arr2 return obj } } } export { socketIO } ================================================ FILE: pages/mine/msgTips/main.vue ================================================ ================================================ FILE: pages/mine/msgTips/packageMsg/index.vue ================================================ ================================================ FILE: pages/mine/msgTips/packageMsg/logisticsDetail.vue ================================================ ================================================ FILE: pages/mine/msgTips/serviceMsg/index.vue ================================================ ================================================ FILE: pages/mine/msgTips/sysMsg/index.vue ================================================ ================================================ FILE: pages/mine/myCollect.vue ================================================ ================================================ FILE: pages/mine/myTracks.vue ================================================ ================================================ FILE: pages/mine/point/myPoint.vue ================================================ ================================================ FILE: pages/mine/set/editionIntro.vue ================================================ ================================================ FILE: pages/mine/set/feedBack.vue ================================================ ================================================ FILE: pages/mine/set/personMsg.vue ================================================ ================================================ FILE: pages/mine/set/securityCenter/bindMobile.vue ================================================ ================================================ FILE: pages/mine/set/securityCenter/editLoginPassword.vue ================================================ ================================================ FILE: pages/mine/set/securityCenter/editPassword.vue ================================================ ================================================ FILE: pages/mine/set/securityCenter/faceLogin.vue ================================================ // TODO 第一版本暂无此功能 后续优化以及更新 ================================================ FILE: pages/mine/set/securityCenter/fingerLogin.vue ================================================ // TODO 第一版本暂无此功能 后续优化以及更新 ================================================ FILE: pages/mine/set/securityCenter/securityCenter.vue ================================================ ================================================ FILE: pages/mine/set/securityCenter/updatePwdTab.vue ================================================ ================================================ FILE: pages/mine/set/setUp.vue ================================================ ================================================ FILE: pages/mine/set/versionFunctionList.vue ================================================ ================================================ FILE: pages/mine/signIn.vue ================================================ ================================================ FILE: pages/navigation/search/search.scss ================================================ .sort-active { border: 1px solid $light-color; color: $light-color; background: $price-light-color !important; } .oldKeyList { display: flex; flex-wrap: wrap; padding: 20rpx 3%; > .oldKeyItem { padding: 4rpx 24rpx; background: #f0f2f5; margin-right: 20rpx; max-width: 200rpx; border-radius: 100px; font-size: 24rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 20rpx; } } .status_bar { height: var(--status-bar-height); background: #fff !important; width: 100%; } page { background-color: #fff !important; } .sort-box { width: 100%; height: 100%; position: relative; background: #f7f7f7; .sort-list { margin: 20rpx 0; background: #fff; border-radius: 20rpx; padding: 30rpx; > .sort-item { > .sort-title { margin: 20rpx 0; font-size: 26rpx; font-weight: bold; } } } } .null-view { height: 140rpx; } .sort-btn { display: flex; position: fixed; bottom: 0; border-top: 1px solid #f7f7f7; height: 100rpx; left: 0; width: 100%; background: #fff; align-items: center; > view { width: 50%; height: 80rpx; line-height: 80rpx; text-align: center; margin: 0 20rpx; border-radius: 1000px; } > .sort-btn-repick { border: 1px solid #ededed; } > .sort-btn-confim { color: #fff; background-image: linear-gradient(90deg, #ff6b35, #ff9f28, #ffcc03); } } .uinput { width: 50% !important; > .sort-radius { height: 70rpx; line-height: 70rpx; font-size: 24rpx; } /deep/ .uni-input-input { font-size: 24rpx; } } .sort-radius { margin: 0 12rpx; background: #f7f7f7; height: 65rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 1000px; font-size: 24rpx; } .flex { flex-wrap: wrap; align-items: center; > .sort-brand-item { width: 33%; text-align: center; margin-bottom: 20rpx; } } .scoll-page { overflow: auto; } .content { background-color: $bg-color; height: 100vh; overflow: hidden; } .index-nav-arrow:last-child { margin-top: -22rpx; } .line1-store-name{ font-size: 24rpx; color: #999; } .to-store{ font-size: 24rpx; color: #333; margin-left: 10rpx; } .img { width: 26rpx; height: 26rpx; } .goods-row { background: #fff; padding: 16rpx; >.goods-col{ display: flex; >.goods-img{ flex: 4; } >.goods-detail{ flex: 7; } } } .add1 { background: #fff; padding: 30rpx 0; } .oldKeyRow { background: #fff; padding: 34rpx 3%; border-bottom: 1px solid #eeeeee; } .clamp3 { margin-bottom: 10rpx; font-size: 28rpx; color: #333333; font-weight: 400; display: -webkit-box; height: 80rpx; -webkit-box-orient: vertical; -webkit-line-clamp: 2 !important; overflow: hidden; > span { line-height: 1.5; } } view { display: block; } .store-seller-name { color: #666; overflow: hidden; > div { float: left; } > span { float: right; } } .count-config { padding: 10rpx 0; color: #666; display: flex; font-size: 24rpx; justify-content: space-between; } .search-box { z-index: 99; width: 100%; background: $light-color; padding: 20rpx 2.5%; display: flex; justify-content: space-between; position: sticky; top: 0; } .search-box .mSearch-input-box { width: 100%; } .search-box .input-box { width: 85%; flex-shrink: 1; display: flex; justify-content: center; align-items: center; } .search-box .search-btn { width: 15%; margin: 0 0 0 2%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; font-size: 28rpx; color: #fff; background: linear-gradient(to right, #ff9801, #ff570a); border-radius: 60rpx; } .search-box .input-box > input { width: 100%; height: 60rpx; font-size: 32rpx; border: 0; border-radius: 60rpx; -webkit-appearance: none; -moz-appearance: none; appearance: none; padding: 0 3%; margin: 0; background-color: #ffffff; } .uni-scroll-view-content { background: #ededed !important; } .placeholder-class { color: #9e9e9e; } .search-keyword { width: 100%; background-color: #ededed; } .keyword-list-box { height: calc(100vh - 110rpx); padding-top: 10rpx; border-radius: 20rpx 20rpx 0 0; background-color: #fff; } .keyword-entry-tap { background-color: #eee; } .keyword-entry { width: 94%; height: 80rpx; margin: 0 3%; font-size: 30rpx; color: #333; display: flex; justify-content: space-between; align-items: center; border-bottom: solid 1rpx #e7e7e7; } .keyword-entry image { width: 60rpx; height: 60rpx; } .keyword-entry .keyword-text, .keyword-entry .keyword-img { height: 80rpx; display: flex; align-items: center; } .keyword-entry .keyword-text { width: 90%; } .keyword-entry .keyword-img { width: 10%; justify-content: center; } .keyword-box { background-color: #fff; } .keyword-box .keyword-block { padding: 10rpx 0; } .keyword-box .keyword-block .keyword-list-header { width: 100%; padding: 20rpx 3%; font-size: 27rpx; color: #333; display: flex; justify-content: space-between; } .keyword-box .keyword-block .keyword-list-header image { width: 40rpx; height: 40rpx; } .keyword-box .keyword-block .keyword > view { width: 50%; line-height: 1.75; overflow: hidden; padding: 0 3% 0 3% !important; } .u-tips { font-size: 30rpx; font-weight: 700; color: #333; } .keyword { display: flex; flex-wrap: wrap; } .keyword-box { position: relative; } .clear { color: #666666; position: fixed; bottom: 0; width: 100%; text-align: center; height: 100rpx; line-height: 100rpx; font-size: 28rpx; background: #f7f7f7; } .keyword-box .keyword-block .hide-hot-tis { display: flex; justify-content: center; font-size: 28rpx; color: #6b6b6b; } .navbar { display: flex; width: 100%; height: 80rpx; background: #fff; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06); z-index: 10; // position: fixed; // left: 0; // top: var(--status-bar-height); .nav-item { flex: 1; display: flex; justify-content: center; align-items: center; height: 100%; font-size: 30rpx; color: $font-color-dark; position: relative; } .current { color: $light-color; position: relative; &:after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 40rpx; height: 0; border-bottom: 4rpx solid $light-color; } } .p-box { display: flex; flex-direction: column; .yticon { display: flex; align-items: center; justify-content: center; width: 30rpx; height: 14rpx; line-height: 1; margin-left: 4rpx; font-size: 26rpx; color: #888; } .xia { transform: scaleY(-1); } } } .status_bar { height: var(--status-bar-height); width: 100%; background: $light-color; } .empty { padding-top: 300rpx; color: #999999; text-align: center; /deep/ .u-image { width: 346rpx; height: 304rpx; } } ================================================ FILE: pages/navigation/search/searchPage.vue ================================================ ================================================ FILE: pages/order/afterSales/afterSales.vue ================================================ ================================================ FILE: pages/order/afterSales/afterSalesDetail.vue ================================================ ================================================ FILE: pages/order/afterSales/afterSalesDetailExpress.vue ================================================ ================================================ FILE: pages/order/afterSales/afterSalesSelect.vue ================================================ ================================================ FILE: pages/order/afterSales/applyDetail.vue ================================================ ================================================ FILE: pages/order/afterSales/applyProgress.vue ================================================ ================================================ FILE: pages/order/afterSales/applySuccess.vue ================================================ ================================================ FILE: pages/order/complain/complain.vue ================================================ ================================================ FILE: pages/order/complain/complainInfo.vue ================================================ ================================================ FILE: pages/order/complain/complainList.vue ================================================ ================================================ FILE: pages/order/deliverDetail.vue ================================================ ================================================ FILE: pages/order/evaluate/evaluateDetail.vue ================================================ ================================================ FILE: pages/order/evaluate/myEvaluate.vue ================================================ ================================================ FILE: pages/order/evaluate/releaseEvaluate.vue ================================================ ================================================ FILE: pages/order/fillorder.vue ================================================ ================================================ FILE: pages/order/goods.scss ================================================ .goods-item-view { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 10rpx 30rpx; .goods-img {flex: 1;} .goods-info { padding-left: 30rpx; flex: 3; .goods-title { margin-bottom: 10rpx; color: $font-color-dark; } .goods-specs { font-size: 24rpx; margin-bottom: 10rpx; color: #cccccc; } .goods-price { font-size: 28rpx; margin-bottom: 10rpx; color: #ff5a10; } } .goods-num { >.good-complaint{ margin-top:10rpx; } text-align: center; flex: 1; width: 60rpx; color: $main-color; } } .seller-view { background-color: #fff; margin: 20rpx 0rpx; .seller-info { height: 70rpx; padding: 0 20rpx; .seller-name { font-size: 33rpx; font-weight: 600; display: flex; width: 100%; flex-direction: row; align-items: center; height: 90rpx; // justify-content: space-between; image { width: 32rpx; height: 30rpx; } .name { margin-left: 15rpx; margin-top: -2rpx; font-size: 28rpx; flex: 1; } .status { font-size: 26rpx; color: #ff6262; } } .order-sn { color: #ff0000; } } .btn-view { // padding: 25rpx 30rpx; margin-bottom: 60rpx; margin-right: 30rpx; .description { color: #909399; size: 25rpx; .price { color: #ff0000; } } .right-btn { float: right; } } } ================================================ FILE: pages/order/invoice/invoiceDetail.vue ================================================ ================================================ FILE: pages/order/invoice/setInvoice.vue ================================================ ================================================ FILE: pages/order/myOrder.vue ================================================ ================================================ FILE: pages/order/orderDetail.vue ================================================ ================================================ FILE: pages/passport/article.vue ================================================ ================================================ FILE: pages/passport/entry/seller/control.vue ================================================ ================================================ FILE: pages/passport/entry/seller/entry.scss ================================================ .flag-title { font-size: 42rpx; font-weight: bold; } .submit, .notice { font-weight: bold; font-size: 28rpx; height: 92rpx; text-align: center; letter-spacing: 4rpx; line-height: 92rpx; border-radius: 20rpx; } .wrapper { padding:16rpx; } ================================================ FILE: pages/passport/entry/seller/index.vue ================================================ ================================================ FILE: pages/passport/entry/seller/step1.vue ================================================ ================================================ FILE: pages/passport/entry/seller/step2.vue ================================================ ================================================ FILE: pages/passport/entry/seller/step3.vue ================================================ ================================================ FILE: pages/passport/login.scss ================================================ .sub-title { font-size: 24rpx; color: #999; } .cell { margin: 40rpx 0; } .login-ball { border-bottom-left-radius: 300rpx; height: 400rpx; position: relative; } /deep/ .u-form-item--right__content__slot { width: 100%; display: block; } .title { font-size: 48rpx; color: #000; text-align: center; } .privacy { font-size: 24upx; color: #999; text-align: center; margin-top: 360rpx; width: 100%; display: flex; justify-content: center; } span { color: $aider-light-color; } .form { padding: 0 72rpx; } .divider { margin: 30rpx 0 !important; } .submit { height: 80rpx; line-height: 80rpx; color: #fff; text-align: center; font-size: 30rpx; border-radius: 100px; } .logo { margin-top: 20rpx; width: 200rpx; height: 200rpx; text-align: center; } .logo-cell { text-align: center; } .text-tips { text-align: center; } .tips { position: absolute; bottom: 10rpx; width: 100%; text-align: center; } ================================================ FILE: pages/passport/login.vue ================================================ ================================================ FILE: pages/passport/scannerCodeLoginConfirm.vue ================================================ ================================================ FILE: pages/passport/wechatH5Login.vue ================================================ ================================================ FILE: pages/passport/wechatMPLogin.vue ================================================ ================================================ FILE: pages/product/askList.vue ================================================ ================================================ FILE: pages/product/comment.vue ================================================ ================================================ FILE: pages/product/customerservice/index.vue ================================================ ================================================ FILE: pages/product/goods.vue ================================================ ================================================ FILE: pages/product/licencePhoto.vue ================================================ ================================================ FILE: pages/product/product/evaluation/-evaluation.vue ================================================ ================================================ FILE: pages/product/product/goods/-goods-desc.vue ================================================ ================================================ FILE: pages/product/product/goods/-goods-intro.vue ================================================ ================================================ FILE: pages/product/product/goods/-goods-recommend.vue ================================================ ================================================ FILE: pages/product/product/goods/-goods-swiper.vue ================================================ ================================================ FILE: pages/product/product/mp-goods.scss ================================================ .showBack { margin-top: calc( var(--status-bar-height) + 20px ) !important; } ================================================ FILE: pages/product/product/popup/address.vue ================================================ ================================================ FILE: pages/product/product/popup/popup.js ================================================ export default { height:"1000rpx", //弹出层高度 mode:"bottom", //弹出层位置 radius:"32", //圆角 rpx, close:true //能否点击遮罩退出 } ================================================ FILE: pages/product/product/product.scss ================================================ .recommend-box, .detail-box, .store-recommend, .store-info, .evaluate-box, .card-box, .group-list { border-radius: 32rpx; padding: 0rpx 32rpx 0 32rpx; background: #fff; overflow: hidden; margin: 20rpx 0; } .goods-recommend-title, .store-recommend-title, .evaluate-title, .group-name { color: #262626; font-size: 30rpx; font-weight: 700; height: 90rpx; line-height: 90rpx; padding-left: 14rpx; position: relative; &::before { background-image: linear-gradient(180deg, $price-color, $price-light-color); content: ""; position: absolute; left: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); width: 3px; height: 15px; } } .scroll_mask { height: 868rpx; // padding-bottom: 100rpx; overflow-y: auto; } .mask { height: 600px; } .card-box { padding-top: 0 !important; } .card-content { padding: 0 40rpx; flex: 8; } .card-flex { display: flex; align-items: center; font-size: 26rpx; padding: 36rpx 0; border-bottom: 2rpx solid #f9f9f9; } .card-title { flex: 1; color: #262626; font-weight: 700; } .down-goods{ font-size: 50rpx !important; } ================================================ FILE: pages/product/product/promotion/-promotion-assemble-list.vue ================================================ ================================================ FILE: pages/product/product/promotion/-promotion-assemble-promotions.vue ================================================ ================================================ FILE: pages/product/product/promotion/-promotion-coupon.vue ================================================ ================================================ FILE: pages/product/product/promotion/-promotion-details.vue ================================================ ================================================ FILE: pages/product/product/promotion/-promotion.vue ================================================ ================================================ FILE: pages/product/product/promotion/README.md ================================================ ### promotion 促销显示 ### promotion-details 促销详情 ### promotion-assemble-promotions 限时抢购,团购活动条 ### promotion-assemble-group 拼团活动条 ### promotion-assemble-list 拼团活动用户列表 ### promotion-coupon 优惠券组件 ================================================ FILE: pages/product/product/promotion/group.scss ================================================ .group-wrapper { background: url("/static/exchange.png"); background-size: cover; } .u-group-row { width: 100%; padding: 0 32rpx; display: flex; height: 100rpx; align-items: center; justify-content: space-between; } .showBox_L { // background: #ff6262; height: 100%; color: #fff; flex: 2; } .flex-price { color: #fff; font-size: 48rpx; } .u-group-flex-left { display: flex; flex-direction: column; } .u-group-flex-left-span { line-height: 1.2; font-size: 32rpx; } .showBox_R { flex: 1; height: 100%; padding: 4rpx 0 !important; background: #ffe7e6 !important; text-align: center !important; } /deep/ .u-mode-light-error { border: none; } .u-group-flex { height: 100%; align-items: center; justify-content: space-between; } .u-group-flex, .u-group-flex-right { display: flex; } .u-group-flex-right { height: 100%; align-items: flex-end; display: flex; flex-direction: column; justify-content: center; } .old-price { color: #fff; text-decoration: line-through; font-size: 22rpx; opacity: 0.8; } .u-group-flex-left { height: 100%; } .group-bag { font-size: 20rpx; padding: 4rpx 20rpx; border-radius: 6rpx; margin-right: 20rpx; } .promotion { font-size: 22rpx; border: 2rpx solid $price-light-color; padding: 2rpx 6rpx; margin-left: 10rpx; line-height: 1; } ================================================ FILE: pages/product/product/promotion/promotion_type.js ================================================ const promotion = [ { title: "积分活动", value: "POINTS_GOODS", }, { title: "砍价活动", value: "KANJIA", }, { title: "单品立减", value: "MINUS", }, { title: "团购", value: "GROUPBUY", }, { title: "积分换购", value: "EXCHANGE", }, { title: "第二件半价", value: "HALF_PRICE", }, { title: "满减优惠", value: "FULL_DISCOUNT", }, { title: "限时抢购", value: "SECKILL", }, { title: "拼团", value: "PINTUAN", }, { title: "优惠券", value: "COUPON", }, ]; export default promotion /**格式化 */ export function formatType(val){ if(val != undefined){ promotion.forEach(item=>{ if(val == item.value){ return item.title } }) } } ================================================ FILE: pages/product/product/shop/-shop.vue ================================================ ================================================ FILE: pages/product/product/style.scss ================================================ .red { color: $price-color; } page { background: #fff; } .num-icon { position: absolute; right: 5rpx; top: 5rpx; padding: 2rpx 6rpx; border-top: 4rpx; border: 2rpx solid $price-color; color: $price-color; font-size: 22rpx; border-radius: 200px; line-height: 18rpx; } .header-title{ font-weight: bold; color: #333; text-align: center; height: 90rpx; line-height: 90rpx; font-size: 34rpx; } .cuxiao-title{ color: #999; font-size: 24rpx; } .cuxiao{ padding:16rpx 32rpx; } .detail-btn { display: flex; align-items: center; > .to-buy { background-image: linear-gradient(135deg, #ffba0d, #ffc30d 69%, #ffcf0d); } > .to-store-car { background-image: linear-gradient(135deg, #f2140c, #f2270c 70%, #f24d0c); } > .to-store-btn { flex: 1; width: 100%; margin: 0 5rpx; height: 80rpx; text-align: center; line-height: 80rpx; color: #fff; font-size: 26rpx; border-radius: 214px; padding: 0; } > .pt-buy { line-height: 1.2; display: flex; align-items: center; flex-direction: column; justify-content: center; font-size: 22rpx; } } .desc-bold { flex: 8; font-weight: 700; color: #262626; line-height: 42rpx; font-size: 32rpx; } .-goods-desc { padding: 36rpx 0 0 0; margin-bottom: 24rpx; font-size: 24rpx; color: #666; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .-goods-flex { display: flex; justify-content: space-between; align-items: center; } .icons,.favorite { flex: 1; font-size: 22rpx; color: #262626; display: flex; flex-direction: column; align-items: center; } .-goods-price { flex: 7; color: $price-color; font-size: 32rpx; line-height: 1; /deep/ .price { font-size: 60rpx; } } .-goods-name { margin-top: 24rpx; } .top-radius-0 { margin-top: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; } .-goods-msg { min-height: 120rpx; margin-top: 24rpx; } .recommend-item { // padding: 0 !important; margin: 20rpx 0rpx; overflow: hidden; border-radius: 12rpx; /deep/ .u-image__image { // width: 228rpx; height: 228rpx; border-radius: 12rpx !important; } } .detail_padding { padding: 12px 20rpx 0 20rpx; > .tips { color: #000; font-size: 30rpx; font-weight: 400; margin-bottom: 28rpx; } } .headerRow { height: 44px; //默认uni navbar就是44px display: flex; align-items: center; width: 100%; // background: #fff !important; > .headerList { flex: 8; } // > div:nth-child(2) { // flex: 1; // .headerList{ // display: flex; // div{ // flex: 1; // } // } // } // > div:nth-child(3) { // width: 100rpx; // } justify-content: space-between; } .scroll-hide { opacity: 0; transition: all 0.5s; } .cur { color: $main-color; } .cur::after { content: ""; height: 6rpx; background: $main-color; width: 100%; position: absolute; bottom: 0; left: 0; } .header-only-back { background: transparent; } .header, .header-only-back { padding-left: 10rpx; position: fixed; top: var(--status-bar-height); width: 100%; z-index: 8; height: 90rpx; font-size: 30rpx; transition: all 0.5s; } /deep/ .u-navbar { padding-left: 10rpx; } .nav-item { flex: 2; position: relative; justify-content: center; height: 100%; display: flex; align-items: center; } .header { color: #666666; background-color: #fff; .tab-bar { width: 100%; color: #666; font-weight: 400; view { padding: 0 3px; } } &.bg-none { background: transparent; } } .page-bottom { position: fixed; bottom: 0; left: 0; z-index: 9; background: #fff; height: 100rpx; width: 100%; display: flex; border-top: 2rpx solid #f2f2f2; box-sizing: border-box; > .icon-btn { display: flex; align-items: center; flex: 1; > .icon-btn-item { flex: 1; position: relative; text-align: center; font-size: 22rpx; color: #262626; display: flex; flex-direction: column; width: 100%; height: 100%; align-items: center; justify-content: center; > .icon-btn-name { margin: 4rpx 0; } } } > .detail-btn { flex: 1.5; } } .main-page { height: calc(100% - var(--status-bar-height)); overflow: hidden; } .icon-back { padding-right: 10rpx; } .icon-list { border-left: 2rpx solid rgb(194, 194, 194); padding-left: 10rpx; } .backs, .bg-back { width: 150rpx; border: 2rpx solid #e8e8e8; border-radius: 100px; display: flex; align-items: center; justify-content: center; padding: 8rpx 0; } .bg-back { background: rgba($color: #fff, $alpha: 0.8); } .backs { text-align: center; font-size: 42rpx; } .headerImg { width: 50rpx; height: 50rpx; vertical-align: middle; } .shareImg { width: 36rpx; height: 36rpx; vertical-align: middle; } .item-spec-value { box-sizing: border-box; margin: 10rpx; padding: 10rpx 20rpx; float: left; } .item-spec-value { background: #ededed; } page { background: #f0f0f0; height: 100%; } .product-container { .header-line { height: 1px; background: #f2f2f2; position: fixed; top: 90rpx; left: 0; right: 0; z-index: 999; transition: all 0.5s; &.scroll-hide { background: none; } } .scroll-page { width: 100%; height: 100%; } } .u-mode-light-error { border: none; } .showBack { height: 60rpx; line-height: 60rpx; position: fixed; margin-top: calc(10px); z-index: 8; width: 100%; /deep/ .u-row { width: 100%; } } .showBox { width: 100%; height: 90rpx; background: #ff6262; color: #fff; padding: 0 20rpx; /deep/ .price { font-size: 36rpx; font-weight: 400; text-align: left; letter-spacing: 1px; color: #ffffff; line-height: 90rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } .status_bar { background: #fff; height: var(--status-bar-height); } ================================================ FILE: pages/product/shopList.vue ================================================ ================================================ FILE: pages/product/shopPage.vue ================================================ ================================================ FILE: pages/product/shopPageGoods.vue ================================================ ================================================ FILE: pages/promotion/bargain/detail.vue ================================================ ================================================ FILE: pages/promotion/bargain/list.vue ================================================ ================================================ FILE: pages/promotion/bargain/log.vue ================================================ ================================================ FILE: pages/promotion/joinGroup.vue ================================================ ================================================ FILE: pages/promotion/lives.vue ================================================ ================================================ FILE: pages/promotion/point/detail.vue ================================================ ================================================ FILE: pages/promotion/point/pointList.vue ================================================ ================================================ FILE: pages/promotion/point/user.vue ================================================ ================================================ FILE: pages/promotion/seckill.vue ================================================ ================================================ FILE: pages/promotion/style.scss ================================================ .view-item { background: #fff; border-radius: 0.4em; margin: 20rpx 30rpx; padding: 20rpx 0; } .nodata { text-align: center; margin: 40rpx 0 20rpx 0; } .container-wrap { width: 100%; } .white_class { color: #fff; font-size: 28rpx; } .popupTips { font-size: 22rpx; font-family: PingFang SC, PingFang SC-Regular; font-weight: 400; text-align: left; color: #999999; margin: 0 20rpx; /deep/ view { line-height: 1.75; } } .search { margin: 30rpx 20rpx !important; } .view-left, .view-content, .view-right, .view-item { display: flex; } .wrapper { width: 100%; overflow: hidden; } .view-left { width: 226rpx; height: 100%; overflow: hidden; display: flex; justify-content: center; } .view-content { width: calc((100% - 240rpx)); padding-left: 20rpx; flex-direction: column; justify-content: center; text-align: center; } .buy-content { font-size: 22rpx; font-family: PingFang SC, PingFang SC-Regular; font-weight: 400; margin-top: 15rpx; text-align: center; color: #999999; } .view-content-bottom { width: 100%; display: flex; justify-content: space-between; align-items: center; } .group-wrapper { padding: 16rpx 32rpx; } .view-content-name { font-family: PingFang SC, PingFang SC-Regular; font-weight: 400; text-align: left; color: #333333; font-size: 28rpx; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .view-content-price { margin: 10rpx 0; letter-spacing: 0px; overflow: hidden; font-size: 28rpx; font-family: PingFang SC, PingFang SC-Regular; font-weight: 400; text-align: left; color: #ff5a10; text-overflow: ellipsis; white-space: nowrap; } .view-content-original_price { font-size: 22rpx; font-family: PingFang SC, PingFang SC-Regular; font-weight: 400; text-decoration: line-through; text-align: left; color: #999999; } .btn-group { background: $aider-light-color; border-radius: 10rpx; font-size: 24rpx; font-family: PingFang SC, PingFang SC-Regular; font-weight: 400; color: #fff; text-align: center; padding: 6rpx 16rpx; } /deep/ .empty { position: relative; padding-top: 20%; > .empty-content { position: relative; padding-top: 20%; } } ================================================ FILE: pages/tabbar/cart/cart.scss ================================================ ================================================ FILE: pages/tabbar/cart/cartList.vue ================================================ ================================================ FILE: pages/tabbar/cart/mp-carui.scss ================================================ .box2 { padding: 0 16rpx 0; margin: 0 16rpx 20rpx; } .uNumber{ display: flex; } ================================================ FILE: pages/tabbar/category/category.vue ================================================ ================================================ FILE: pages/tabbar/home/index.vue ================================================ ================================================ FILE: pages/tabbar/home/template/advertising.scss ================================================ .position-box{ position: absolute; right: 0; bottom: 0; } .join-box { display: flex; } .item-price { > span { font-size: 15px; font-weight: 500; color: #e1212b; } } .join-item { flex: 1; } .item-img { width: 75px; height: 75px; margin: 0 auto; display: block; } .item-img-box { position: relative; } .item-line-through { > span { font-size: 10px; font-weight: 400; text-decoration: line-through; color: #999; } } .item-position-tips { position: absolute; right: 0; color: #fff; font-size: 12px; bottom: 0; } .join-title { display: flex; justify-content: space-between; align-items: center; background: #fff; height: 50px; > div:nth-of-type(1) { font-size: 16px; font-weight: bold; } > div:nth-of-type(2) { font-size: 12px; color: #999; } } ================================================ FILE: pages/tabbar/home/template/fetch_coupon.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl.js ================================================ /** 配置楼层模块的跳转 */ export function modelNavigateTo(item) { let val = item.url || item; //链接跳转到专题 if (val && val.id && val.pageType == "special") { uni.navigateTo({ url: `/pages/tabbar/special/special?id=${val.id}`, }); } switch (val.___type || val.type) { case "goods": uni.navigateTo({ url: "/pages/product/goods?id=" + val.id + "&goodsId=" + val.goodsId, }); break; case "category": if (val.id) { uni.navigateTo({ url: `/pages/navigation/search/searchPage?category=${val.id}`, }); } else { uni.navigateTo({ url: `/pages/navigation/search/searchPage`, }); } break; case "shops": uni.navigateTo({ url: `/pages/product/shopPage?id=${val.id}`, }); break; // 活动 case "marketing": switch (val.___promotion) { // 积分商品 case "POINTS_GOODS": uni.navigateTo({ url: `/pages/promotion/point/detail?id=${val.promotionId}`, }); break; // 砍价 case "KANJIA": uni.navigateTo({ url: `/pages/promotion/bargain/detail?id=${val.promotionId}`, }); break; // 优惠券商品 case "COUPON": uni.navigateTo({ url: "/pages/product/goods?id=" + val.skuId + "&goodsId=" + val.goodsId, }); break; // 满减商品 case "FULL_DISCOUNT": uni.navigateTo({ url: "/pages/product/goods?id=" + val.skuId + "&goodsId=" + val.goodsId, }); break; // 秒杀频道 case "SECKILL": uni.navigateTo({ url: "/pages/product/goods?id=" + val.skuId + "&goodsId=" + val.goodsId, }); break; } break; case "pages": uni.navigateTo({ url: val.___path + "?id=" + val.id + "&title=" + val.title, }); break; case "other": switch (val.title || item.title) { case "首页": uni.switchTab({ url: `/pages/tabbar/home/index`, }); break; case "购物车": uni.switchTab({ url: `/pages/tabbar/cart/cartList`, }); return; case "个人中心": uni.switchTab({ url: `/pages/tabbar/user/my`, }); break; case "收藏商品": uni.navigateTo({ url: `/pages/mine/myCollect`, }); break; case "我的订单": uni.navigateTo({ url: `/pages/order/myOrder?status=0`, }); break; case "领券中心": uni.navigateTo({ url: `/pages/cart/coupon/couponCenter`, }); break; case "签到": uni.navigateTo({ url: `/pages/mine/signIn`, }); break; case "秒杀频道": uni.navigateTo({ url: `/pages/promotion/seckill`, }); break; case "拼团频道": uni.navigateTo({ url: `/pages/promotion/joinGroup`, }); break; case "小程序直播": uni.navigateTo({ url: `/pages/promotion/lives`, }); break; case "砍价": uni.navigateTo({ url: `/pages/promotion/bargain/list`, }); break; case "积分商城": uni.navigateTo({ url: `/pages/promotion/point/pointList`, }); break; case "店铺列表": uni.navigateTo({ url: `/pages/product/shopList`, }); break; default: // #ifdef H5 window.location.href = val.url || item.link; // #endif // #ifdef APP-PLUS plus.runtime.openURL(val.url || item.link) //不需要拼接\ // #endif break; } break; } } import config from "@/config/config"; async function scan() { // #ifdef APP-PLUS let isIos = plus.os.name == "iOS"; // 判断是否是Ios if (isIos) { const iosFirstCamera = uni.getStorageSync("iosFirstCamera"); //是不是第一次开启相机 if (iosFirstCamera !== "false") { uni.setStorageSync("iosFirstCamera", "false"); //设为false就代表不是第一次开启相机 seacnCode(); } else { if (permision.judgeIosPermission("camera")) { seacnCode(); } else { // 没有权限提醒是否去申请权限 tipsGetSettings(); } } } else { /** * TODO 安卓 权限已经授权了,调用api总是显示用户已永久拒绝申请。人傻了 * TODO 如果xdm有更好的办法请在 https://gitee.com/beijing_hongye_huicheng/lilishop/issues 提下谢谢 */ seacnCode(); } // #endif // #ifdef MP-WEIXIN seacnCode(); // #endif } /** * 提示获取权限 */ function tipsGetSettings() { uni.showModal({ title: "提示", content: "您已经关闭相机权限,去设置", success: function (res) { if (res.confirm) { if (isIos) { plus.runtime.openURL("app-settings:"); } else { permision.gotoAppPermissionSetting(); } } }, }); } function seacnCode() { uni.scanCode({ success: function (res) { let path = encodeURIComponent(res.result); // WX_CODE 为小程序码 if (res.scanType == "WX_CODE") { console.log(res); uni.navigateTo({ url: `/${res.path}`, }); } else { config.scanAuthNavigation.forEach((src) => { if (res.result.indexOf(src) != -1) { uni.navigateTo({ url: `/${res.result.substring(src.length)}`, }); } else { setTimeout(() => { uni.navigateTo({ url: "/pages/tabbar/home/web-view?src=" + path, }); }, 100); } }); } }, }); } ================================================ FILE: pages/tabbar/home/template/tpl.scss ================================================ .image-mode { width: 100%; height: 100%; display: block; padding: 2rpx; } .layout { padding: 16rpx; margin: 8rpx 0; background: #fff; } .layout, .view-height-75, .view-height-150 { overflow: hidden; } .view-width-100 { width: 100%; } .view-height-75 { // height: 150rpx; } .view-height-150 { // height: 300rpx; flex: 1; } .view-height-85 { height: 170rpx; flex: 1; } ================================================ FILE: pages/tabbar/home/template/tpl_banner.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_flex_five.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_flex_four.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_flex_one.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_flex_three.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_flex_two.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_goods.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_group.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_hot_zone.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_integral.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_join_group.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_left_one_right_two.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_left_two_right_one.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_menu.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_notice.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_promotions_detail.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_search.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_spike.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_text_picture.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_title.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_top_one_bottom_two.vue ================================================ ================================================ FILE: pages/tabbar/home/template/tpl_top_two_bottom_one.vue ================================================ ================================================ FILE: pages/tabbar/home/title.vue ================================================ ================================================ FILE: pages/tabbar/home/views.vue ================================================ ================================================ FILE: pages/tabbar/home/web-view.vue ================================================ ================================================ FILE: pages/tabbar/screen/fullScreen.vue ================================================ ================================================ FILE: pages/tabbar/special/special.vue ================================================ ================================================ FILE: pages/tabbar/user/my.vue ================================================ ================================================ FILE: pages/tabbar/user/similarGoods.vue ================================================ ================================================ FILE: pages/tabbar/user/utils/tool.vue ================================================ ================================================ FILE: pages.json ================================================ { "easycom": { "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" }, "pages": [ { "path": "pages/tabbar/home/index", "style": { "navigationBarTitleText": "首页", "navigationStyle": "custom", // 隐藏系统导航栏 "navigationBarTextStyle": "black", "enablePullDownRefresh":true } }, { "path":"pages/tabbar/screen/fullScreen", "style": { "navigationStyle": "custom", // 隐藏系统导航栏 "app-plus":{ "animationType": "fade-in", // 设置fade-in淡入动画,为最合理的动画类型 "background": "transparent", // 背景透明 "backgroundColor": "rgba(0,0,0,0)", // 背景透明 "popGesture": "none" // 关闭IOS屏幕左边滑动关闭当前页面的功能 } } }, { "path": "pages/tabbar/home/title", "style": { "navigationBarTitleText": "消息" } }, { "path": "pages/tabbar/cart/cartList", "style": { "navigationBarTitleText": "购物车", "navigationStyle": "custom", // 隐藏系统导航栏 "navigationBarBackgroundColor": "#fff", "enablePullDownRefresh":true //实现下拉刷新样式 } }, { "path": "pages/tabbar/category/category", "style": { "navigationBarTitleText": "分类", "navigationStyle": "custom", // 隐藏系统导航栏 "navigationBarTextStyle": "black", "disableScroll": true, "bounce": "none", "scrollIndicator": "none" } }, { "path": "pages/navigation/search/searchPage", "style": { "navigationBarTitleText": "搜索", "navigationStyle": "custom", "app-plus": { //app页面不显示滚动条 "scrollIndicator": "none", "bottom": "0", "contentAdjust": "false", "bounce": "none", "safearea": { "bottom": "none" } } } }, { "path": "pages/tabbar/user/my", "style": { "navigationBarTextStyle": "white", "enablePullDownRefresh": true, "navigationStyle": "custom" } }, { "path": "pages/tabbar/home/web-view", "style": { } }, { "path": "pages/tabbar/special/special", "style": { "navigationBarTitleText": "专题" } } ], "subPackages": [ { "root": "pages/mine", "pages": [ { "path": "signIn", "style": { "navigationBarTitleText": "签到" } }, { "path": "myTracks", "style": { "navigationBarTitleText": "我的足迹", "enablePullDownRefresh": true, "navigationStyle": "custom" } }, { "path": "myCollect", "style": { "navigationBarTitleText": "收藏", "enablePullDownRefresh": true, //下拉刷新 "navigationStyle": "custom", "app-plus": { "scrollIndicator": "none" } } }, { "path": "distribution/list", "style": { "navigationBarTitleText": "推广分佣", "app-plus": { //app页面不显示滚动条 "scrollIndicator": "none" } } }, { "path": "distribution/withdrawal", "style": { "navigationBarTitleText": "提现", "app-plus": { //app页面不显示滚动条 "scrollIndicator": "none" } } }, { "path": "distribution/join", "style": { "navigationBarTitleText": "推广资格申请", "navigationBarTextStyle": "black", "app-plus": { //app页面不显示滚动条 "scrollIndicator": "none" } } }, { "path": "distribution/history", "style": { "navigationBarTitleText": "提现历史" } }, { "path": "distribution/auth", "style": { "navigationBarTitleText": "会员实名认证" } }, { "path": "distribution/achievement", "style": { "navigationBarTitleText": "我的分销业绩" } }, { "path": "distribution/home", "style": { "navigationBarTitleText": "推广分佣" } }, { "path": "deposit/index", "style": { "navigationStyle": "custom" } }, { "path": "deposit/operation", "style": { "navigationStyle": "custom" } }, { "path": "deposit/recharge", "style": { "navigationBarTitleText": "充值金额" } }, { "path": "deposit/withdrawal", "style": { "navigationBarTitleText": "提现金额" } }, { "path": "deposit/info", "style": { "navigationBarTitleText": "预存款详情" } }, { "path": "address/address", "style": { "enablePullDownRefresh": true, "navigationBarTitleText": "地址管理" } }, { "path": "address/storeAddress", "style": { "enablePullDownRefresh": true, "navigationBarTitleText": "自提点" } }, { "path": "address/add", "style": { "navigationBarTitleText": "收货人" } }, { "path": "address/addressManage", "style": { "navigationBarTitleText": "地址管理" } }, { "path": "set/versionFunctionList", "style": { "navigationBarTitleText": "功能介绍" } }, { "path": "set/securityCenter/fingerLogin", "style": { "navigationBarTitleText": "指纹登录" } }, { "path": "set/securityCenter/faceLogin", "style": { "navigationBarTitleText": "面容登录" } }, { "path": "set/securityCenter/editPassword", "style": { "navigationBarTitleText": "修改密码", "app-plus": { } } }, { "path": "set/securityCenter/bindMobile", "style": { "navigationBarTitleText": "绑定手机号", "app-plus": { } } }, { "path": "im/list", "style": { "navigationStyle": "custom", // 隐藏系统导航栏 "enablePullDownRefresh": true, "app-plus": { } } }, { "path": "im/index", "style": { "navigationStyle": "custom", // 隐藏系统导航栏 "enablePullDownRefresh": true, "app-plus": { } } }, { "path": "set/feedBack", "style": { "navigationBarTitleText": "意见反馈" } }, { "path": "set/securityCenter/updatePwdTab", "style": { "navigationBarTitleText": "修改密码" } }, { "path": "set/securityCenter/editLoginPassword", "style": { "navigationBarTitleText": "修改密码" } }, { "path": "set/securityCenter/securityCenter", "style": { "navigationBarTitleText": "安全中心" } }, { "path": "set/editionIntro", "style": { "navigationBarTitleText": "关于我们" } }, { "path": "set/setUp", "style": { "navigationBarTitleText": "设置" } }, { "path": "set/personMsg", "style": { "navigationBarTitleText": "个人信息", "app-plus": { "titleNView": { "padding-right": "12", "buttons": [{ "text": "保存", "fontSize": "16", "width": "auto", "color": "#FFFFFF" }] } } } }, { "path": "help/tips", "style": { "navigationBarTitleText": "" } }, { "path": "point/myPoint", "style": { "navigationBarTitleText": "我的积分" } }, { "path": "msgTips/main", "style": { "navigationBarTitleText": "消息中心" } }, { "path": "msgTips/sysMsg/index", "style": { "navigationBarTitleText": "系统消息" } }, { "path": "msgTips/serviceMsg/index", "style": { "navigationBarTitleText": "客服记录" } }, { "path": "msgTips/packageMsg/index", "style": { "navigationBarTitleText": "物流消息" } }, { "path": "msgTips/packageMsg/logisticsDetail", "style": { "navigationBarTitleText": "订单跟踪" } } ] }, { "root": "pages/product", "pages": [{ "path": "shopPage", "style": { "navigationBarTitleText": "", "navigationStyle": "custom" } },{ "path": "shopList", "style": { "navigationBarTitleText": "", "navigationStyle": "custom" } },{ "path": "licencePhoto", "style": { "navigationBarTitleText": "营业执照" } },{ "path": "shopPageGoods", "style": { "navigationBarTitleText": "", "navigationStyle": "custom" } }, { "path": "goods", "style": { "backgroundColor": "#fff", "navigationStyle": "custom", "app-plus": { // 将回弹属性关掉 "bounce": "none", // 禁止页面滚动 "scrollIndicator": "none", "safearea": { "bottom": { "offset": "none" } } } } }, { "path": "askList", "style": { "navigationBarTitleText": "问答专区" } }, { //商品评价 "path": "comment", "navigationStyle": "custom", "style": { "navigationBarTitleText": "商品评价", //app页面不显示滚动条 "scrollIndicator": "none" } }, { // 客服 "path": "customerservice/index", "style": { "navigationBarTitleText": "客服", "usingComponents": { // #ifdef MP-WEIXIN "chat": "plugin://myPlugin/chat" // #endif } } } ] }, { "root": "pages/floor", "pages": [{ "path": "empty" }] }, { "root": "pages/passport", "pages": [{ "path": "login", "style": { "navigationBarTitleText": "", "navigationStyle": "custom", "app-plus": { "titleNView": false, "animationType": "slide-in-bottom", "scrollIndicator": "none", "safearea": { "bottom": { "offset": "none" } } } } }, { "path": "entry/seller/index", "style": { "navigationBarTitleText": "店铺入驻", "navigationStyle": "custom" } }, { "path": "entry/seller/control", "style": { "navigationBarTitleText": "", "navigationStyle": "custom" } }, { "path": "article", "style": { "navigationBarTitleText": "文章" } }, { "path": "wechatMPLogin", "style": { "navigationBarTitleText": "小程序登录", "navigationStyle": "custom", "navigationBarTextStyle": "black" } }, { "path": "scannerCodeLoginConfirm", "style": { "navigationBarTitleText": "扫码登录", "navigationStyle": "custom", "navigationBarTextStyle": "black" } } ] }, { "root": "pages/promotion", "pages": [ { "path": "seckill", "style": { "navigationBarTitleText": "限时抢购", "navigationStyle": "custom", // 隐藏系统导航栏 "navigationBarTextStyle": "black" , "app-plus": { "titleNView": { "homeButton":true } } } }, { "path": "joinGroup", "style": { "navigationBarTitleText": "拼团活动", "navigationStyle": "custom", // 隐藏系统导航栏 "navigationBarTextStyle": "black" , "app-plus": { // 将回弹属性关掉 "bounce": "none" } } },{ "path": "lives", "style": { "navigationStyle": "custom", "navigationBarTextStyle": "black" } },{ "path": "bargain/list", "style": { "navigationStyle": "custom", "navigationBarTextStyle": "white" } },{ "path": "bargain/detail", "style": { "navigationStyle": "custom", "navigationBarTextStyle": "white" } },{ "path": "bargain/log", "style": { "navigationBarTitleText": "砍价记录" } },{ "path": "point/detail", "style": { "navigationStyle": "custom", "navigationBarTextStyle": "white" } },{ "path": "point/pointList", "style": { "navigationBarTitleText": "积分商城" } } ] }, { "root": "pages/cart", "pages": [{ "path": "coupon/myCoupon", "style": { "navigationBarTitleText": "我的优惠券", "app-plus": { "bounce": "coupon/none" } } }, { "path": "coupon/couponDetail", "style": { "navigationBarTitleText": "优惠券详情" } }, { "path": "coupon/index", "style": { "navigationBarTitleText": "优惠券" } }, { "path": "coupon/couponCenter", "style": { "navigationBarTitleText": "领券中心", "enablePullDownRefresh": true } }, { "path": "payment/payOrder", "style": { "navigationBarTitleText": "支付订单", "app-plus": { "popGesture": "none" //禁止侧滑退出 } } }, { "path": "payment/success", "style": { "navigationBarTitleText": "支付成功", "navigationStyle": "custom", // 隐藏系统导航栏 "navigationBarTextStyle": "white", "app-plus": { "popGesture": "none", //禁止侧滑退出 "titleNView": false } } }, { "path": "payment/shareOrderGoods", "style": { "navigationBarTitleText": "", "app-plus": { } } } ] }, { "root": "pages/order", "pages": [{ "path": "complain/complain", "style": { "navigationBarTitleText": "订单商品投诉" } }, { "path": "complain/complainInfo", "style": { "navigationBarTitleText": "投诉详情" } }, { "path": "complain/complainList", "style": { "navigationBarTitleText": "投诉列表" } }, { "path": "myOrder", "style": { "navigationBarTitleText": "我的订单", "enablePullDownRefresh": true, "app-plus": { "bounce": "none" } } }, { "path": "invoice/invoiceDetail", "style": { "navigationBarTitleText": "发票详情" } }, { "path": "orderDetail", "style": { "navigationBarTitleText": "订单详情" } }, { "path": "deliverDetail", "style": { "navigationBarTitleText": "物流详情" } }, { "path": "evaluate/evaluateDetail", "style": { "navigationBarTitleText": "评价详情" } }, { "path": "evaluate/releaseEvaluate", "style": { "navigationBarTitleText": "发布评价" } }, { "path": "evaluate/myEvaluate", "style": { "navigationBarTitleText": "我的评价" } }, { "path": "afterSales/applyProgress", "style": { "navigationBarTitleText": "售后服务" } }, { "path": "afterSales/applyDetail", "style": { "navigationBarTitleText": "售后服务" } }, { "path": "afterSales/applySuccess", "style": { "navigationBarTitleText": "提交成功", "app-plus": { "bounce": "none", "titleNView": { "titleColor": "#FFFFFF", "buttons": [{ "text": "完成", "fontSize": "14", "color": "#FFFFFF", "width": "36px" // "background": "rgba(0,0,0,0)" }] } } } }, { "path": "afterSales/afterSalesDetailExpress" }, { "path": "afterSales/afterSalesSelect", "style": { "navigationBarTitleText": "申请售后" } }, { "path": "afterSales/afterSalesDetail", "style": { "navigationBarTitleText": "申请售后" } }, { "path": "afterSales/afterSales", "style": { "navigationBarTitleText": "售后管理", "enablePullDownRefresh": true } }, { "path": "fillorder", "style": { "navigationBarTitleText": "填写订单" } } ] } ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "Lili商城", "titleColor": "#303133", "navigationBarBackgroundColor": "#fff", "backgroundColor": "#fff", "color": "#FFFFFF", "app-plus": { // 全局关闭回弹功能 "bounce": "none" } }, "tabBar": { "color": "#666", "selectedColor": "#ff573e", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [{ "pagePath": "pages/tabbar/home/index", "iconPath": "static/tabbar/home.png", "selectedIconPath": "static/tabbar/home-s.png", "text": "首页" }, { "pagePath": "pages/tabbar/category/category", "iconPath": "static/tabbar/category.png", "selectedIconPath": "static/tabbar/category-s.png", "text": "分类" }, { "pagePath": "pages/tabbar/cart/cartList", "iconPath": "static/tabbar/cart.png", "selectedIconPath": "static/tabbar/cart-s.png", "text": "购物车" }, { "pagePath": "pages/tabbar/user/my", "iconPath": "static/tabbar/mine.png", "selectedIconPath": "static/tabbar/mine-s.png", "text": "我的" } ] }, // #todo 为什么要注释condition下代码? // IOS plus.runtime.arguments 添加 condition节点后, 框架会修改 runtime.arguments // 会影响什么功能? // -在h5中唤醒app会一直返回默认值 {"name":"","path":"","query":"","id":0} "condition": { //模式配置,仅开发期间生效 // "current": 0, //当前激活的模式(list 的索引项) // "list": [{ // "name": "", //模式名称 // "path":"", //启动页面,必选 // "query": "" //启动参数,在页面的onLoad函数里面得到 // }] } } ================================================ FILE: plugins/APPUpdate/APPUpdate.md ================================================ # APP版本更新、强制更新、漂亮的更新界面、IOS更新(跳转IOS store)、wgt更新 ### QQ交流群(学习干货多多) 607391225 ![QQ交流群](http://qn.kemean.cn//upload/202004/14/15868301778472k7oubi6.png) # [点击跳转-插件示例](https://ext.dcloud.net.cn/plugin?id=2009) # [点击跳转-5年的web前端开源的uni-app快速开发模板-下载看文档](https://ext.dcloud.net.cn/plugin?id=2009) ### 常见问题 1.安卓apk下载完成后没有更新APP? 答:问题是因为没有添加APP安装应用的权限,解决方法在`manifest.json`文件里面`APP模块权限配置`的`Android打包权限配置`勾选以下权限 ``` ``` 若还有问题请看[安装apk无法执行的解决方案](https://ask.dcloud.net.cn/article/35703 "安装apk无法执行的解决方案") 2.APP更新后版本号没变,还是之前的版本号? 答:可能是更新的安装包没有升级版本号,`manifest.json`文件里面基本设置`应用版本号`和`应用版本名称`需要升高 3.APP更新后没有覆盖之前的APP? 答:可能是更新的安装包`包名`和APP的`包名`不一样 ### 第一步配置APP更新接口 在`APPUpdate.js`里面`getServerNo`函数方法配置更新接口 ``` let httpData = { version:version }; if (platform == "android") { httpData.type = 1101; } else { httpData.type = 1102; } /* 接口入参说明 * version: 应用当前版本号(已自动获取) * type:平台(1101是安卓,1102是IOS) */ // 可以用自己项目的请求方法 $http.get("api/kemean/aid/app_version", httpData).then(res => { /*接口出参说明 (res数据说明) * | 参数名称 | 一定返回 | 类型 | 描述 * | -------------|--------- | --------- | ------------- | * | versionCode | y | int | 版本号 | * | versionName | y | String | 版本名称 | * | versionInfo | y | String | 版本信息 \n 换行(例如:1.修改了bug1 \n 2.修改了bug2 \n 3.修改了bug3) | * | forceUpdate | y | boolean | 是否强制更新 | * | downloadUrl | y | String | 版本下载链接 `IOS安装包更新请放跳转store应用商店链接,安卓apk和wgt文件放文件下载链接` | */ // 只要callback上面的数据就ok(返回数据就表示接口允许更新) // 示例返回数据 callback && callback({ versionCode: 101, versionName: "1.0.1", versionInfo: "1.修改了bug1 \n 2.修改了bug2 \n 3.修改了bug3", forceUpdate: false, downloadUrl: "http://www.xxx.com/download/123", }); }); ``` ### 第二步 使用方法 ``` // App.vue页面 // #ifdef APP-PLUS import APPUpdate from "@/plugins/APPUpdate"; // #endif onLaunch: function(e) { // #ifdef APP-PLUS APPUpdate(); // #endif } ``` ### 第三步 添加APP安装应用的权限 在`manifest.json`文件里面`APP模块权限配置`的`Android打包权限配置`勾选以下权限 ``` ``` ### 修改弹窗的主题色或弹窗图标 在`APPUpdate.js`里面上面`$mainColor`常量中定义主题颜色,`$iconUrl`常量中定义图标地址 ### 检查APP是否有新版本(一般在设置页面使用) ``` // #ifdef APP-PLUS import APPUpdate, { getCurrentNo } from "@/plugins/APPUpdate"; // #endif export default { data() { return { version: "" // 版本号 }; }, //第一次加载 onLoad(e) { // #ifdef APP-PLUS getCurrentNo(res => { // 进页面获取当前APP版本号(用于页面显示) this.version = res.version; }); // #endif }, //方法 methods: { // 检查APP是否有新版本 onAPPUpdate() { // true 没有新版本的时候有提示,默认:false APPUpdate(true); } } } ``` ================================================ FILE: plugins/APPUpdate/index.js ================================================ // #ifdef APP-PLUS /**** 此文件说明请看注释 *****/ // 可以用自己项目的请求方法 // 请求配置说明:https://ext.dcloud.net.cn/plugin?id=822 import { getAppVersion } from "@/api/message.js"; const platform = uni.getSystemInfoSync().platform; // 主颜色 const $mainColor = "#1ABC9C"; // 弹窗图标url const $iconUrl = "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/app/upgrade.png"; // 获取当前应用的版本号 export const getCurrentNo = function (callback) { // 获取本地应用资源版本号 plus.runtime.getProperty(plus.runtime.appid, function (inf) { callback && callback({ versionCode: inf.version.replace(/\./g, ""), version: inf.version, }); }); }; // 发起ajax请求获取服务端版本号 export const getServerNo = function (callback) { let type; platform == "android" ? (type = "ANDROID") : (type = "IOS"); getAppVersion(type).then((res) => { if (res.data.success && res.data.result.downloadUrl) { let response = res.data.result; let result = {}; result.versionCode = response.version; result.versionName = response.versionName; result.versionInfo = response.content || "暂无"; result.forceUpdate = response.forceUpdate; result.downloadUrl = response.downloadUrl; callback && callback(result); } }); }; // 从服务器下载应用资源包(wgt文件) export const getDownload = function (data) { let popupData = { progress: true, buttonNum: 2, }; if (data.forceUpdate) { popupData.buttonNum = 0; popupData.forceUpdate = data.forceUpdate; } let dtask; let lastProgressValue = 0; downloadPopup( popupData, function (res) { dtask = plus.downloader.createDownload( data.downloadUrl, { filename: "_doc/update/", }, function (download, status) { if (status == 200) { res.change({ progressValue: 100, progressTip: "正在安装文件...", progress: true, buttonNum: 0, }); plus.runtime.install( download.filename, {}, function () { res.change({ contentText: "应用资源更新完成!", buttonNum: 1, progress: false, }); }, function (e) { res.cancel(); plus.nativeUI.alert( "安装文件失败[" + e.code + "]:" + e.message ); } ); } else { res.change({ contentText: "文件下载失败...", buttonNum: 1, progress: false, }); } } ); dtask.start(); dtask.addEventListener("statechanged", function (task, status) { switch (task.state) { case 1: // 开始 res.change({ progressValue: 0, progressTip: "准备下载...", progress: true, }); break; case 2: // 已连接到服务器 res.change({ progressValue: 0, progressTip: "开始下载...", progress: true, }); break; case 3: const progress = parseInt( (task.downloadedSize / task.totalSize) * 100 ); if (progress - lastProgressValue >= 2) { lastProgressValue = progress; res.change({ progressValue: progress, progressTip: "已下载" + progress + "%", progress: true, }); } break; } }); }, function () { // 取消下载 dtask && dtask.abort(); uni.showToast({ title: "已取消下载", icon: "none", }); }, function () { // 重启APP plus.runtime.restart(); } ); }; // 文字换行 function drawtext(text, maxWidth) { let textArr = text.split(""); let len = textArr.length; // 上个节点 let previousNode = 0; // 记录节点宽度 let nodeWidth = 0; // 文本换行数组 let rowText = []; // 如果是字母,侧保存长度 let letterWidth = 0; // 汉字宽度 let chineseWidth = 14; // otherFont宽度 let otherWidth = 7; for (let i = 0; i < len; i++) { if (/[\u4e00-\u9fa5]|[\uFE30-\uFFA0]/g.test(textArr[i])) { if (letterWidth > 0) { if (nodeWidth + chineseWidth + letterWidth * otherWidth > maxWidth) { rowText.push({ type: "text", content: text.substring(previousNode, i), }); previousNode = i; nodeWidth = chineseWidth; letterWidth = 0; } else { nodeWidth += chineseWidth + letterWidth * otherWidth; letterWidth = 0; } } else { if (nodeWidth + chineseWidth > maxWidth) { rowText.push({ type: "text", content: text.substring(previousNode, i), }); previousNode = i; nodeWidth = chineseWidth; } else { nodeWidth += chineseWidth; } } } else { if (/\n/g.test(textArr[i])) { rowText.push({ type: "break", content: text.substring(previousNode, i), }); previousNode = i + 1; nodeWidth = 0; letterWidth = 0; } else if (textArr[i] == "\\" && textArr[i + 1] == "n") { rowText.push({ type: "break", content: text.substring(previousNode, i), }); previousNode = i + 2; nodeWidth = 0; letterWidth = 0; } else if (/[a-zA-Z0-9]/g.test(textArr[i])) { letterWidth += 1; if (nodeWidth + letterWidth * otherWidth > maxWidth) { rowText.push({ type: "text", content: text.substring(previousNode, i + 1 - letterWidth), }); previousNode = i + 1 - letterWidth; nodeWidth = letterWidth * otherWidth; letterWidth = 0; } } else { if (nodeWidth + otherWidth > maxWidth) { rowText.push({ type: "text", content: text.substring(previousNode, i), }); previousNode = i; nodeWidth = otherWidth; } else { nodeWidth += otherWidth; } } } } if (previousNode < len) { rowText.push({ type: "text", content: text.substring(previousNode, len), }); } return rowText; } // 是否更新弹窗 function updatePopup(data, callback) { // 弹窗遮罩层 let maskLayer = new plus.nativeObj.View("maskLayer", { //先创建遮罩层 top: "0px", left: "0px", height: "100%", width: "100%", backgroundColor: "rgba(0,0,0,0.5)", }); let downloadUrl = data.downloadUrl; // 以下为计算菜单的nview绘制布局,为固定算法,使用者无关关心 const screenWidth = plus.screen.resolutionWidth; const screenHeight = plus.screen.resolutionHeight; //弹窗容器宽度 const popupViewWidth = screenWidth * 0.8; // 弹窗容器的Padding const viewContentPadding = 20; // 弹窗容器的宽度 const viewContentWidth = parseInt(popupViewWidth - viewContentPadding * 5); // 描述的列表 const descriptionList = drawtext(data.versionInfo, viewContentWidth); // 弹窗容器高度 let popupViewHeight = 400; let popupViewContentList = [ { src: $iconUrl, id: "logo", tag: "img", }, { tag: "font", id: "title", text: "V" + data.versionCode, textStyles: { size: "26px", color: "#fff", weight: "700", }, position: { top: "60px", left: "64px", height: "20px", }, }, { tag: "font", id: "welcome", text: "欢迎体验", textStyles: { size: "16px", color: "#fff", weight: "400", }, position: { top: "85px", left: "64px", height: "20px", }, }, ]; const textHeight = 18; let contentTop = popupViewHeight / 2 + 16; popupViewContentList.push({ tag: "font", id: "content-title", text: "新版本特性:", textStyles: { size: "20px", lineSpacing: "50%", align: "left", }, position: { top: popupViewHeight / 2 - 24 + "px", left: viewContentPadding + "px", width: viewContentWidth + "px", height: textHeight + "px", }, }); descriptionList.forEach((item, index) => { if (index > 0) { popupViewHeight += textHeight; contentTop += textHeight; } popupViewContentList.push({ tag: "font", id: "content" + index + 1, text: item.content, textStyles: { size: "14px", color: "#666", lineSpacing: "50%", align: "left", }, position: { top: contentTop + "px", left: viewContentPadding + "px", width: viewContentWidth + "px", height: textHeight + "px", }, }); if (item.type == "break") { contentTop += 10; popupViewHeight += 10; } }); // 弹窗内容 let popupView = new plus.nativeObj.View("popupView", { //创建底部图标菜单 tag: "rect", top: (screenHeight - popupViewHeight) / 2 + "px", left: "10%", height: popupViewHeight + "px", width: "80%", }); // 绘制白色背景 popupView.drawRect( { color: "#FFFFFF", radius: "8px", }, { top: "40px", height: popupViewHeight - 40 + "px", } ); // 绘制底边按钮 popupView.drawRect( { radius: "3px", borderColor: "#f1f1f1", borderWidth: "1px", }, { bottom: viewContentPadding + "px", left: viewContentPadding + "px", width: (viewContentWidth - viewContentPadding) / 2 + "px", height: "30px", } ); // 绘制底边按钮 popupView.drawRect( { radius: "3px", color: $mainColor, borderColor: $mainColor, }, { bottom: viewContentPadding + "px", left: (viewContentWidth - viewContentPadding) / 2 + viewContentPadding * 2 + "px", width: (viewContentWidth - viewContentPadding) / 2 + "px", height: "30px", } ); popupViewContentList.push({ tag: "rect", id: "confimBtn", rectStyles: { color: $mainColor, radius: "3px", }, position: { bottom: viewContentPadding + "px", left: (viewContentWidth - viewContentPadding) / 3 + "px", width: viewContentWidth - viewContentPadding + "px", height: "40px", }, }); popupViewContentList.push({ tag: "font", id: "confirmText", text: "立即更新", textStyles: { size: "18px", color: "#fff", lineSpacing: "0%", whiteSpace: "normal", }, position: { bottom: viewContentPadding + "px", left: (viewContentWidth - viewContentPadding) / 3 + "px", width: viewContentWidth - viewContentPadding + "px", height: "40px", }, }); popupView.draw(popupViewContentList); popupView.addEventListener("click", function (e) { let maxTop = popupViewHeight - viewContentPadding; let maxLeft = popupViewWidth - viewContentPadding; let buttonWidth = (viewContentWidth - viewContentPadding) / 2; if (e.clientY > maxTop - 30 && e.clientY < maxTop) { // 暂不升级 if ( e.clientX > viewContentPadding && e.clientX < maxLeft - buttonWidth - viewContentPadding ) { // 立即升级 if (platform == "android") { maskLayer.hide(); popupView.hide(); callback && callback(); } else { if (!data.forceUpdate) { maskLayer.hide(); popupView.hide(); } plus.runtime.openURL(downloadUrl); } } else if (e.clientX > maxLeft - buttonWidth && e.clientX < maxLeft) { // 立即升级 if (platform == "android") { maskLayer.hide(); popupView.hide(); callback && callback(); } else { if (!data.forceUpdate) { maskLayer.hide(); popupView.hide(); } plus.runtime.openURL(downloadUrl); } } } }); // 点击遮罩层 maskLayer.addEventListener("click", function () { //处理遮罩层点击 if (!data.forceUpdate) { maskLayer.hide(); popupView.hide(); } }); // 显示弹窗 maskLayer.show(); popupView.show(); } // 文件下载的弹窗绘图 function downloadPopupDrawing(data) { // 以下为计算菜单的nview绘制布局,为固定算法,使用者无关关心 const screenWidth = plus.screen.resolutionWidth; const screenHeight = plus.screen.resolutionHeight; //弹窗容器宽度 const popupViewWidth = screenWidth * 0.7; // 弹窗容器的Padding const viewContentPadding = 20; // 弹窗容器的宽度 const viewContentWidth = popupViewWidth - viewContentPadding * 2; // 弹窗容器高度 let popupViewHeight = viewContentPadding * 3 + 60; let progressTip = data.progressTip || "准备下载..."; let contentText = data.contentText || "正在为您更新,请耐心等待"; let elementList = [ { tag: "rect", //背景色 color: "#FFFFFF", rectStyles: { radius: "8px", }, }, { tag: "font", id: "title", text: "升级APP", textStyles: { size: "16px", color: "#333", weight: "bold", verticalAlign: "middle", whiteSpace: "normal", }, position: { top: viewContentPadding + "px", height: "30px", }, }, { tag: "font", id: "content", text: contentText, textStyles: { size: "14px", color: "#333", verticalAlign: "middle", whiteSpace: "normal", }, position: { top: viewContentPadding * 2 + 30 + "px", height: "20px", }, }, ]; // 是否有进度条 if (data.progress) { popupViewHeight += viewContentPadding + 40; elementList = elementList.concat([ { tag: "font", id: "progressValue", text: progressTip, textStyles: { size: "14px", color: $mainColor, whiteSpace: "normal", }, position: { top: viewContentPadding * 4 + 20 + "px", height: "30px", }, }, { tag: "rect", //绘制进度条背景 id: "progressBg", rectStyles: { radius: "4px", borderColor: "#f1f1f1", borderWidth: "1px", }, position: { top: viewContentPadding * 4 + 60 + "px", left: viewContentPadding + "px", width: viewContentWidth + "px", height: "8px", }, }, ]); } if (data.buttonNum == 2) { popupViewHeight += viewContentPadding + 30; // elementList = elementList.concat([{ // tag: 'rect', //绘制底边按钮 // rectStyles: { // radius: "3px", // borderColor: "#f1f1f1", // borderWidth: "1px", // }, // position: { // bottom: viewContentPadding + 'px', // left: viewContentPadding + "px", // width: (viewContentWidth - viewContentPadding) / 2 + "px", // height: "30px" // } // }, // { // tag: 'rect', //绘制底边按钮 // rectStyles: { // radius: "3px", // color: $mainColor // }, // position: { // bottom: viewContentPadding + 'px', // left: ((viewContentWidth - viewContentPadding) / 2 + viewContentPadding * 2) + "px", // width: (viewContentWidth - viewContentPadding) / 2 + "px", // height: "30px" // } // }, // { // tag: 'font', // id: 'cancelText', // text: "取消下载", // textStyles: { // size: '14px', // color: "#666", // lineSpacing: "0%", // whiteSpace: "normal" // }, // position: { // bottom: viewContentPadding + 'px', // left: viewContentPadding + "px", // width: (viewContentWidth - viewContentPadding) / 2 + "px", // height: "30px", // } // }, // { // tag: 'font', // id: 'confirmText', // text: "后台下载", // textStyles: { // size: '14px', // color: "#FFF", // lineSpacing: "0%", // whiteSpace: "normal" // }, // position: { // bottom: viewContentPadding + 'px', // left: ((viewContentWidth - viewContentPadding) / 2 + viewContentPadding * 2) + "px", // width: (viewContentWidth - viewContentPadding) / 2 + "px", // height: "30px", // } // } // ]); } if (data.buttonNum == 1) { popupViewHeight += viewContentPadding + 40; elementList = elementList.concat([ { tag: "rect", //绘制底边按钮 rectStyles: { radius: "6px", color: $mainColor, }, position: { bottom: viewContentPadding + "px", left: viewContentPadding + "px", width: viewContentWidth + "px", height: "40px", }, }, { tag: "font", id: "confirmText", text: "关闭", textStyles: { size: "14px", color: "#FFF", lineSpacing: "0%", }, position: { bottom: viewContentPadding + "px", left: viewContentPadding + "px", width: viewContentWidth + "px", height: "40px", }, }, ]); } return { popupViewHeight: popupViewHeight, popupViewWidth: popupViewWidth, screenHeight: screenHeight, viewContentWidth: viewContentWidth, viewContentPadding: viewContentPadding, elementList: elementList, }; } // 文件下载的弹窗 function downloadPopup(data, callback, cancelCallback, rebootCallback) { // 弹窗遮罩层 let maskLayer = new plus.nativeObj.View("maskLayer", { //先创建遮罩层 top: "0px", left: "0px", height: "100%", width: "100%", backgroundColor: "rgba(0,0,0,0.5)", }); let popupViewData = downloadPopupDrawing(data); // 弹窗内容 let popupView = new plus.nativeObj.View("popupView", { //创建底部图标菜单 tag: "rect", top: (popupViewData.screenHeight - popupViewData.popupViewHeight) / 2 + "px", left: "15%", height: popupViewData.popupViewHeight + "px", width: "70%", }); let progressValue = 0; let progressTip = 0; let contentText = 0; let buttonNum = 2; let forceUpdate = data.forceUpdate; if (data.buttonNum >= 0) { buttonNum = data.buttonNum; } popupView.draw(popupViewData.elementList); popupView.addEventListener("click", function (e) { let maxTop = popupViewData.popupViewHeight - popupViewData.viewContentPadding; let maxLeft = popupViewData.popupViewWidth - popupViewData.viewContentPadding; if (e.clientY > maxTop - 40 && e.clientY < maxTop) { if (buttonNum == 1) { // 单按钮 if ( e.clientX > popupViewData.viewContentPadding && e.clientX < maxLeft ) { maskLayer.hide(); popupView.hide(); } } else if (buttonNum == 2) { // 双按钮 let buttonWidth = (popupViewData.viewContentWidth - popupViewData.viewContentPadding) / 2; if ( e.clientX > popupViewData.viewContentPadding && e.clientX < maxLeft - buttonWidth - popupViewData.viewContentPadding ) { maskLayer.hide(); popupView.hide(); //cancelCallback && cancelCallback(); } else if (e.clientX > maxLeft - buttonWidth && e.clientX < maxLeft) { maskLayer.hide(); popupView.hide(); } } } }); // 显示弹窗 maskLayer.show(); popupView.show(); // 改变进度条 callback({ change: function (res) { let progressElement = []; if (res.progressValue) { progressValue = res.progressValue; // 绘制进度条 progressElement.push({ tag: "rect", //绘制进度条背景 id: "progressValueBg", rectStyles: { radius: "4px", color: $mainColor, }, position: { top: popupViewData.viewContentPadding * 4 + 60 + "px", left: popupViewData.viewContentPadding + "px", width: popupViewData.viewContentWidth * (res.progressValue / 100) + "px", height: "8px", }, }); } if (res.progressTip) { progressTip = res.progressTip; progressElement.push({ tag: "font", id: "progressValue", text: res.progressTip, textStyles: { size: "14px", color: $mainColor, whiteSpace: "normal", }, position: { top: popupViewData.viewContentPadding * 4 + 20 + "px", height: "30px", }, }); } if (res.contentText) { contentText = res.contentText; progressElement.push({ tag: "font", id: "content", text: res.contentText, textStyles: { size: "16px", color: "#333", whiteSpace: "normal", }, position: { top: popupViewData.viewContentPadding * 2 + 30 + "px", height: "30px", }, }); } if (res.buttonNum >= 0 && buttonNum != res.buttonNum) { buttonNum = res.buttonNum; popupView.reset(); popupViewData = downloadPopupDrawing( Object.assign( { progressValue: progressValue, progressTip: progressTip, contentText: contentText, }, res ) ); let newElement = []; popupViewData.elementList.map((item, index) => { let have = false; progressElement.forEach((childItem, childIndex) => { if (item.id == childItem.id) { have = true; } }); if (!have) { newElement.push(item); } }); progressElement = newElement.concat(progressElement); popupView.setStyle({ tag: "rect", top: (popupViewData.screenHeight - popupViewData.popupViewHeight) / 2 + "px", left: "15%", height: popupViewData.popupViewHeight + "px", width: "70%", }); popupView.draw(progressElement); } else { popupView.draw(progressElement); } }, cancel: function () { maskLayer.hide(); popupView.hide(); }, }); } export default function (isPrompt = false) { getCurrentNo((version) => { getServerNo((res) => { if (res.versionCode.replace(/\./g, "") <= version.version.replace(/\./g, "")) { return false; } if (res.forceUpdate) { if (/\.wgt$/i.test(res.downloadUrl)) { getDownload(res); } else if (/\.html$/i.test(res.downloadUrl)) { plus.runtime.openURL(res.downloadUrl); } else { if (platform == "android") { getDownload(res); } else { updatePopup(res, function () { plus.runtime.openURL(res.downloadUrl); }); // uni.showLoading({ // title: "升级中......", // mask: true // }); // plus.runtime.openURL(res.downloadUrl); // plus.runtime.restart(); } } } else { updatePopup(res, function () { if (/\.wgt$/i.test(res.downloadUrl)) { getDownload(res); } else if (/\.html$/i.test(res.downloadUrl)) { plus.runtime.openURL(res.downloadUrl); } else { getDownload(res); // if (platform == "android") { // getDownload(res); // } else { // plus.runtime.openURL(res.downloadUrl); // } } }); } }); }); } // #endif ================================================ FILE: pushGithub.sh ================================================ echo '开始推送github' echo '切换git地址' git remote rm origin git remote add origin git@github.com:hongyehuicheng/lilishop-uniapp.git echo '设置上传代码分支,推送github' git push --set-upstream origin master --force echo '推送github完成' git remote rm origin git remote add origin git@gitee.com:beijing_hongye_huicheng/lilishop-uniapp.git git pull origin master echo '切回gitee资源' git branch --set-upstream-to=origin/master master echo '设置git跟踪资源' ================================================ FILE: store/index.js ================================================ import Vue from "vue"; import Vuex from "vuex"; import storage from "@/utils/storage"; Vue.use(Vuex); const store = new Vuex.Store({ state: { isShowToast:false, // 是否在展示Toast中 remark:[], //填写订单备注 shareLink:"", //分享链接 verificationKey: "", //获取key表示验证通过 distributionId:"", //分销员Id 如果当前账户从未登录过时记录 hasLogin: storage.getHasLogin(), userInfo: storage.getUserInfo(), uuid: storage.getUuid(), token: "", }, mutations: { login(state, userInfo) { state.userInfo = userInfo || {}; state.userName = userInfo.Name || userInfo.Nickname || userInfo.Username || "匿名用户"; state.hasLogin = true; }, logout(state) { state.userName = ""; state.hasLogin = false; }, // 设置填写订单中备注 setRemark(state, remark) { state.remark = remark; } }, actions: {}, }); export default store; ================================================ FILE: uni.scss ================================================ /* 页面左右间距 */ $page-color-base: #f8f8f8; @import "uview-ui/theme.scss"; /* 文字尺寸 */ $font-sm: 24rpx; $font-base: 28rpx; $font-lg: 32rpx; $font-sl: 36rpx; /*文字颜色*/ $font-color-dark: #303133; $font-color-white: #ffffff; $font-color-base: #606266; $font-color-light: #909399; $font-color-disabled: #c0c4cc; /* 边框颜色 */ $border-color-dark: #dcdfe6; $border-color-base: #e4e7ed; $border-color-light: #ebeef5; /* 图片加载中颜色 */ $image-bg-color: #eee; /* 行为相关颜色 */ $uni-color-primary: #fa436a; $uni-color-success: #4cd964; $uni-color-warning: #f0ad4e; $uni-color-error: #dd524d; /*主题颜色 具体参考 https://ant.design/docs/spec/colors-cn */ /**微信登录按钮颜色 */ $weChat-color:#00a327; /**主颜色*/ $main-color: #ff3c2a; /*用于金钱等颜色 */ $price-color: #ff3c2a; /*主题高亮颜色*/ $light-color: #ff6b35; /*辅助高亮颜色*/ $aider-light-color: #ff9f28; /*主题高亮背景颜色*/ $main-light-color: #edfcf7; /*价格红高亮背景颜色*/ $price-light-color: #fcedeb; /*辅助色*/ $aider-color-red: #ff6262; $aider-color-yellow: #ffc71c; $aider-color-green: #28d094; $aider-color-blue: #1e9ff2; // 中性色 $neutral-color: #333333; //背景色 $bg-color: #f9f9f9; // 字体 $font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; $font-weight-b: 500; $font-weight: 400; .light-color { color: $light-color; } .main-color { color: $main-color !important; } .bg-light-color { background-color: $light-color !important; /deep/ * { background-color: $light-color !important; } } .bg-main-color { background-color: $main-color !important; } // 渐变主题颜色 .bg-linear-gradient { background-image: linear-gradient(25deg, #fa123b, #ff6b35, #ff9f28, #ffcc03); } .uni-tabbar .uni-tabbar__icon { width: 20px; height: 18px; } .flex { display: flex; } .btn { background-color: $light-color; color: #ffffff; border-width: 0px; border: none; border-radius: 44px; height: 44px; box-shadow: none; font-weight: 400; font-style: normal; line-height: 44px; text-align: center; &::after { border: none; } } .button-hover { opacity: 0.7; } .margin { margin: 10px; } .tag { background-color: rgba(242, 242, 242, 1); color: #333333; height: 28px; border-radius: 28px; box-shadow: none; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-weight: 400; font-style: normal; line-height: 28px; text-align: center; width: 90px; } .c-content { background-color: #ffffff; // margin-top: 30rpx; border-top: 1px solid $border-color-light; border-bottom: 1px solid $border-color-light; } .mt-30 { margin-top: 30rpx; } .border-top { border-top: 1px solid $border-color-light; } .describe { color: $font-color-light; font-size: $font-sm; padding: 30rpx; } .flex-center { display: flex; align-items: center; justify-content: center; flex-direction: column; } .flex-a-c{ align-items: center; } .flex-j-sb{ justify-content: space-between; } .relative { position: relative; } .wes { /* 多出部分用省略号表示 , 用于一行 */ overflow: hidden; word-wrap: normal; white-space: nowrap; text-overflow: ellipsis; } .wes-2 { /* 适用于webkit内核和移动端 */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .wes-3 { /* 适用于webkit内核和移动端 */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } ================================================ FILE: uni_modules/Sansnn-uQRCode/LICENSE.md ================================================ Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ================================================ FILE: uni_modules/Sansnn-uQRCode/README.md ================================================ # 介绍 `uQRCode`是一款基于`Javascript`环境开发的二维码生成插件,适用所有`Javascript`运行环境的前端应用和`Node.js`应用。 `uQRCode`可扩展性高,它支持自定义渲染二维码,可通过`uQRCode API`得到二维码绘制关键信息后,使用`canvas`、`svg`或`js`操作`dom`的方式绘制二维码图案。还可自定义二维码样式,如随机颜色、圆点、方块、块与块之间的间距等。 欢迎加入群聊【uQRCode交流群】:[695070434](https://jq.qq.com/?_wv=1027&k=JRjzDqiw)。 # 设计器 uQRCode发布了配套的可视化设计器,可根据自己喜好在设计器中设计二维码样式,一键生成配置代码复制到项目中,详情请在微信小程序搜索“柚子二维码”,或扫描下方小程序码体验。 ![uQRCode设计器](https://uqrcode.cn/mp_weixin_code.jpg) ## 设计器模板示例 ![uQRCode设计器](https://uqrcode.cn/yz_1.png) ![uQRCode设计器](https://uqrcode.cn/yz_2.png) ![uQRCode设计器](https://uqrcode.cn/yz_3.png) ![uQRCode设计器](https://uqrcode.cn/yz_4.png) ![uQRCode设计器](https://uqrcode.cn/yz_5.png) ![uQRCode设计器](https://uqrcode.cn/yz_6.png) ![uQRCode设计器](https://uqrcode.cn/yz_7.png) ![uQRCode设计器](https://uqrcode.cn/yz_8.png) ![uQRCode设计器](https://uqrcode.cn/yz_9.png) # 快速上手 > 在`uni-app`中,我们更推荐使用组件方式来生成二维码,组件方式大大提高了页面的可读性以及避开了一些平台容易出问题的地方,当组件无法满足需求的时候,再考虑切换成原生方式。 官方文档:[https://uqrcode.cn/doc](https://uqrcode.cn/doc)。 github地址:[https://github.com/Sansnn/uQRCode](https://github.com/Sansnn/uQRCode)。 npm地址:[https://www.npmjs.com/package/uqrcodejs](https://www.npmjs.com/package/uqrcodejs)。 uni-app插件市场地址:[https://ext.dcloud.net.cn/plugin?id=1287](https://ext.dcloud.net.cn/plugin?id=1287)。 ## 原生方式 原生方式仅需要获取`uqrcode.js`文件便可使用。详细配置请移步到:文档 > [原生](https://uqrcode.cn/doc/document/native.html)。 ### 安装 1. 通过`npm`安装,成功后即可使用`import`或`require`进行引用。 ``` bash # npm安装 npm install uqrcodejs # 或者 npm install @uqrcode/js ``` 2. 通过项目开源地址获取`uqrcode.js`,下载`uqrcode.js`后,将其复制到您项目指定目录,在页面中引入`uqrcode.js`文件即可开始使用。 ### 引入 - 通过`import`引入。 ``` javascript // npm安装 import UQRCode from 'uqrcodejs'; // npm install uqrcodejs // 或者 import UQRCode from '@uqrcode/js'; // npm install @uqrcode/js ``` - `Node.js`通过`require`引入。 ``` javascript // npm安装 const UQRCode = require('uqrcodejs'); // npm install uqrcodejs // 或者 const UQRCode = require('@uqrcode/js'); // npm install @uqrcode/js ``` - 原生浏览器环境,在js脚本加载时添加到`window`。 ``` html ``` ### 简单用法 `uQRCode`基于`Canvas API`封装了一套方法,建议开发者使用`canvas`生成,一键调用,非常方便。以下是示例: - HTML示例 - DOM部分 ``` html ``` - JS部分 ``` javascript // 获取uQRCode实例 var qr = new UQRCode(); // 设置二维码内容 qr.data = "https://uqrcode.cn/doc"; // 设置二维码大小,必须与canvas设置的宽高一致 qr.size = 200; // 调用制作二维码方法 qr.make(); // 获取canvas元素 var canvas = document.getElementById("qrcode"); // 获取canvas上下文 var canvasContext = canvas.getContext("2d"); // 设置uQRCode实例的canvas上下文 qr.canvasContext = canvasContext; // 调用绘制方法将二维码图案绘制到canvas上 qr.drawCanvas(); ``` - uni-app示例 - Template部分 ``` html ``` - JS部分 ``` javascript onReady() { // 获取uQRCode实例 var qr = new UQRCode(); // 设置二维码内容 qr.data = "https://uqrcode.cn/doc"; // 设置二维码大小,必须与canvas设置的宽高一致 qr.size = 200; // 调用制作二维码方法 qr.make(); // 获取canvas上下文 var canvasContext = uni.createCanvasContext('qrcode', this); // 如果是组件,this必须传入 // 设置uQRCode实例的canvas上下文 qr.canvasContext = canvasContext; // 调用绘制方法将二维码图案绘制到canvas上 qr.drawCanvas(); } ``` - 微信小程序,推荐使用Canvas 2D,关于Canvas 2D的使用请参考微信开放文档。 ### 高级用法 考虑到部分平台可能不支持`canvas`,所以`uQRCode`并没有强制要求和`canvas`一起使用,您还可以选择其他方式来生成二维码,例如使用`js`操作`dom`进行绘制或是使用`svg`绘制等。以下是示例: - uni-app v-for+view ```html ``` - js操作dom ``` html uQRCode二维码生成
``` - svg ``` html uQRCode二维码生成 ``` > 更多用法大家自行探索咯,期待分享哟~ ### 导出临时文件路径 原生方式基于`Canvas`的,请自行参阅各平台`Canvas`的导出方式。以下是部分示例: - uni-app ```javascript // 通过uni.createCanvasContext方式创建绘制上下文的,对应导出API为uni.canvasToTempFilePath // 调用完ctx.draw()方法后不能第一时间导出,否则会异常,需要有一定的延时 setTimeout(() => { uni.canvasToTempFilePath( { canvasId: this.canvasId, fileType: this.fileType, width: this.canvasWidth, height: this.canvasHeight, success: res => { console.log(res); }, fail: err => { console.log(err); } }, // this // 组件内使用必传当前实例 ); }, 300); ``` - Canvas2D ```javascript // 得到base64 console.log(canvas.toDataURL()); // 得到buffer console.log(canvas.toBuffer()); ``` ### 保存二维码到本地相册 必须在导出临时文件路径成功后再执行保存。uni-app通用保存方式(H5除外): ```javascript uni.saveImageToPhotosAlbum({ filePath: tempFilePath, success: res => { console.log(res); }, fail: err => { console.log(err); } }); ``` H5可以通过设置``标签`href`属性的方式进行保存: ```javascript const aEle = document.createElement('a'); aEle.download = 'uQRCode'; // 设置下载的文件名,默认是'下载' aEle.href = tempFilePath; document.body.appendChild(aEle); aEle.click(); aEle.remove(); // 下载之后把创建的元素删除 ``` 经过测试,PC端浏览器可以下载,部分安卓自带或第三方浏览器可以下载,安卓微信浏览器不适用,移动端iOS所有浏览器均不适用,差异较大,还是推荐各位导出文件给图片组件显示,然后提示用户通过长按图片进行保存这种方式。 ## uni-app组件方式 ### 安装 通过uni-app插件市场地址安装:[https://ext.dcloud.net.cn/plugin?id=1287](https://ext.dcloud.net.cn/plugin?id=1287)。详细配置请移步到:文档 > [uni-app组件](https://uqrcode.cn/doc/document/uni-app.html)。 ### 引入 uni-app默认为easycom模式,可直接键入``标签。 ### 简单用法 安装`uqrcode`组件后,在`template`中键入``。设置`ref`属性可使用组件内部方法,`canvas-id`属性为组件内部的canvas组件标识,`value`属性为二维码生成对应内容,`options`为配置选项,可配置二维码样式,绘制Logo等,详见:[options](https://uqrcode.cn/doc/document/uni-app.html#options) 。 ``` html ``` ### 导出临时文件路径 为了保证方法调用成功,请在 [complete](https://uqrcode.cn/doc/document/uni-app.html#complete) 事件返回`success=true`后调用。 ```javascript // uqrcode为组件的ref名称 this.$refs.uqrcode.toTempFilePath({ success: res => { console.log(res); } }); ``` ### 保存二维码到本地相册 为了保证方法调用成功,请在 [complete](https://uqrcode.cn/doc/document/uni-app.html#complete) 事件返回`success=true`后调用。 ```javascript // uqrcode为组件的ref名称 this.$refs.uqrcode.save({ success: () => { uni.showToast({ icon: 'success', title: '保存成功' }); } }); ``` ## 更多使用说明请前往官方文档查看:[https://uqrcode.cn/doc](https://uqrcode.cn/doc)。 ================================================ FILE: uni_modules/Sansnn-uQRCode/changelog.md ================================================ ## 4.0.6(2022-12-12) 修复`getDrawModules`,第一次获取结果正常,后续获取`tile`模块不存在的问题; 修复安卓type:normal因Canvas API使用了小数或为0的参数导致生成异常的问题(注:安卓非2d Canvas部分API参数不支持携带小数,部分API参数必须大于0)。 ## 4.0.1(2022-11-28) 优化组件loading属性的表现; 新增组件type选项normal,以便于在某些条件编译初始为type=2d时还可以选择使用非2d组件类型; 修复组件条件编译在其他编辑器语法提示报错; 修复原生对es5的支持。 ## 4.0.0(2022-11-21) v4版本源代码全面开放,开源地址:[https://github.com/Sansnn/uQRCode](https://github.com/Sansnn/uQRCode); 升级说明:v4为大版本更新,虽然已尽可能兼容上一代版本,但不可避免的还是存在一些细节差异,若更新后出现问题,请参考对照[v3 文档](https://uqrcode.cn/doc/v3),[v4 文档](https://uqrcode.cn/doc)进行修改。 ================================================ FILE: uni_modules/Sansnn-uQRCode/common/cache.js ================================================ export const cacheImageList = []; ================================================ FILE: uni_modules/Sansnn-uQRCode/common/queue.js ================================================ function Queue() { let waitingQueue = this.waitingQueue = []; let isRunning = this.isRunning = false; // 记录是否有未完成的任务 function execute(task, resolve, reject) { task() .then((data) => { resolve(data); }) .catch((e) => { reject(e); }) .finally(() => { // 等待任务队列中如果有任务,则触发它;否则设置isRunning = false,表示无任务状态 if (waitingQueue.length) { const next = waitingQueue.shift(); execute(next.task, next.resolve, next.reject); } else { isRunning = false; } }); } this.exec = function(task) { return new Promise((resolve, reject) => { if (isRunning) { waitingQueue.push({ task, resolve, reject }); } else { isRunning = true; execute(task, resolve, reject); } }); } } /* 队列实例,某些平台一起使用多个组件时需要通过队列逐一绘制,否则部分绘制方法异常,nvue端的iOS gcanvas尤其明显,在不通过队列绘制时会出现图片丢失的情况 */ export const queueDraw = new Queue(); export const queueLoadImage = new Queue(); ================================================ FILE: uni_modules/Sansnn-uQRCode/common/types/cache.d.ts ================================================ declare module '*/common/cache' { export const cacheImageList: Array; } ================================================ FILE: uni_modules/Sansnn-uQRCode/common/types/queue.d.ts ================================================ declare module '*/common/queue' { export const queueDraw: any; export const queueLoadImage: any; } ================================================ FILE: uni_modules/Sansnn-uQRCode/components/u-qrcode/u-qrcode.vue ================================================ ================================================ FILE: uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue ================================================ ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/bridge/bridge-weex.js ================================================ const isWeex = typeof WXEnvironment !== 'undefined'; const isWeexIOS = isWeex && /ios/i.test(WXEnvironment.platform); const isWeexAndroid = isWeex && !isWeexIOS; import GLmethod from '../context-webgl/GLmethod'; const GCanvasModule = (typeof weex !== 'undefined' && weex.requireModule) ? (weex.requireModule('gcanvas')) : (typeof __weex_require__ !== 'undefined') ? (__weex_require__('@weex-module/gcanvas')) : {}; let isDebugging = false; let isComboDisabled = false; const logCommand = (function () { const methodQuery = []; Object.keys(GLmethod).forEach(key => { methodQuery[GLmethod[key]] = key; }) const queryMethod = (id) => { return methodQuery[parseInt(id)] || 'NotFoundMethod'; } const logCommand = (id, cmds) => { const mId = cmds.split(',')[0]; const mName = queryMethod(mId); console.log(`=== callNative - componentId:${id}; method: ${mName}; cmds: ${cmds}`); } return logCommand; })(); function joinArray(arr, sep) { let res = ''; for (let i = 0; i < arr.length; i++) { if (i !== 0) { res += sep; } res += arr[i]; } return res; } const commandsCache = {} const GBridge = { callEnable: (ref, configArray) => { commandsCache[ref] = []; return GCanvasModule.enable({ componentId: ref, config: configArray }); }, callEnableDebug: () => { isDebugging = true; }, callEnableDisableCombo: () => { isComboDisabled = true; }, callSetContextType: function (componentId, context_type) { GCanvasModule.setContextType(context_type, componentId); }, callReset: function(id){ GCanvasModule.resetComponent && canvasModule.resetComponent(componentId); }, render: isWeexIOS ? function (componentId) { return GCanvasModule.extendCallNative({ contextId: componentId, type: 0x60000001 }); } : function (componentId) { return callGCanvasLinkNative(componentId, 0x60000001, 'render'); }, render2d: isWeexIOS ? function (componentId, commands, callback) { if (isDebugging) { console.log('>>> >>> render2d ==='); console.log('>>> commands: ' + commands); } GCanvasModule.render([commands, callback?true:false], componentId, callback); } : function (componentId, commands,callback) { if (isDebugging) { console.log('>>> >>> render2d ==='); console.log('>>> commands: ' + commands); } callGCanvasLinkNative(componentId, 0x20000001, commands); if(callback){ callback(); } }, callExtendCallNative: isWeexIOS ? function (componentId, cmdArgs) { throw 'should not be here anymore ' + cmdArgs; } : function (componentId, cmdArgs) { throw 'should not be here anymore ' + cmdArgs; }, flushNative: isWeexIOS ? function (componentId) { const cmdArgs = joinArray(commandsCache[componentId], ';'); commandsCache[componentId] = []; if (isDebugging) { console.log('>>> >>> flush native ==='); console.log('>>> commands: ' + cmdArgs); } const result = GCanvasModule.extendCallNative({ "contextId": componentId, "type": 0x60000000, "args": cmdArgs }); const res = result && result.result; if (isDebugging) { console.log('>>> result: ' + res); } return res; } : function (componentId) { const cmdArgs = joinArray(commandsCache[componentId], ';'); commandsCache[componentId] = []; if (isDebugging) { console.log('>>> >>> flush native ==='); console.log('>>> commands: ' + cmdArgs); } const result = callGCanvasLinkNative(componentId, 0x60000000, cmdArgs); if (isDebugging) { console.log('>>> result: ' + result); } return result; }, callNative: function (componentId, cmdArgs, cache) { if (isDebugging) { logCommand(componentId, cmdArgs); } commandsCache[componentId].push(cmdArgs); if (!cache || isComboDisabled) { return GBridge.flushNative(componentId); } else { return undefined; } }, texImage2D(componentId, ...args) { if (isWeexIOS) { if (args.length === 6) { const [target, level, internalformat, format, type, image] = args; GBridge.callNative( componentId, GLmethod.texImage2D + ',' + 6 + ',' + target + ',' + level + ',' + internalformat + ',' + format + ',' + type + ',' + image.src ) } else if (args.length === 9) { const [target, level, internalformat, width, height, border, format, type, image] = args; GBridge.callNative( componentId, GLmethod.texImage2D + ',' + 9 + ',' + target + ',' + level + ',' + internalformat + ',' + width + ',' + height + ',' + border + ',' + + format + ',' + type + ',' + (image ? image.src : 0) ) } } else if (isWeexAndroid) { if (args.length === 6) { const [target, level, internalformat, format, type, image] = args; GCanvasModule.texImage2D(componentId, target, level, internalformat, format, type, image.src); } else if (args.length === 9) { const [target, level, internalformat, width, height, border, format, type, image] = args; GCanvasModule.texImage2D(componentId, target, level, internalformat, width, height, border, format, type, (image ? image.src : 0)); } } }, texSubImage2D(componentId, target, level, xoffset, yoffset, format, type, image) { if (isWeexIOS) { if (arguments.length === 8) { GBridge.callNative( componentId, GLmethod.texSubImage2D + ',' + 6 + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset, + ',' + format + ',' + type + ',' + image.src ) } } else if (isWeexAndroid) { GCanvasModule.texSubImage2D(componentId, target, level, xoffset, yoffset, format, type, image.src); } }, bindImageTexture(componentId, src, imageId) { GCanvasModule.bindImageTexture([src, imageId], componentId); }, perloadImage([url, id], callback) { GCanvasModule.preLoadImage([url, id], function (image) { image.url = url; image.id = id; callback(image); }); }, measureText(text, fontStyle, componentId) { return GCanvasModule.measureText([text, fontStyle], componentId); }, getImageData (componentId, x, y, w, h, callback) { GCanvasModule.getImageData([x, y,w,h],componentId,callback); }, putImageData (componentId, data, x, y, w, h, callback) { GCanvasModule.putImageData([x, y,w,h,data],componentId,callback); }, toTempFilePath(componentId, x, y, width, height, destWidth, destHeight, fileType, quality, callback){ GCanvasModule.toTempFilePath([x, y, width,height, destWidth, destHeight, fileType, quality], componentId, callback); } } export default GBridge; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/FillStyleLinearGradient.js ================================================ class FillStyleLinearGradient { constructor(x0, y0, x1, y1) { this._start_pos = { _x: x0, _y: y0 }; this._end_pos = { _x: x1, _y: y1 }; this._stop_count = 0; this._stops = [0, 0, 0, 0, 0]; } addColorStop = function (pos, color) { if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) { this._stops[this._stop_count] = { _pos: pos, _color: color }; this._stop_count++; } } } export default FillStyleLinearGradient; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/FillStylePattern.js ================================================ class FillStylePattern { constructor(img, pattern) { this._style = pattern; this._img = img; } } export default FillStylePattern; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/FillStyleRadialGradient.js ================================================ class FillStyleRadialGradient { constructor(x0, y0, r0, x1, y1, r1) { this._start_pos = { _x: x0, _y: y0, _r: r0 }; this._end_pos = { _x: x1, _y: y1, _r: r1 }; this._stop_count = 0; this._stops = [0, 0, 0, 0, 0]; } addColorStop(pos, color) { if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) { this._stops[this._stop_count] = { _pos: pos, _color: color }; this._stop_count++; } } } export default FillStyleRadialGradient; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/RenderingContext.js ================================================ import FillStylePattern from './FillStylePattern'; import FillStyleLinearGradient from './FillStyleLinearGradient'; import FillStyleRadialGradient from './FillStyleRadialGradient'; import GImage from '../env/image.js'; import { ArrayBufferToBase64, Base64ToUint8ClampedArray } from '../env/tool.js'; export default class CanvasRenderingContext2D { _drawCommands = ''; _globalAlpha = 1.0; _fillStyle = 'rgb(0,0,0)'; _strokeStyle = 'rgb(0,0,0)'; _lineWidth = 1; _lineCap = 'butt'; _lineJoin = 'miter'; _miterLimit = 10; _globalCompositeOperation = 'source-over'; _textAlign = 'start'; _textBaseline = 'alphabetic'; _font = '10px sans-serif'; _savedGlobalAlpha = []; timer = null; componentId = null; _notCommitDrawImageCache = []; _needRedrawImageCache = []; _redrawCommands = ''; _autoSaveContext = true; // _imageMap = new GHashMap(); // _textureMap = new GHashMap(); constructor() { this.className = 'CanvasRenderingContext2D'; //this.save() } setFillStyle(value) { this.fillStyle = value; } set fillStyle(value) { this._fillStyle = value; if (typeof(value) == 'string') { this._drawCommands = this._drawCommands.concat("F" + value + ";"); } else if (value instanceof FillStylePattern) { const image = value._img; if (!image.complete) { image.onload = () => { var index = this._needRedrawImageCache.indexOf(image); if (index > -1) { this._needRedrawImageCache.splice(index, 1); CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); this._redrawflush(true); } } this._notCommitDrawImageCache.push(image); } else { CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); } //CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); this._drawCommands = this._drawCommands.concat("G" + image._id + "," + value._style + ";"); } else if (value instanceof FillStyleLinearGradient) { var command = "D" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," + value._stop_count; for (var i = 0; i < value._stop_count; ++i) { command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); } this._drawCommands = this._drawCommands.concat(command + ";"); } else if (value instanceof FillStyleRadialGradient) { var command = "H" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._start_pos._r .toFixed(2) + "," + value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," + value._end_pos._r.toFixed(2) + "," + value._stop_count; for (var i = 0; i < value._stop_count; ++i) { command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); } this._drawCommands = this._drawCommands.concat(command + ";"); } } get fillStyle() { return this._fillStyle; } get globalAlpha() { return this._globalAlpha; } setGlobalAlpha(value) { this.globalAlpha = value; } set globalAlpha(value) { this._globalAlpha = value; this._drawCommands = this._drawCommands.concat("a" + value.toFixed(2) + ";"); } get strokeStyle() { return this._strokeStyle; } setStrokeStyle(value) { this.strokeStyle = value; } set strokeStyle(value) { this._strokeStyle = value; if (typeof(value) == 'string') { this._drawCommands = this._drawCommands.concat("S" + value + ";"); } else if (value instanceof FillStylePattern) { CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); this._drawCommands = this._drawCommands.concat("G" + image._id + "," + value._style + ";"); } else if (value instanceof FillStyleLinearGradient) { var command = "D" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," + value._stop_count; for (var i = 0; i < value._stop_count; ++i) { command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); } this._drawCommands = this._drawCommands.concat(command + ";"); } else if (value instanceof FillStyleRadialGradient) { var command = "H" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._start_pos._r .toFixed(2) + "," + value._end_pos._x.toFixed(2) + "," + value._end_pos._y + ",".toFixed(2) + value._end_pos._r.toFixed(2) + "," + value._stop_count; for (var i = 0; i < value._stop_count; ++i) { command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); } this._drawCommands = this._drawCommands.concat(command + ";"); } } get lineWidth() { return this._lineWidth; } setLineWidth(value) { this.lineWidth = value; } set lineWidth(value) { this._lineWidth = value; this._drawCommands = this._drawCommands.concat("W" + value + ";"); } get lineCap() { return this._lineCap; } setLineCap(value) { this.lineCap = value; } set lineCap(value) { this._lineCap = value; this._drawCommands = this._drawCommands.concat("C" + value + ";"); } get lineJoin() { return this._lineJoin; } setLineJoin(value) { this.lineJoin = value } set lineJoin(value) { this._lineJoin = value; this._drawCommands = this._drawCommands.concat("J" + value + ";"); } get miterLimit() { return this._miterLimit; } setMiterLimit(value) { this.miterLimit = value } set miterLimit(value) { this._miterLimit = value; this._drawCommands = this._drawCommands.concat("M" + value + ";"); } get globalCompositeOperation() { return this._globalCompositeOperation; } set globalCompositeOperation(value) { this._globalCompositeOperation = value; let mode = 0; switch (value) { case "source-over": mode = 0; break; case "source-atop": mode = 5; break; case "source-in": mode = 0; break; case "source-out": mode = 2; break; case "destination-over": mode = 4; break; case "destination-atop": mode = 4; break; case "destination-in": mode = 4; break; case "destination-out": mode = 3; break; case "lighter": mode = 1; break; case "copy": mode = 2; break; case "xor": mode = 6; break; default: mode = 0; } this._drawCommands = this._drawCommands.concat("B" + mode + ";"); } get textAlign() { return this._textAlign; } setTextAlign(value) { this.textAlign = value } set textAlign(value) { this._textAlign = value; let Align = 0; switch (value) { case "start": Align = 0; break; case "end": Align = 1; break; case "left": Align = 2; break; case "center": Align = 3; break; case "right": Align = 4; break; default: Align = 0; } this._drawCommands = this._drawCommands.concat("A" + Align + ";"); } get textBaseline() { return this._textBaseline; } setTextBaseline(value) { this.textBaseline = value } set textBaseline(value) { this._textBaseline = value; let baseline = 0; switch (value) { case "alphabetic": baseline = 0; break; case "middle": baseline = 1; break; case "top": baseline = 2; break; case "hanging": baseline = 3; break; case "bottom": baseline = 4; break; case "ideographic": baseline = 5; break; default: baseline = 0; break; } this._drawCommands = this._drawCommands.concat("E" + baseline + ";"); } get font() { return this._font; } setFontSize(size) { var str = this._font; var strs = str.trim().split(/\s+/); for (var i = 0; i < strs.length; i++) { var values = ["normal", "italic", "oblique", "normal", "small-caps", "normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900", "normal", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded" ]; if (-1 == values.indexOf(strs[i].trim())) { if (typeof size === 'string') { strs[i] = size; } else if (typeof size === 'number') { strs[i] = String(size) + 'px'; } break; } } this.font = strs.join(" "); } set font(value) { this._font = value; this._drawCommands = this._drawCommands.concat("j" + value + ";"); } setTransform(a, b, c, d, tx, ty) { this._drawCommands = this._drawCommands.concat("t" + (a === 1 ? "1" : a.toFixed(2)) + "," + (b === 0 ? "0" : b.toFixed(2)) + "," + (c === 0 ? "0" : c.toFixed(2)) + "," + (d === 1 ? "1" : d.toFixed(2)) + "," + tx.toFixed(2) + "," + ty.toFixed(2) + ";"); } transform(a, b, c, d, tx, ty) { this._drawCommands = this._drawCommands.concat("f" + (a === 1 ? "1" : a.toFixed(2)) + "," + (b === 0 ? "0" : b.toFixed(2)) + "," + (c === 0 ? "0" : c.toFixed(2)) + "," + (d === 1 ? "1" : d.toFixed(2)) + "," + tx + "," + ty + ";"); } resetTransform() { this._drawCommands = this._drawCommands.concat("m;"); } scale(a, d) { this._drawCommands = this._drawCommands.concat("k" + a.toFixed(2) + "," + d.toFixed(2) + ";"); } rotate(angle) { this._drawCommands = this._drawCommands .concat("r" + angle.toFixed(6) + ";"); } translate(tx, ty) { this._drawCommands = this._drawCommands.concat("l" + tx.toFixed(2) + "," + ty.toFixed(2) + ";"); } save() { this._savedGlobalAlpha.push(this._globalAlpha); this._drawCommands = this._drawCommands.concat("v;"); } restore() { this._drawCommands = this._drawCommands.concat("e;"); this._globalAlpha = this._savedGlobalAlpha.pop(); } createPattern(img, pattern) { if (typeof img === 'string') { var imgObj = new GImage(); imgObj.src = img; img = imgObj; } return new FillStylePattern(img, pattern); } createLinearGradient(x0, y0, x1, y1) { return new FillStyleLinearGradient(x0, y0, x1, y1); } createRadialGradient = function(x0, y0, r0, x1, y1, r1) { return new FillStyleRadialGradient(x0, y0, r0, x1, y1, r1); }; createCircularGradient = function(x0, y0, r0) { return new FillStyleRadialGradient(x0, y0, 0, x0, y0, r0); }; strokeRect(x, y, w, h) { this._drawCommands = this._drawCommands.concat("s" + x + "," + y + "," + w + "," + h + ";"); } clearRect(x, y, w, h) { this._drawCommands = this._drawCommands.concat("c" + x + "," + y + "," + w + "," + h + ";"); } clip() { this._drawCommands = this._drawCommands.concat("p;"); } resetClip() { this._drawCommands = this._drawCommands.concat("q;"); } closePath() { this._drawCommands = this._drawCommands.concat("o;"); } moveTo(x, y) { this._drawCommands = this._drawCommands.concat("g" + x.toFixed(2) + "," + y.toFixed(2) + ";"); } lineTo(x, y) { this._drawCommands = this._drawCommands.concat("i" + x.toFixed(2) + "," + y.toFixed(2) + ";"); } quadraticCurveTo = function(cpx, cpy, x, y) { this._drawCommands = this._drawCommands.concat("u" + cpx + "," + cpy + "," + x + "," + y + ";"); } bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y, ) { this._drawCommands = this._drawCommands.concat( "z" + cp1x.toFixed(2) + "," + cp1y.toFixed(2) + "," + cp2x.toFixed(2) + "," + cp2y.toFixed(2) + "," + x.toFixed(2) + "," + y.toFixed(2) + ";"); } arcTo(x1, y1, x2, y2, radius) { this._drawCommands = this._drawCommands.concat("h" + x1 + "," + y1 + "," + x2 + "," + y2 + "," + radius + ";"); } beginPath() { this._drawCommands = this._drawCommands.concat("b;"); } fillRect(x, y, w, h) { this._drawCommands = this._drawCommands.concat("n" + x + "," + y + "," + w + "," + h + ";"); } rect(x, y, w, h) { this._drawCommands = this._drawCommands.concat("w" + x + "," + y + "," + w + "," + h + ";"); } fill() { this._drawCommands = this._drawCommands.concat("L;"); } stroke(path) { this._drawCommands = this._drawCommands.concat("x;"); } arc(x, y, radius, startAngle, endAngle, anticlockwise) { let ianticlockwise = 0; if (anticlockwise) { ianticlockwise = 1; } this._drawCommands = this._drawCommands.concat( "y" + x.toFixed(2) + "," + y.toFixed(2) + "," + radius.toFixed(2) + "," + startAngle + "," + endAngle + "," + ianticlockwise + ";" ); } fillText(text, x, y) { let tmptext = text.replace(/!/g, "!!"); tmptext = tmptext.replace(/,/g, "!,"); tmptext = tmptext.replace(/;/g, "!;"); this._drawCommands = this._drawCommands.concat("T" + tmptext + "," + x + "," + y + ",0.0;"); } strokeText = function(text, x, y) { let tmptext = text.replace(/!/g, "!!"); tmptext = tmptext.replace(/,/g, "!,"); tmptext = tmptext.replace(/;/g, "!;"); this._drawCommands = this._drawCommands.concat("U" + tmptext + "," + x + "," + y + ",0.0;"); } measureText(text) { return CanvasRenderingContext2D.GBridge.measureText(text, this.font, this.componentId); } isPointInPath = function(x, y) { throw new Error('GCanvas not supported yet'); } drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) { if (typeof image === 'string') { var imgObj = new GImage(); imgObj.src = image; image = imgObj; } if (image instanceof GImage) { if (!image.complete) { imgObj.onload = () => { var index = this._needRedrawImageCache.indexOf(image); if (index > -1) { this._needRedrawImageCache.splice(index, 1); CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); this._redrawflush(true); } } this._notCommitDrawImageCache.push(image); } else { CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); } var srcArgs = [image, sx, sy, sw, sh, dx, dy, dw, dh]; var args = []; for (var arg in srcArgs) { if (typeof(srcArgs[arg]) != 'undefined') { args.push(srcArgs[arg]); } } this.__drawImage.apply(this, args); //this.__drawImage(image,sx, sy, sw, sh, dx, dy, dw, dh); } } __drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) { const numArgs = arguments.length; function drawImageCommands() { if (numArgs === 3) { const x = parseFloat(sx) || 0.0; const y = parseFloat(sy) || 0.0; return ("d" + image._id + ",0,0," + image.width + "," + image.height + "," + x + "," + y + "," + image.width + "," + image.height + ";"); } else if (numArgs === 5) { const x = parseFloat(sx) || 0.0; const y = parseFloat(sy) || 0.0; const width = parseInt(sw) || image.width; const height = parseInt(sh) || image.height; return ("d" + image._id + ",0,0," + image.width + "," + image.height + "," + x + "," + y + "," + width + "," + height + ";"); } else if (numArgs === 9) { sx = parseFloat(sx) || 0.0; sy = parseFloat(sy) || 0.0; sw = parseInt(sw) || image.width; sh = parseInt(sh) || image.height; dx = parseFloat(dx) || 0.0; dy = parseFloat(dy) || 0.0; dw = parseInt(dw) || image.width; dh = parseInt(dh) || image.height; return ("d" + image._id + "," + sx + "," + sy + "," + sw + "," + sh + "," + dx + "," + dy + "," + dw + "," + dh + ";"); } } this._drawCommands += drawImageCommands(); } _flush(reserve, callback) { const commands = this._drawCommands; this._drawCommands = ''; CanvasRenderingContext2D.GBridge.render2d(this.componentId, commands, callback); this._needRender = false; } _redrawflush(reserve, callback) { const commands = this._redrawCommands; CanvasRenderingContext2D.GBridge.render2d(this.componentId, commands, callback); if (this._needRedrawImageCache.length == 0) { this._redrawCommands = ''; } } draw(reserve, callback) { if (!reserve) { this._globalAlpha = this._savedGlobalAlpha.pop(); this._savedGlobalAlpha.push(this._globalAlpha); this._redrawCommands = this._drawCommands; this._needRedrawImageCache = this._notCommitDrawImageCache; if (this._autoSaveContext) { this._drawCommands = ("v;" + this._drawCommands); this._autoSaveContext = false; } else { this._drawCommands = ("e;X;v;" + this._drawCommands); } } else { this._needRedrawImageCache = this._needRedrawImageCache.concat(this._notCommitDrawImageCache); this._redrawCommands += this._drawCommands; if (this._autoSaveContext) { this._drawCommands = ("v;" + this._drawCommands); this._autoSaveContext = false; } } this._notCommitDrawImageCache = []; if (this._flush) { this._flush(reserve, callback); } } getImageData(x, y, w, h, callback) { CanvasRenderingContext2D.GBridge.getImageData(this.componentId, x, y, w, h, function(res) { res.data = Base64ToUint8ClampedArray(res.data); if (typeof(callback) == 'function') { callback(res); } }); } putImageData(data, x, y, w, h, callback) { if (data instanceof Uint8ClampedArray) { data = ArrayBufferToBase64(data); CanvasRenderingContext2D.GBridge.putImageData(this.componentId, data, x, y, w, h, function(res) { if (typeof(callback) == 'function') { callback(res); } }); } } toTempFilePath(x, y, width, height, destWidth, destHeight, fileType, quality, callback) { CanvasRenderingContext2D.GBridge.toTempFilePath(this.componentId, x, y, width, height, destWidth, destHeight, fileType, quality, function(res) { if (typeof(callback) == 'function') { callback(res); } }); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/ActiveInfo.js ================================================ export default class WebGLActiveInfo { className = 'WebGLActiveInfo'; constructor({ type, name, size }) { this.type = type; this.name = name; this.size = size; } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Buffer.js ================================================ import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLBuffer'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLBuffer { className = name; constructor(id) { this.id = id; } static uuid = uuid; uuid() { return uuid(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Framebuffer.js ================================================ import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLFrameBuffer'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLFramebuffer { className = name; constructor(id) { this.id = id; } static uuid = uuid; uuid() { return uuid(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/GLenum.js ================================================ export default { "DEPTH_BUFFER_BIT": 256, "STENCIL_BUFFER_BIT": 1024, "COLOR_BUFFER_BIT": 16384, "POINTS": 0, "LINES": 1, "LINE_LOOP": 2, "LINE_STRIP": 3, "TRIANGLES": 4, "TRIANGLE_STRIP": 5, "TRIANGLE_FAN": 6, "ZERO": 0, "ONE": 1, "SRC_COLOR": 768, "ONE_MINUS_SRC_COLOR": 769, "SRC_ALPHA": 770, "ONE_MINUS_SRC_ALPHA": 771, "DST_ALPHA": 772, "ONE_MINUS_DST_ALPHA": 773, "DST_COLOR": 774, "ONE_MINUS_DST_COLOR": 775, "SRC_ALPHA_SATURATE": 776, "FUNC_ADD": 32774, "BLEND_EQUATION": 32777, "BLEND_EQUATION_RGB": 32777, "BLEND_EQUATION_ALPHA": 34877, "FUNC_SUBTRACT": 32778, "FUNC_REVERSE_SUBTRACT": 32779, "BLEND_DST_RGB": 32968, "BLEND_SRC_RGB": 32969, "BLEND_DST_ALPHA": 32970, "BLEND_SRC_ALPHA": 32971, "CONSTANT_COLOR": 32769, "ONE_MINUS_CONSTANT_COLOR": 32770, "CONSTANT_ALPHA": 32771, "ONE_MINUS_CONSTANT_ALPHA": 32772, "BLEND_COLOR": 32773, "ARRAY_BUFFER": 34962, "ELEMENT_ARRAY_BUFFER": 34963, "ARRAY_BUFFER_BINDING": 34964, "ELEMENT_ARRAY_BUFFER_BINDING": 34965, "STREAM_DRAW": 35040, "STATIC_DRAW": 35044, "DYNAMIC_DRAW": 35048, "BUFFER_SIZE": 34660, "BUFFER_USAGE": 34661, "CURRENT_VERTEX_ATTRIB": 34342, "FRONT": 1028, "BACK": 1029, "FRONT_AND_BACK": 1032, "TEXTURE_2D": 3553, "CULL_FACE": 2884, "BLEND": 3042, "DITHER": 3024, "STENCIL_TEST": 2960, "DEPTH_TEST": 2929, "SCISSOR_TEST": 3089, "POLYGON_OFFSET_FILL": 32823, "SAMPLE_ALPHA_TO_COVERAGE": 32926, "SAMPLE_COVERAGE": 32928, "NO_ERROR": 0, "INVALID_ENUM": 1280, "INVALID_VALUE": 1281, "INVALID_OPERATION": 1282, "OUT_OF_MEMORY": 1285, "CW": 2304, "CCW": 2305, "LINE_WIDTH": 2849, "ALIASED_POINT_SIZE_RANGE": 33901, "ALIASED_LINE_WIDTH_RANGE": 33902, "CULL_FACE_MODE": 2885, "FRONT_FACE": 2886, "DEPTH_RANGE": 2928, "DEPTH_WRITEMASK": 2930, "DEPTH_CLEAR_VALUE": 2931, "DEPTH_FUNC": 2932, "STENCIL_CLEAR_VALUE": 2961, "STENCIL_FUNC": 2962, "STENCIL_FAIL": 2964, "STENCIL_PASS_DEPTH_FAIL": 2965, "STENCIL_PASS_DEPTH_PASS": 2966, "STENCIL_REF": 2967, "STENCIL_VALUE_MASK": 2963, "STENCIL_WRITEMASK": 2968, "STENCIL_BACK_FUNC": 34816, "STENCIL_BACK_FAIL": 34817, "STENCIL_BACK_PASS_DEPTH_FAIL": 34818, "STENCIL_BACK_PASS_DEPTH_PASS": 34819, "STENCIL_BACK_REF": 36003, "STENCIL_BACK_VALUE_MASK": 36004, "STENCIL_BACK_WRITEMASK": 36005, "VIEWPORT": 2978, "SCISSOR_BOX": 3088, "COLOR_CLEAR_VALUE": 3106, "COLOR_WRITEMASK": 3107, "UNPACK_ALIGNMENT": 3317, "PACK_ALIGNMENT": 3333, "MAX_TEXTURE_SIZE": 3379, "MAX_VIEWPORT_DIMS": 3386, "SUBPIXEL_BITS": 3408, "RED_BITS": 3410, "GREEN_BITS": 3411, "BLUE_BITS": 3412, "ALPHA_BITS": 3413, "DEPTH_BITS": 3414, "STENCIL_BITS": 3415, "POLYGON_OFFSET_UNITS": 10752, "POLYGON_OFFSET_FACTOR": 32824, "TEXTURE_BINDING_2D": 32873, "SAMPLE_BUFFERS": 32936, "SAMPLES": 32937, "SAMPLE_COVERAGE_VALUE": 32938, "SAMPLE_COVERAGE_INVERT": 32939, "COMPRESSED_TEXTURE_FORMATS": 34467, "DONT_CARE": 4352, "FASTEST": 4353, "NICEST": 4354, "GENERATE_MIPMAP_HINT": 33170, "BYTE": 5120, "UNSIGNED_BYTE": 5121, "SHORT": 5122, "UNSIGNED_SHORT": 5123, "INT": 5124, "UNSIGNED_INT": 5125, "FLOAT": 5126, "DEPTH_COMPONENT": 6402, "ALPHA": 6406, "RGB": 6407, "RGBA": 6408, "LUMINANCE": 6409, "LUMINANCE_ALPHA": 6410, "UNSIGNED_SHORT_4_4_4_4": 32819, "UNSIGNED_SHORT_5_5_5_1": 32820, "UNSIGNED_SHORT_5_6_5": 33635, "FRAGMENT_SHADER": 35632, "VERTEX_SHADER": 35633, "MAX_VERTEX_ATTRIBS": 34921, "MAX_VERTEX_UNIFORM_VECTORS": 36347, "MAX_VARYING_VECTORS": 36348, "MAX_COMBINED_TEXTURE_IMAGE_UNITS": 35661, "MAX_VERTEX_TEXTURE_IMAGE_UNITS": 35660, "MAX_TEXTURE_IMAGE_UNITS": 34930, "MAX_FRAGMENT_UNIFORM_VECTORS": 36349, "SHADER_TYPE": 35663, "DELETE_STATUS": 35712, "LINK_STATUS": 35714, "VALIDATE_STATUS": 35715, "ATTACHED_SHADERS": 35717, "ACTIVE_UNIFORMS": 35718, "ACTIVE_ATTRIBUTES": 35721, "SHADING_LANGUAGE_VERSION": 35724, "CURRENT_PROGRAM": 35725, "NEVER": 512, "LESS": 513, "EQUAL": 514, "LEQUAL": 515, "GREATER": 516, "NOTEQUAL": 517, "GEQUAL": 518, "ALWAYS": 519, "KEEP": 7680, "REPLACE": 7681, "INCR": 7682, "DECR": 7683, "INVERT": 5386, "INCR_WRAP": 34055, "DECR_WRAP": 34056, "VENDOR": 7936, "RENDERER": 7937, "VERSION": 7938, "NEAREST": 9728, "LINEAR": 9729, "NEAREST_MIPMAP_NEAREST": 9984, "LINEAR_MIPMAP_NEAREST": 9985, "NEAREST_MIPMAP_LINEAR": 9986, "LINEAR_MIPMAP_LINEAR": 9987, "TEXTURE_MAG_FILTER": 10240, "TEXTURE_MIN_FILTER": 10241, "TEXTURE_WRAP_S": 10242, "TEXTURE_WRAP_T": 10243, "TEXTURE": 5890, "TEXTURE_CUBE_MAP": 34067, "TEXTURE_BINDING_CUBE_MAP": 34068, "TEXTURE_CUBE_MAP_POSITIVE_X": 34069, "TEXTURE_CUBE_MAP_NEGATIVE_X": 34070, "TEXTURE_CUBE_MAP_POSITIVE_Y": 34071, "TEXTURE_CUBE_MAP_NEGATIVE_Y": 34072, "TEXTURE_CUBE_MAP_POSITIVE_Z": 34073, "TEXTURE_CUBE_MAP_NEGATIVE_Z": 34074, "MAX_CUBE_MAP_TEXTURE_SIZE": 34076, "TEXTURE0": 33984, "TEXTURE1": 33985, "TEXTURE2": 33986, "TEXTURE3": 33987, "TEXTURE4": 33988, "TEXTURE5": 33989, "TEXTURE6": 33990, "TEXTURE7": 33991, "TEXTURE8": 33992, "TEXTURE9": 33993, "TEXTURE10": 33994, "TEXTURE11": 33995, "TEXTURE12": 33996, "TEXTURE13": 33997, "TEXTURE14": 33998, "TEXTURE15": 33999, "TEXTURE16": 34000, "TEXTURE17": 34001, "TEXTURE18": 34002, "TEXTURE19": 34003, "TEXTURE20": 34004, "TEXTURE21": 34005, "TEXTURE22": 34006, "TEXTURE23": 34007, "TEXTURE24": 34008, "TEXTURE25": 34009, "TEXTURE26": 34010, "TEXTURE27": 34011, "TEXTURE28": 34012, "TEXTURE29": 34013, "TEXTURE30": 34014, "TEXTURE31": 34015, "ACTIVE_TEXTURE": 34016, "REPEAT": 10497, "CLAMP_TO_EDGE": 33071, "MIRRORED_REPEAT": 33648, "FLOAT_VEC2": 35664, "FLOAT_VEC3": 35665, "FLOAT_VEC4": 35666, "INT_VEC2": 35667, "INT_VEC3": 35668, "INT_VEC4": 35669, "BOOL": 35670, "BOOL_VEC2": 35671, "BOOL_VEC3": 35672, "BOOL_VEC4": 35673, "FLOAT_MAT2": 35674, "FLOAT_MAT3": 35675, "FLOAT_MAT4": 35676, "SAMPLER_2D": 35678, "SAMPLER_CUBE": 35680, "VERTEX_ATTRIB_ARRAY_ENABLED": 34338, "VERTEX_ATTRIB_ARRAY_SIZE": 34339, "VERTEX_ATTRIB_ARRAY_STRIDE": 34340, "VERTEX_ATTRIB_ARRAY_TYPE": 34341, "VERTEX_ATTRIB_ARRAY_NORMALIZED": 34922, "VERTEX_ATTRIB_ARRAY_POINTER": 34373, "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING": 34975, "IMPLEMENTATION_COLOR_READ_TYPE": 35738, "IMPLEMENTATION_COLOR_READ_FORMAT": 35739, "COMPILE_STATUS": 35713, "LOW_FLOAT": 36336, "MEDIUM_FLOAT": 36337, "HIGH_FLOAT": 36338, "LOW_INT": 36339, "MEDIUM_INT": 36340, "HIGH_INT": 36341, "FRAMEBUFFER": 36160, "RENDERBUFFER": 36161, "RGBA4": 32854, "RGB5_A1": 32855, "RGB565": 36194, "DEPTH_COMPONENT16": 33189, "STENCIL_INDEX8": 36168, "DEPTH_STENCIL": 34041, "RENDERBUFFER_WIDTH": 36162, "RENDERBUFFER_HEIGHT": 36163, "RENDERBUFFER_INTERNAL_FORMAT": 36164, "RENDERBUFFER_RED_SIZE": 36176, "RENDERBUFFER_GREEN_SIZE": 36177, "RENDERBUFFER_BLUE_SIZE": 36178, "RENDERBUFFER_ALPHA_SIZE": 36179, "RENDERBUFFER_DEPTH_SIZE": 36180, "RENDERBUFFER_STENCIL_SIZE": 36181, "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE": 36048, "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME": 36049, "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL": 36050, "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE": 36051, "COLOR_ATTACHMENT0": 36064, "DEPTH_ATTACHMENT": 36096, "STENCIL_ATTACHMENT": 36128, "DEPTH_STENCIL_ATTACHMENT": 33306, "NONE": 0, "FRAMEBUFFER_COMPLETE": 36053, "FRAMEBUFFER_INCOMPLETE_ATTACHMENT": 36054, "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT": 36055, "FRAMEBUFFER_INCOMPLETE_DIMENSIONS": 36057, "FRAMEBUFFER_UNSUPPORTED": 36061, "FRAMEBUFFER_BINDING": 36006, "RENDERBUFFER_BINDING": 36007, "MAX_RENDERBUFFER_SIZE": 34024, "INVALID_FRAMEBUFFER_OPERATION": 1286, "UNPACK_FLIP_Y_WEBGL": 37440, "UNPACK_PREMULTIPLY_ALPHA_WEBGL": 37441, "CONTEXT_LOST_WEBGL": 37442, "UNPACK_COLORSPACE_CONVERSION_WEBGL": 37443, "BROWSER_DEFAULT_WEBGL": 37444 }; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/GLmethod.js ================================================ let i = 1; const GLmethod = {}; GLmethod.activeTexture = i++; //1 GLmethod.attachShader = i++; GLmethod.bindAttribLocation = i++; GLmethod.bindBuffer = i++; GLmethod.bindFramebuffer = i++; GLmethod.bindRenderbuffer = i++; GLmethod.bindTexture = i++; GLmethod.blendColor = i++; GLmethod.blendEquation = i++; GLmethod.blendEquationSeparate = i++; //10 GLmethod.blendFunc = i++; GLmethod.blendFuncSeparate = i++; GLmethod.bufferData = i++; GLmethod.bufferSubData = i++; GLmethod.checkFramebufferStatus = i++; GLmethod.clear = i++; GLmethod.clearColor = i++; GLmethod.clearDepth = i++; GLmethod.clearStencil = i++; GLmethod.colorMask = i++; //20 GLmethod.compileShader = i++; GLmethod.compressedTexImage2D = i++; GLmethod.compressedTexSubImage2D = i++; GLmethod.copyTexImage2D = i++; GLmethod.copyTexSubImage2D = i++; GLmethod.createBuffer = i++; GLmethod.createFramebuffer = i++; GLmethod.createProgram = i++; GLmethod.createRenderbuffer = i++; GLmethod.createShader = i++; //30 GLmethod.createTexture = i++; GLmethod.cullFace = i++; GLmethod.deleteBuffer = i++; GLmethod.deleteFramebuffer = i++; GLmethod.deleteProgram = i++; GLmethod.deleteRenderbuffer = i++; GLmethod.deleteShader = i++; GLmethod.deleteTexture = i++; GLmethod.depthFunc = i++; GLmethod.depthMask = i++; //40 GLmethod.depthRange = i++; GLmethod.detachShader = i++; GLmethod.disable = i++; GLmethod.disableVertexAttribArray = i++; GLmethod.drawArrays = i++; GLmethod.drawArraysInstancedANGLE = i++; GLmethod.drawElements = i++; GLmethod.drawElementsInstancedANGLE = i++; GLmethod.enable = i++; GLmethod.enableVertexAttribArray = i++; //50 GLmethod.flush = i++; GLmethod.framebufferRenderbuffer = i++; GLmethod.framebufferTexture2D = i++; GLmethod.frontFace = i++; GLmethod.generateMipmap = i++; GLmethod.getActiveAttrib = i++; GLmethod.getActiveUniform = i++; GLmethod.getAttachedShaders = i++; GLmethod.getAttribLocation = i++; GLmethod.getBufferParameter = i++; //60 GLmethod.getContextAttributes = i++; GLmethod.getError = i++; GLmethod.getExtension = i++; GLmethod.getFramebufferAttachmentParameter = i++; GLmethod.getParameter = i++; GLmethod.getProgramInfoLog = i++; GLmethod.getProgramParameter = i++; GLmethod.getRenderbufferParameter = i++; GLmethod.getShaderInfoLog = i++; GLmethod.getShaderParameter = i++; //70 GLmethod.getShaderPrecisionFormat = i++; GLmethod.getShaderSource = i++; GLmethod.getSupportedExtensions = i++; GLmethod.getTexParameter = i++; GLmethod.getUniform = i++; GLmethod.getUniformLocation = i++; GLmethod.getVertexAttrib = i++; GLmethod.getVertexAttribOffset = i++; GLmethod.isBuffer = i++; GLmethod.isContextLost = i++; //80 GLmethod.isEnabled = i++; GLmethod.isFramebuffer = i++; GLmethod.isProgram = i++; GLmethod.isRenderbuffer = i++; GLmethod.isShader = i++; GLmethod.isTexture = i++; GLmethod.lineWidth = i++; GLmethod.linkProgram = i++; GLmethod.pixelStorei = i++; GLmethod.polygonOffset = i++; //90 GLmethod.readPixels = i++; GLmethod.renderbufferStorage = i++; GLmethod.sampleCoverage = i++; GLmethod.scissor = i++; GLmethod.shaderSource = i++; GLmethod.stencilFunc = i++; GLmethod.stencilFuncSeparate = i++; GLmethod.stencilMask = i++; GLmethod.stencilMaskSeparate = i++; GLmethod.stencilOp = i++; //100 GLmethod.stencilOpSeparate = i++; GLmethod.texImage2D = i++; GLmethod.texParameterf = i++; GLmethod.texParameteri = i++; GLmethod.texSubImage2D = i++; GLmethod.uniform1f = i++; GLmethod.uniform1fv = i++; GLmethod.uniform1i = i++; GLmethod.uniform1iv = i++; GLmethod.uniform2f = i++; //110 GLmethod.uniform2fv = i++; GLmethod.uniform2i = i++; GLmethod.uniform2iv = i++; GLmethod.uniform3f = i++; GLmethod.uniform3fv = i++; GLmethod.uniform3i = i++; GLmethod.uniform3iv = i++; GLmethod.uniform4f = i++; GLmethod.uniform4fv = i++; GLmethod.uniform4i = i++; //120 GLmethod.uniform4iv = i++; GLmethod.uniformMatrix2fv = i++; GLmethod.uniformMatrix3fv = i++; GLmethod.uniformMatrix4fv = i++; GLmethod.useProgram = i++; GLmethod.validateProgram = i++; GLmethod.vertexAttrib1f = i++; //new GLmethod.vertexAttrib2f = i++; //new GLmethod.vertexAttrib3f = i++; //new GLmethod.vertexAttrib4f = i++; //new //130 GLmethod.vertexAttrib1fv = i++; //new GLmethod.vertexAttrib2fv = i++; //new GLmethod.vertexAttrib3fv = i++; //new GLmethod.vertexAttrib4fv = i++; //new GLmethod.vertexAttribPointer = i++; GLmethod.viewport = i++; export default GLmethod; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/GLtype.js ================================================ const GLtype = {}; [ "GLbitfield", "GLboolean", "GLbyte", "GLclampf", "GLenum", "GLfloat", "GLint", "GLintptr", "GLsizei", "GLsizeiptr", "GLshort", "GLubyte", "GLuint", "GLushort" ].sort().map((typeName, i) => GLtype[typeName] = 1 >> (i + 1)); export default GLtype; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Program.js ================================================ import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLProgram'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLProgram { className = name; constructor(id) { this.id = id; } static uuid = uuid; uuid() { return uuid(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Renderbuffer.js ================================================ import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLRenderBuffer'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLRenderbuffer { className = name; constructor(id) { this.id = id; } static uuid = uuid; uuid() { return uuid(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/RenderingContext.js ================================================ import GLenum from './GLenum'; import ActiveInfo from './ActiveInfo'; import Buffer from './Buffer'; import Framebuffer from './Framebuffer'; import Renderbuffer from './Renderbuffer'; import Texture from './Texture'; import Program from './Program'; import Shader from './Shader'; import ShaderPrecisionFormat from './ShaderPrecisionFormat'; import UniformLocation from './UniformLocation'; import GLmethod from './GLmethod'; const processArray = (array, checkArrayType = false) => { function joinArray(arr, sep) { let res = ''; for (let i = 0; i < arr.length; i++) { if (i !== 0) { res += sep; } res += arr[i]; } return res; } let type = 'Float32Array'; if (checkArrayType) { if (array instanceof Uint8Array) { type = 'Uint8Array' } else if (array instanceof Uint16Array) { type = 'Uint16Array'; } else if (array instanceof Uint32Array) { type = 'Uint32Array'; } else if (array instanceof Float32Array) { type = 'Float32Array'; } else { throw new Error('Check array type failed. Array type is ' + typeof array); } } const ArrayTypes = { Uint8Array: 1, Uint16Array: 2, Uint32Array: 4, Float32Array: 14 }; return ArrayTypes[type] + ',' + btoa(joinArray(array, ',')) } export default class WebGLRenderingContext { // static GBridge = null; className = 'WebGLRenderingContext'; constructor(canvas, type, attrs) { this._canvas = canvas; this._type = type; this._version = 'WebGL 1.0'; this._attrs = attrs; this._map = new Map(); Object.keys(GLenum) .forEach(name => Object.defineProperty(this, name, { value: GLenum[name] })); } get canvas() { return this._canvas; } activeTexture = function (textureUnit) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.activeTexture + ',' + textureUnit, true ); } attachShader = function (progarm, shader) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.attachShader + ',' + progarm.id + ',' + shader.id, true ); } bindAttribLocation = function (program, index, name) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.bindAttribLocation + ',' + program.id + ',' + index + ',' + name, true ) } bindBuffer = function (target, buffer) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.bindBuffer + ',' + target + ',' + (buffer ? buffer.id : 0), true ); } bindFramebuffer = function (target, framebuffer) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.bindFramebuffer + ',' + target + ',' + (framebuffer ? framebuffer.id : 0), true ) } bindRenderbuffer = function (target, renderBuffer) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.bindRenderbuffer + ',' + target + ',' + (renderBuffer ? renderBuffer.id : 0), true ) } bindTexture = function (target, texture) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.bindTexture + ',' + target + ',' + (texture ? texture.id : 0), true ) } blendColor = function (r, g, b, a) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.blendColor + ',' + target + ',' + r + ',' + g + ',' + b + ',' + a, true ) } blendEquation = function (mode) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.blendEquation + ',' + mode, true ) } blendEquationSeparate = function (modeRGB, modeAlpha) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.blendEquationSeparate + ',' + modeRGB + ',' + modeAlpha, true ) } blendFunc = function (sfactor, dfactor) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.blendFunc + ',' + sfactor + ',' + dfactor, true ); } blendFuncSeparate = function (srcRGB, dstRGB, srcAlpha, dstAlpha) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.blendFuncSeparate + ',' + srcRGB + ',' + dstRGB + ',' + srcAlpha + ',' + dstAlpha, true ); } bufferData = function (target, data, usage) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.bufferData + ',' + target + ',' + processArray(data, true) + ',' + usage, true ) } bufferSubData = function (target, offset, data) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.bufferSubData + ',' + target + ',' + offset + ',' + processArray(data, true), true ) } checkFramebufferStatus = function (target) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.checkFramebufferStatus + ',' + target ); return Number(result); } clear = function (mask) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.clear + ',' + mask ); this._canvas._needRender = true; } clearColor = function (r, g, b, a) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.clearColor + ',' + r + ',' + g + ',' + b, true ) } clearDepth = function (depth) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.clearDepth + ',' + depth, true ) } clearStencil = function (s) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.clearStencil + ',' + s ); } colorMask = function (r, g, b, a) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.colorMask + ',' + r + ',' + g + ',' + b + ',' + a ) } compileShader = function (shader) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.compileShader + ',' + shader.id, true ) } compressedTexImage2D = function (target, level, internalformat, width, height, border, pixels) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.compressedTexImage2D + ',' + target + ',' + level + ',' + internalformat + ',' + width + ',' + height + ',' + border + ',' + processArray(pixels), true ) } compressedTexSubImage2D = function (target, level, xoffset, yoffset, width, height, format, pixels) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.compressedTexSubImage2D + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset + ',' + width + ',' + height + ',' + format + ',' + processArray(pixels), true ) } copyTexImage2D = function (target, level, internalformat, x, y, width, height, border) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.copyTexImage2D + ',' + target + ',' + level + ',' + internalformat + ',' + x + ',' + y + ',' + width + ',' + height + ',' + border, true ); } copyTexSubImage2D = function (target, level, xoffset, yoffset, x, y, width, height) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.copyTexSubImage2D + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset + ',' + x + ',' + y + ',' + width + ',' + height ); } createBuffer = function () { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.createBuffer + '' ); const buffer = new Buffer(result); this._map.set(buffer.uuid(), buffer); return buffer; } createFramebuffer = function () { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.createFramebuffer + '' ); const framebuffer = new Framebuffer(result); this._map.set(framebuffer.uuid(), framebuffer); return framebuffer; } createProgram = function () { const id = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.createProgram + '' ); const program = new Program(id); this._map.set(program.uuid(), program); return program; } createRenderbuffer = function () { const id = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.createRenderbuffer + '' ) const renderBuffer = new Renderbuffer(id); this._map.set(renderBuffer.uuid(), renderBuffer); return renderBuffer; } createShader = function (type) { const id = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.createShader + ',' + type ) const shader = new Shader(id, type); this._map.set(shader.uuid(), shader); return shader; } createTexture = function () { const id = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.createTexture + '' ); const texture = new Texture(id); this._map.set(texture.uuid(), texture); return texture; } cullFace = function (mode) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.cullFace + ',' + mode, true ) } deleteBuffer = function (buffer) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.deleteBuffer + ',' + buffer.id, true ) } deleteFramebuffer = function (framebuffer) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.deleteFramebuffer + ',' + framebuffer.id, true ) } deleteProgram = function (program) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.deleteProgram + ',' + program.id, true ) } deleteRenderbuffer = function (renderbuffer) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.deleteRenderbuffer + ',' + renderbuffer.id, true ) } deleteShader = function (shader) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.deleteShader + ',' + shader.id, true ) } deleteTexture = function (texture) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.deleteTexture + ',' + texture.id, true ) } depthFunc = function (func) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.depthFunc + ',' + func ) } depthMask = function (flag) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.depthMask + ',' + Number(flag), true ) } depthRange = function (zNear, zFar) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.depthRange + ',' + zNear + ',' + zFar, true ) } detachShader = function (program, shader) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.detachShader + ',' + program.id + ',' + shader.id, true ) } disable = function (cap) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.disable + ',' + cap, true ) } disableVertexAttribArray = function (index) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.disableVertexAttribArray + ',' + index, true ); } drawArrays = function (mode, first, count) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.drawArrays + ',' + mode + ',' + first + ',' + count ) this._canvas._needRender = true; } drawElements = function (mode, count, type, offset) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.drawElements + ',' + mode + ',' + count + ',' + type + ',' + offset + ';' ); this._canvas._needRender = true; } enable = function (cap) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.enable + ',' + cap, true ); } enableVertexAttribArray = function (index) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.enableVertexAttribArray + ',' + index, true ) } flush = function () { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.flush + '' ) } framebufferRenderbuffer = function (target, attachment, textarget, texture, level) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.framebufferRenderbuffer + ',' + target + ',' + attachment + ',' + textarget + ',' + (texture ? texture.id : 0) + ',' + level, true ) } framebufferTexture2D = function (target, attachment, textarget, texture, level) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.framebufferTexture2D + ',' + target + ',' + attachment + ',' + textarget + ',' + (texture ? texture.id : 0) + ',' + level, true ) } frontFace = function (mode) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.frontFace + ',' + mode, true ) } generateMipmap = function (target) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.generateMipmap + ',' + target, true ) } getActiveAttrib = function (progarm, index) { const resultString = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getActiveAttrib + ',' + progarm.id + ',' + index ) const [type, size, name] = resultString.split(','); return new ActiveInfo({ type: Number(type), size: Number(size), name }); } getActiveUniform = function (progarm, index) { const resultString = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getActiveUniform + ',' + progarm.id + ',' + index ); const [type, size, name] = resultString.split(','); return new ActiveInfo({ type: Number(type), size: Number(size), name }) } getAttachedShaders = function (progarm) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getAttachedShaders + ',' + progarm.id ); const [type, ...ids] = result; return ids.map(id => this._map.get(Shader.uuid(id))); } getAttribLocation = function (progarm, name) { return WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getAttribLocation + ',' + progarm.id + ',' + name ) } getBufferParameter = function (target, pname) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getBufferParameter + ',' + target + ',' + pname ); const [type, res] = getBufferParameter; return res; } getError = function () { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getError + '' ) return result; } getExtension = function (name) { return null; } getFramebufferAttachmentParameter = function (target, attachment, pname) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getFramebufferAttachmentParameter + ',' + target + ',' + attachment + ',' + pname ) switch (pname) { case GLenum.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: return this._map.get(Renderbuffer.uuid(result)) || this._map.get(Texture.uuid(result)) || null; default: return result; } } getParameter = function (pname) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getParameter + ',' + pname ) switch (pname) { case GLenum.VERSION: return this._version; case GLenum.ARRAY_BUFFER_BINDING: // buffer case GLenum.ELEMENT_ARRAY_BUFFER_BINDING: // buffer return this._map.get(Buffer.uuid(result)) || null; case GLenum.CURRENT_PROGRAM: // program return this._map.get(Program.uuid(result)) || null; case GLenum.FRAMEBUFFER_BINDING: // framebuffer return this._map.get(Framebuffer.uuid(result)) || null; case GLenum.RENDERBUFFER_BINDING: // renderbuffer return this._map.get(Renderbuffer.uuid(result)) || null; case GLenum.TEXTURE_BINDING_2D: // texture case GLenum.TEXTURE_BINDING_CUBE_MAP: // texture return this._map.get(Texture.uuid(result)) || null; case GLenum.ALIASED_LINE_WIDTH_RANGE: // Float32Array case GLenum.ALIASED_POINT_SIZE_RANGE: // Float32Array case GLenum.BLEND_COLOR: // Float32Array case GLenum.COLOR_CLEAR_VALUE: // Float32Array case GLenum.DEPTH_RANGE: // Float32Array case GLenum.MAX_VIEWPORT_DIMS: // Int32Array case GLenum.SCISSOR_BOX: // Int32Array case GLenum.VIEWPORT: // Int32Array case GLenum.COMPRESSED_TEXTURE_FORMATS: // Uint32Array default: const [type, ...res] = result.split(','); if (res.length === 1) { return Number(res[0]); } else { return res.map(Number); } } } getProgramInfoLog = function (progarm) { return WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getProgramInfoLog + ',' + progarm.id ) } getProgramParameter = function (program, pname) { const res = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getProgramParameter + ',' + program.id + ',' + pname ); const [type, result] = res.split(',').map(i => parseInt(i)); if (type === 1) { return Boolean(result); } else if (type === 2) { return result; } else { throw new Error('Unrecongized program paramater ' + res + ', type: ' + typeof res); } } getRenderbufferParameter = function (target, pname) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getRenderbufferParameter + ',' + target + ',' + pname ) return result; } getShaderInfoLog = function (shader) { return WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getShaderInfoLog + ',' + shader.id ); } getShaderParameter = function (shader, pname) { return WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getShaderParameter + ',' + shader.id + ',' + pname ) } getShaderPrecisionFormat = function (shaderType, precisionType) { const [rangeMin, rangeMax, precision] = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getShaderPrecisionFormat + ',' + shaderType + ',' + precisionType ); const shaderPrecisionFormat = new ShaderPrecisionFormat({ rangeMin: Number(rangeMin), rangeMax: Number(rangeMax), precision: Number(precision) }); return shaderPrecisionFormat; } getShaderSource = function (shader) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getShaderSource + ',' + shader.id ); return result; } getSupportedExtensions = function () { return Object.keys({}); } getTexParameter = function (target, pname) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getTexParameter + ',' + target + ',' + pname ) return result; } getUniformLocation = function (program, name) { const id = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getUniformLocation + ',' + program.id + ',' + name ); if (id === -1) { return null; } else { return new UniformLocation(Number(id)); } } getVertexAttrib = function (index, pname) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getVertexAttrib + ',' + index + ',' + pname ); switch (pname) { case GLenum.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: return this._map.get(Buffer.uuid(result)) || null; case GLenum.CURRENT_VERTEX_ATTRIB: // Float32Array default: return result; } } getVertexAttribOffset = function (index, pname) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.getVertexAttribOffset + ',' + index + ',' + pname ) return Number(result); } isBuffer = function (buffer) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.isBuffer + ',' + buffer.id ) return Boolean(result); } isContextLost = function () { return false; } isEnabled = function (cap) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.isEnabled + ',' + cap ) return Boolean(result); } isFramebuffer = function (framebuffer) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.isFramebuffer + ',' + framebuffer.id ) return Boolean(result); } isProgram = function (program) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.isProgram + ',' + program.id ) return Boolean(result); } isRenderbuffer = function (renderBuffer) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.isRenderbuffer + ',' + renderbuffer.id ) return Boolean(result); } isShader = function (shader) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.isShader + ',' + shader.id ) return Boolean(result); } isTexture = function (texture) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.isTexture + ',' + texture.id ); return Boolean(result); } lineWidth = function (width) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.lineWidth + ',' + width, true ) } linkProgram = function (program) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.linkProgram + ',' + program.id, true ); } pixelStorei = function (pname, param) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.pixelStorei + ',' + pname + ',' + Number(param) ) } polygonOffset = function (factor, units) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.polygonOffset + ',' + factor + ',' + units ) } readPixels = function (x, y, width, height, format, type, pixels) { const result = WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.readPixels + ',' + x + ',' + y + ',' + width + ',' + height + ',' + format + ',' + type ) return result; } renderbufferStorage = function (target, internalFormat, width, height) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.renderbufferStorage + ',' + target + ',' + internalFormat + ',' + width + ',' + height, true ) } sampleCoverage = function (value, invert) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.sampleCoverage + ',' + value + ',' + Number(invert), true ) } scissor = function (x, y, width, height) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.scissor + ',' + x + ',' + y + ',' + width + ',' + height, true ) } shaderSource = function (shader, source) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.shaderSource + ',' + shader.id + ',' + source ) } stencilFunc = function (func, ref, mask) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.stencilFunc + ',' + func + ',' + ref + ',' + mask, true ) } stencilFuncSeparate = function (face, func, ref, mask) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.stencilFuncSeparate + ',' + face + ',' + func + ',' + ref + ',' + mask, true ) } stencilMask = function (mask) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.stencilMask + ',' + mask, true ) } stencilMaskSeparate = function (face, mask) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.stencilMaskSeparate + ',' + face + ',' + mask, true ) } stencilOp = function (fail, zfail, zpass) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.stencilOp + ',' + fail + ',' + zfail + ',' + zpass ) } stencilOpSeparate = function (face, fail, zfail, zpass) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.stencilOp + ',' + face + ',' + fail + ',' + zfail + ',' + zpass, true ) } texImage2D = function (...args) { WebGLRenderingContext.GBridge.texImage2D(this._canvas.id, ...args); } texParameterf = function (target, pname, param) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.texParameterf + ',' + target + ',' + pname + ',' + param, true ) } texParameteri = function (target, pname, param) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.texParameteri + ',' + target + ',' + pname + ',' + param ) } texSubImage2D = function (...args) { WebGLRenderingContext.GBridge.texSubImage2D(this._canvas.id, ...args); } uniform1f = function (location, v0) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform1f + ',' + location.id + ',' + v0 ) } uniform1fv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform1fv + ',' + location.id + ',' + processArray(value), true ) } uniform1i = function (location, v0) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform1i + ',' + location.id + ',' + v0, // true ) } uniform1iv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform1iv + ',' + location.id + ',' + processArray(value), true ) } uniform2f = function (location, v0, v1) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform2f + ',' + location.id + ',' + v0 + ',' + v1, true ) } uniform2fv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform2fv + ',' + location.id + ',' + processArray(value), true ) } uniform2i = function (location, v0, v1) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform2i + ',' + location.id + ',' + v0 + ',' + v1, true ) } uniform2iv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform2iv + ',' + location.id + ',' + processArray(value), true ) } uniform3f = function (location, v0, v1, v2) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform3f + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2, true ) } uniform3fv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform3fv + ',' + location.id + ',' + processArray(value), true ) } uniform3i = function (location, v0, v1, v2) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform3i + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2, true ) } uniform3iv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform3iv + ',' + location.id + ',' + processArray(value), true ) } uniform4f = function (location, v0, v1, v2, v3) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform4f + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3, true ) } uniform4fv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform4fv + ',' + location.id + ',' + processArray(value), true ) } uniform4i = function (location, v0, v1, v2, v3) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform4i + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3, true ) } uniform4iv = function (location, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniform4iv + ',' + location.id + ',' + processArray(value, true), true ) } uniformMatrix2fv = function (location, transpose, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniformMatrix2fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value), true ) } uniformMatrix3fv = function (location, transpose, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniformMatrix3fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value), true ) } uniformMatrix4fv = function (location, transpose, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.uniformMatrix4fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value), true ); } useProgram = function (progarm) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.useProgram + ',' + progarm.id + '', true ) } validateProgram = function (program) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.validateProgram + ',' + program.id, true ) } vertexAttrib1f = function (index, v0) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib1f + ',' + index + ',' + v0, true ) } vertexAttrib2f = function (index, v0, v1) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib2f + ',' + index + ',' + v0 + ',' + v1, true ) } vertexAttrib3f = function (index, v0, v1, v2) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib3f + ',' + index + ',' + v0 + ',' + v1 + ',' + v2, true ) } vertexAttrib4f = function (index, v0, v1, v2, v3) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib4f + ',' + index + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3, true ) } vertexAttrib1fv = function (index, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib1fv + ',' + index + ',' + processArray(value), true ) } vertexAttrib2fv = function (index, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib2fv + ',' + index + ',' + processArray(value), true ) } vertexAttrib3fv = function (index, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib3fv + ',' + index + ',' + processArray(value), true ) } vertexAttrib4fv = function (index, value) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttrib4fv + ',' + index + ',' + processArray(value), true ) } vertexAttribPointer = function (index, size, type, normalized, stride, offset) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.vertexAttribPointer + ',' + index + ',' + size + ',' + type + ',' + Number(normalized) + ',' + stride + ',' + offset, true ) } viewport = function (x, y, width, height) { WebGLRenderingContext.GBridge.callNative( this._canvas.id, GLmethod.viewport + ',' + x + ',' + y + ',' + width + ',' + height, true ) } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Shader.js ================================================ import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLShader'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLShader { className = name; constructor(id, type) { this.id = id; this.type = type; } static uuid = uuid; uuid() { return uuid(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/ShaderPrecisionFormat.js ================================================ export default class WebGLShaderPrecisionFormat { className = 'WebGLShaderPrecisionFormat'; constructor({ rangeMin, rangeMax, precision }) { this.rangeMin = rangeMin; this.rangeMax = rangeMax; this.precision = precision; } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Texture.js ================================================ import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLTexture'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLTexture { className = name; constructor(id, type) { this.id = id; this.type = type; } static uuid = uuid; uuid() { return uuid(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/UniformLocation.js ================================================ import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLUniformLocation'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLUniformLocation { className = name; constructor(id, type) { this.id = id; this.type = type; } static uuid = uuid; uuid() { return uuid(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/classUtils.js ================================================ export function getTransferedObjectUUID(name, id) { return `${name.toLowerCase()}-${id}`; } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/env/canvas.js ================================================ import GContext2D from '../context-2d/RenderingContext'; import GContextWebGL from '../context-webgl/RenderingContext'; export default class GCanvas { // static GBridge = null; id = null; _needRender = true; constructor(id, { disableAutoSwap }) { this.id = id; this._disableAutoSwap = disableAutoSwap; if (disableAutoSwap) { this._swapBuffers = () => { GCanvas.GBridge.render(this.id); } } } getContext(type) { let context = null; if (type.match(/webgl/i)) { context = new GContextWebGL(this); context.componentId = this.id; if (!this._disableAutoSwap) { const render = () => { if (this._needRender) { GCanvas.GBridge.render(this.id); this._needRender = false; } } setInterval(render, 16); } GCanvas.GBridge.callSetContextType(this.id, 1); // 0 for 2d; 1 for webgl } else if (type.match(/2d/i)) { context = new GContext2D(this); context.componentId = this.id; // const render = ( callback ) => { // // const commands = context._drawCommands; // context._drawCommands = ''; // // GCanvas.GBridge.render2d(this.id, commands, callback); // this._needRender = false; // } // //draw方法触发 // context._flush = render; // //setInterval(render, 16); GCanvas.GBridge.callSetContextType(this.id, 0); } else { throw new Error('not supported context ' + type); } return context; } reset() { GCanvas.GBridge.callReset(this.id); } } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/env/image.js ================================================ let incId = 1; const noop = function () { }; class GImage { static GBridge = null; constructor() { this._id = incId++; this._width = 0; this._height = 0; this._src = undefined; this._onload = noop; this._onerror = noop; this.complete = false; } get width() { return this._width; } set width(v) { this._width = v; } get height() { return this._height; } set height(v) { this._height = v; } get src() { return this._src; } set src(v) { if (v.startsWith('//')) { v = 'http:' + v; } this._src = v; GImage.GBridge.perloadImage([this._src, this._id], (data) => { if (typeof data === 'string') { data = JSON.parse(data); } if (data.error) { var evt = { type: 'error', target: this }; this.onerror(evt); } else { this.complete = true; this.width = typeof data.width === 'number' ? data.width : 0; this.height = typeof data.height === 'number' ? data.height : 0; var evt = { type: 'load', target: this }; this.onload(evt); } }); } addEventListener(name, listener) { if (name === 'load') { this.onload = listener; } else if (name === 'error') { this.onerror = listener; } } removeEventListener(name, listener) { if (name === 'load') { this.onload = noop; } else if (name === 'error') { this.onerror = noop; } } get onload() { return this._onload; } set onload(v) { this._onload = v; } get onerror() { return this._onerror; } set onerror(v) { this._onerror = v; } } export default GImage; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/env/tool.js ================================================ export function ArrayBufferToBase64 (buffer) { var binary = ''; var bytes = new Uint8ClampedArray(buffer); for (var len = bytes.byteLength, i = 0; i < len; i++) { binary += String.fromCharCode(bytes[i]); } return btoa(binary); } export function Base64ToUint8ClampedArray(base64String) { const padding = '='.repeat((4 - base64String.length % 4) % 4); const base64 = (base64String + padding) .replace(/\-/g, '+') .replace(/_/g, '/'); const rawData = atob(base64); const outputArray = new Uint8ClampedArray(rawData.length); for (let i = 0; i < rawData.length; ++i) { outputArray[i] = rawData.charCodeAt(i); } return outputArray; } ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/index.js ================================================ import GCanvas from './env/canvas'; import GImage from './env/image'; import GWebGLRenderingContext from './context-webgl/RenderingContext'; import GContext2D from './context-2d/RenderingContext'; import GBridgeWeex from './bridge/bridge-weex'; export let Image = GImage; export let WeexBridge = GBridgeWeex; export function enable(el, { bridge, debug, disableAutoSwap, disableComboCommands } = {}) { const GBridge = GImage.GBridge = GCanvas.GBridge = GWebGLRenderingContext.GBridge = GContext2D.GBridge = bridge; GBridge.callEnable(el.ref, [ 0, // renderMode: 0--RENDERMODE_WHEN_DIRTY, 1--RENDERMODE_CONTINUOUSLY -1, // hybridLayerType: 0--LAYER_TYPE_NONE 1--LAYER_TYPE_SOFTWARE 2--LAYER_TYPE_HARDWARE false, // supportScroll false, // newCanvasMode 1, // compatible 'white',// clearColor false // sameLevel: newCanvasMode = true && true => GCanvasView and Webview is same level ]); if (debug === true) { GBridge.callEnableDebug(); } if (disableComboCommands) { GBridge.callEnableDisableCombo(); } var canvas = new GCanvas(el.ref, { disableAutoSwap }); canvas.width = el.style.width; canvas.height = el.style.height; return canvas; }; ================================================ FILE: uni_modules/Sansnn-uQRCode/js_sdk/uqrcode/uqrcode.js ================================================ //--------------------------------------------------------------------- // uQRCode二维码生成插件 v4.0.6 // // uQRCode是一款基于Javascript环境开发的二维码生成插件,适用所有Javascript运行环境的前端应用和Node.js。 // // Copyright (c) Sansnn uQRCode All rights reserved. // // Licensed under the Apache License, Version 2.0. // http://www.apache.org/licenses/LICENSE-2.0 // // github地址: // https://github.com/Sansnn/uQRCode // // npm地址: // https://www.npmjs.com/package/uqrcodejs // // uni-app插件市场地址: // https://ext.dcloud.net.cn/plugin?id=1287 // // 复制使用请保留本段注释,感谢支持开源! // //--------------------------------------------------------------------- //--------------------------------------------------------------------- // 当前文件格式为 es,将 bundle 保留为 ES 模块文件,适用于其他打包工具以及支持 ================================================ FILE: uni_modules/okingtz-cropper/package.json ================================================ { "id": "okingtz-cropper", "displayName": "image-cropper", "version": "1.0.10", "description": "头像上传裁切组件", "keywords": [ "小程序", "图片裁切", "头像剪切", "图片剪切", "cropper" ], "repository": "https://gitee.com/okingt/cropper", "engines": { "HBuilderX": "^3.1.0" }, "dcloudext": { "sale": { "regular": { "price": "0.00" }, "sourcecode": { "price": "0.00" } }, "contact": { "qq": "" }, "declaration": { "ads": "无", "data": "插件不采集任何数据", "permissions": "无" }, "npmurl": "", "type": "component-vue" }, "uni_modules": { "dependencies": [], "encrypt": [], "platforms": { "cloud": { "tcb": "y", "aliyun": "y" }, "client": { "App": { "app-vue": "u", "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", "阿里": "u", "百度": "u", "字节跳动": "u", "QQ": "u" }, "快应用": { "华为": "u", "联盟": "u" } } } } } ================================================ FILE: uni_modules/okingtz-cropper/readme.md ================================================ ### 组件说明 - 此组件是根据官方组件(hello-uniapp/pages/template/crop/crop.vue)优化而成,组件化; - 目的是为了方便之后的使用; - 希望此项目可以给各位老板提供一些思路,或者直接使用; - 欢迎各位老板评论、收藏,指教;如果有问题会不定时更新; - 长期更新。 ### 参数说明 | 参数 | 类型 | 必填 | 默认值 | 说明 | | :-------------------------: | :---------: | :--: | ------------- | ------------------------------------------------ | | fixed | Boolean | 否 | true | 固定比例(优先级高于cropWidth、cropHeight,如果设置固定比例则直接使用比例计算)| | fixedNumber | Array | 否 | [1,1] | [宽:高]比例数组(优先级高于cropWidth、cropHeight,如果设置固定比例则直接使用比例计算)| | cropWidth | Number | 否 | 200 | 裁剪框初始化宽度(px) | | cropHeight | Number | 否 | 200 | 裁剪框初始化高度(px) | | minWidth | Number | 否 | 20 | 最小宽度(px) | | minHeight | Number | 否 | 20 | 最小高度(px) | | saveLoading | String | 否 | 图片生成中... | 生成/上传图片时的loading文字 | | selectButtonText | String | 否 | 选择照片 | 选择照片的按钮文字 | | selectButtonColor | String | 否 | #FFFFFF | 选择照片的按钮文字颜色 | | selectButtonBackgroundColor | String | 否 | #FF2E80 | 选择照片的按钮背景颜色 | | saveButtonText | String | 否 | 上传 | 上传的按钮文字 | | saveButtonColor | String | 否 | #FFFFFF | 上传的按钮文字颜色 | | saveButtonBackgroundColor | String | 否 | #FF2E80 | 上传的按钮背景颜色 | | image | String | 否 | '' | 默认图片 | | maxCropper | Boolean | 否 | false | 打开时是够默认最大尺度展示裁剪框 | | fileType | String | 否 | 'jpg' | 目标文件的类型,只支持 'jpg' 或 'png'。默认为 'jpg'| | quality | Number | 否 | 1 | 图片的质量,取值范围为 (0, 1],不在范围内时当作1.0处理(微信小程序:目前仅对 jpg 有效)| | original | Boolean | 否 | true | 是否按照原始大小返回| | canMove | Boolean | 否 | true | 是否可以移动 | | canScale | Boolean | 否 | true | 是否可以放缩 | ### 使用方法 #### 导入插件 使用 HBuilderX 导入插件 #### 代码使用 ```vue ``` ================================================ FILE: utils/Foundation.js ================================================ /** * 一些常用的基础方法 * whetherNavigate 登录后跳转判断 * unixToDate 将unix时间戳转换为指定格式 * dateToUnix 将时间转unix时间戳 * deepClone 对一个对象进行深拷贝 * formatPrice 货币格式化 * secrecyMobile 手机号隐私保护 * randomString 随机生成指定长度的字符串 */ /** * 验证银行卡号 */ export function checkBankno(bankno) { var lastNum = bankno.substr(bankno.length - 1, 1); //取出最后一位(与luhm进行比较) var first15Num = bankno.substr(0, bankno.length - 1); //前15或18位 var newArr = []; for (var i = first15Num.length - 1; i > -1; i--) { //前15或18位倒序存进数组 newArr.push(first15Num.substr(i, 1)); } var arrJiShu = []; //奇数位*2的积 <9 var arrJiShu2 = []; //奇数位*2的积 >9 var arrOuShu = []; //偶数位数组 for (var j = 0; j < newArr.length; j++) { if ((j + 1) % 2 == 1) { //奇数位 if (parseInt(newArr[j]) * 2 < 9) arrJiShu.push(parseInt(newArr[j]) * 2); else arrJiShu2.push(parseInt(newArr[j]) * 2); } //偶数位 else arrOuShu.push(newArr[j]); } var jishu_child1 = []; //奇数位*2 >9 的分割之后的数组个位数 var jishu_child2 = []; //奇数位*2 >9 的分割之后的数组十位数 for (var h = 0; h < arrJiShu2.length; h++) { jishu_child1.push(parseInt(arrJiShu2[h]) % 10); jishu_child2.push(parseInt(arrJiShu2[h]) / 10); } var sumJiShu = 0; //奇数位*2 < 9 的数组之和 var sumOuShu = 0; //偶数位数组之和 var sumJiShuChild1 = 0; //奇数位*2 >9 的分割之后的数组个位数之和 var sumJiShuChild2 = 0; //奇数位*2 >9 的分割之后的数组十位数之和 var sumTotal = 0; for (var m = 0; m < arrJiShu.length; m++) { sumJiShu = sumJiShu + parseInt(arrJiShu[m]); } for (var n = 0; n < arrOuShu.length; n++) { sumOuShu = sumOuShu + parseInt(arrOuShu[n]); } for (var p = 0; p < jishu_child1.length; p++) { sumJiShuChild1 = sumJiShuChild1 + parseInt(jishu_child1[p]); sumJiShuChild2 = sumJiShuChild2 + parseInt(jishu_child2[p]); } //计算总和 sumTotal = parseInt(sumJiShu) + parseInt(sumOuShu) + parseInt(sumJiShuChild1) + parseInt(sumJiShuChild2); //计算Luhm值 var k = parseInt(sumTotal) % 10 == 0 ? 10 : parseInt(sumTotal) % 10; var luhm = 10 - k; if (lastNum == luhm) { return true; } else { return false; } } /** * 登录后跳转判断 * 计算出当前router路径 * 1.如果跳转的链接为登录页面或跳转的链接为空页面。则会重新跳转到首页 * 2.都不满足返回跳转页面 * @param type 'default' || 'wx' //返回地址会做判断默认为default */ export function whetherNavigate(type = "default") { let navigation = getCurrentPages()[getCurrentPages().length - (getCurrentPages().length ) ]; if (getCurrentPages().length > 1) { console.log(navigation, getCurrentPages()); if (navigation.route == "pages/passport/login") { navigationToBack(type); } else { if (!navigation.route || navigation.route == "undefined") { navigationToBack(type); } else { uni.navigateBack({ delta: getCurrentPages().length-1, }); } } } else { uni.switchTab({ url: "/pages/tabbar/home/index", }); } } /** * 将unix时间戳转换为指定格式 * @param unix 时间戳【秒】 * @param format 转换格式 * @returns {*|string} */ export function unixToDate(unix, format) { if (!unix) return unix; let _format = format || "yyyy-MM-dd hh:mm:ss"; const d = new Date(unix); const o = { "M+": d.getMonth() + 1, "d+": d.getDate(), "h+": d.getHours(), "m+": d.getMinutes(), "s+": d.getSeconds(), "q+": Math.floor((d.getMonth() + 3) / 3), S: d.getMilliseconds(), }; if (/(y+)/.test(_format)) _format = _format.replace( RegExp.$1, (d.getFullYear() + "").substr(4 - RegExp.$1.length) ); for (const k in o) if (new RegExp("(" + k + ")").test(_format)) _format = _format.replace( RegExp.$1, RegExp.$1.length === 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length) ); return _format; } /** * 将时间转unix时间戳 * @param date * @returns {number} 【秒】 */ export function dateToUnix(date) { let newStr = date.replace(/:/g, "-"); newStr = newStr.replace(/ /g, "-"); const arr = newStr.split("-"); const datum = new Date( Date.UTC( arr[0], arr[1] - 1, arr[2], arr[3] - 8 || -8, arr[4] || 0, arr[5] || 0 ) ); return parseInt(datum.getTime() / 1000); } /** * 货币格式化 * @param price * @returns {string} */ export function formatPrice(price) { if (typeof price !== "number") return price; return String(Number(price).toFixed(2)).replace(/\B(?=(\d{3})+(?!\d))/g, ","); } /** * 手机号隐私保护 * 隐藏中间四位数字 * @param mobile * @returns {*} */ export function secrecyMobile(mobile) { mobile = String(mobile); if (!/\d{11}/.test(mobile)) { return mobile; } return mobile.replace(/(\d{3})(\d{4})(\d{4})/, "$1****$3"); } /** * 随机生成指定长度的字符串 * @param length * @returns {string} */ export function randomString(length = 32) { const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; const maxPos = chars.length; let _string = ""; for (let i = 0; i < length; i++) { _string += chars.charAt(Math.floor(Math.random() * maxPos)); } return _string; } /** * 计算传秒数的倒计时【天、时、分、秒】 * @param seconds * @returns {{day : *, hours : *, minutes : *, seconds : *}} */ export function countTimeDown(seconds) { const leftTime = (time) => { if (time < 10) time = "0" + time; return time + ""; }; return { day: leftTime(parseInt(seconds / 60 / 60 / 24, 10)), hours: leftTime(parseInt((seconds / 60 / 60) % 24, 10)), minutes: leftTime(parseInt((seconds / 60) % 60, 10)), seconds: leftTime(parseInt(seconds % 60, 10)), }; } function navigationToBack(type) { if (type == "wx") { // console.log(getCurrentPages().length - 3) uni.navigateBack({ delta: getCurrentPages().length, }); } else { uni.switchTab({ url: "/pages/tabbar/home/index", }); } } /** * 计算当前时间到第二天0点的倒计时[秒] * @returns {number} */ export function theNextDayTime() { const nowDate = new Date(); const time = new Date( nowDate.getFullYear(), nowDate.getMonth(), nowDate.getDate() + 1, 0, 0, 0 ).getTime() - nowDate.getTime(); return parseInt(time / 1000); } module.exports = { unixToDate, dateToUnix, formatPrice, secrecyMobile, randomString, countTimeDown, theNextDayTime, whetherNavigate, checkBankno, }; ================================================ FILE: utils/RegExp.js ================================================ /** * 各种正则表达式 * mobile 手机号 * email 电子邮箱 * password 密码【6-20位】 * integer 正整数【不包含0】 * money 金钱 * TINumber 纳税识别号 * IDCard 身份证 * userName 账户名称【汉字、字母、数字、“-”、“_”的组合】 * URL URL * TEL 固定电话 */ // 手机号 export const mobile = /^0?(13[0-9]|14[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9])[0-9]{8}$/ // 电子邮箱 export const email = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/ // 密码【6-20位】 export const password = /^[@A-Za-z0-9!#$%^&*.~,]{6,20}$/ // 正整数【不包含0】 export const integer = /^[1-9]\d*$/ // 正整数【包含0】 export const Integer = /^[0-9]\d*$/ // 金钱 export const money = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/ // 纳税识别号 export const TINumber = /^((\d{6}[0-9A-Z]{9})|([0-9A-Za-z]{2}\d{6}[0-9A-Za-z]{10,12}))$/ // 身份证 export const IDCard = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/ // 账户名称【汉字、字母、数字、“-”、“_”的组合】 export const userName = /[A-Za-z0-9_\-\u4e00-\u9fa5]$/ // URL export const URL = /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/ // 固话 export const TEL = /0\d{2,3}-\d{7,8}/ // 营业执照号 export const licenseNum = /(^(?:(?![IOZSV])[\dA-Z]){2}\d{6}(?:(?![IOZSV])[\dA-Z]){10}$)|(^\d{15}$)/; ================================================ FILE: utils/emojis.js ================================================ /** * 动态表情 */ const emojis = { "[微笑]": "", "[撇嘴]": "", "[色]": "", "[发呆]": "", "[得意]": "", "[流泪]": "", "[害羞]": "", "[闭嘴]": "", "[睡]": "", "[大哭]": "", "[尴尬]": "", "[发怒]": "", "[调皮]": "", "[呲牙]": "", "[惊讶]": "", "[难过]": "", "[酷]": "", "[冷汗]": "", "[抓狂]": "", "[吐]": "", "[偷笑]": "", "[可爱]": "", "[白眼]": "", "[傲慢]": "", "[饥饿]": "", "[困]": "", "[惊恐]": "", "[流汗]": "", "[憨笑]": "", "[大兵]": "", "[奋斗]": "", "[咒骂]": "", "[疑问]": "", "[嘘]": "", "[晕]": "", "[折磨]": "", "[衰]": "", "[骷髅]": "", "[敲打]": "", "[再见]": "", "[擦汗]": "", "[抠鼻]": "", "[鼓掌]": "", "[糗大了]": "", "[坏笑]": "", "[左哼哼]": "", "[右哼哼]": "", "[哈欠]": "", "[鄙视]": "", "[委屈]": "", "[快哭了]": "", "[阴险]": "", "[亲亲]": "", "[吓]": "", "[可怜]": "", "[菜刀]": "", "[西瓜]": "", "[啤酒]": "", "[篮球]": "", "[乒乓]": "", "[咖啡]": "", "[饭]": "", "[猪头]": "", "[玫瑰]": "", "[凋谢]": "", "[示爱]": "", "[爱心]": "", "[心碎]": "", "[蛋糕]": "", "[闪电]": "", "[炸弹]": "", "[刀]": "", "[足球]": "", "[瓢虫]": "", "[便便]": "", "[月亮]": "", "[太阳]": "", "[礼物]": "", "[拥抱]": "", "[强]": "", "[弱]": "", "[握手]": "", "[胜利]": "", "[抱拳]": "", "[勾引]": "", "[拳头]": "", "[差劲]": "", "[爱你]": "", "[NO]": "", "[OK]": "", "[爱情]": "", "[飞吻]": "", "[跳跳]": "", "[发抖]": "", "[怄火]": "", "[转圈]": "", "[磕头]": "", "[回头]": "", "[跳绳]": "", "[挥手]": "", "[激动]": "", "[街舞]": "", "[献吻]": "", "[左太极]": "", "[右太极]": "", }; /** * 符号表情 */ const symbol = [ "😠", "😩", "😲", "😞", "😵", "😰", "😒", "😍", "😤", "😜", "😝", "😋", "😘", "😚", "😷", "😳", "😃", "😅", "😆", "😁", "😂", "😊", "☺", "😄", "😢", "😭", "😨", "😣", "😡", "😌", "😖", "😔", "😱", "😪", "😏", "😓", "😥", "😫", "😉", "✊", "✋", "✌", "👊", "👍", "☝", "👆", "👇", "👈", "👉", "👋", "👏", "👌", "👎" ]; const emojisKeys = Object.keys(emojis); export const emojiList = { symbol, emojis } const regEmoji = emojisKeys.map((value) => '|\\' + value).join('').replace('|', '') /** * 替换表情文字 * * @param {String} content 需要替换的字符串 */ export function textReplaceEmoji (content) { if (!content) { return "" } return content.replace(new RegExp(`(${regEmoji})`, 'gi'), ($0, $1) => { return emojis[$1]; }); } export const emojistwo = Object.keys(emojis) ================================================ FILE: utils/filters.js ================================================ import { logout, logoffConfirm } from "@/api/login"; import { getUserInfo } from "@/api/members"; import storage from "@/utils/storage.js"; import Vue from "vue"; import Foundation from "./Foundation.js"; /** * 金钱单位置换 2999 --> 2,999.00 * @param val * @param unit * @param location * @returns {*} */ export function unitPrice (val, unit, location) { if (!val) val = 0; let price = Foundation.formatPrice(val); if (location === "before") { return price.substr(0, price.length - 3); } if (location === "after") { return price.substr(-2); } return (unit || "") + price; } /** * 格式化价格 1999 --> [1999,00] * @param {*} val * @returns */ export function goodsFormatPrice (val) { if (typeof val == "undefined") { return val; } let valNum = new Number(val); return valNum.toFixed(2).split("."); } /** * 将内容复制到粘贴板 */ import { h5Copy } from "@/js_sdk/h5-copy/h5-copy.js"; export function setClipboard (val) { // #ifdef H5 if (val === null || val === undefined) { val = ""; } else val = val + ""; const result = h5Copy(val); if (result === false) { uni.showToast({ title: "不支持", }); } else { uni.showToast({ title: "复制成功", icon: "none", }); } // #endif // #ifndef H5 uni.setClipboardData({ data: val, success: function () { uni.showToast({ title: "复制成功!", duration: 2000, icon: "none", }); }, }); // #endif } /** * 拨打电话 */ export function callPhone (phoneNumber) { uni.makePhoneCall({ phoneNumber: phoneNumber, }); } /** * 脱敏姓名 */ export function noPassByName (str) { if (null != str && str != undefined) { if (str.length <= 3) { return "*" + str.substring(1, str.length); } else if (str.length > 3 && str.length <= 6) { return "**" + str.substring(2, str.length); } else if (str.length > 6) { return str.substring(0, 2) + "****" + str.substring(6, str.length); } } else { return ""; } } /** * 处理unix时间戳,转换为可阅读时间格式 * @param unix * @param format * @returns {*|string} */ export function unixToDate (unix, format) { let _format = format || "yyyy-MM-dd hh:mm:ss"; const d = new Date(unix * 1000); const o = { "M+": d.getMonth() + 1, "d+": d.getDate(), "h+": d.getHours(), "m+": d.getMinutes(), "s+": d.getSeconds(), "q+": Math.floor((d.getMonth() + 3) / 3), S: d.getMilliseconds(), }; if (/(y+)/.test(_format)) _format = _format.replace( RegExp.$1, (d.getFullYear() + "").substr(4 - RegExp.$1.length) ); for (const k in o) if (new RegExp("(" + k + ")").test(_format)) _format = _format.replace( RegExp.$1, RegExp.$1.length === 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length) ); return _format; } /** * 人性化显示时间 * * @param {Object} datetime */ export function beautifyTime (datetime = "") { if (datetime == null || datetime == undefined || !datetime) { return ""; } datetime = timestampToTime(datetime).replace(/-/g, "/"); let time = new Date(); let outTime = new Date(datetime); if (/^[1-9]\d*$/.test(datetime)) { outTime = new Date(parseInt(datetime) * 1000); } if (time.getTime() < outTime.getTime()) { return parseTime(outTime, "{y}/{m}/{d}"); } if (time.getFullYear() != outTime.getFullYear()) { return parseTime(outTime, "{y}/{m}/{d}"); } if (time.getMonth() != outTime.getMonth()) { return parseTime(outTime, "{m}/{d}"); } if (time.getDate() != outTime.getDate()) { let day = outTime.getDate() - time.getDate(); if (day == -1) { return parseTime(outTime, "昨天 {h}:{i}"); } if (day == -2) { return parseTime(outTime, "前天 {h}:{i}"); } return parseTime(outTime, "{m}-{d}"); } if (time.getHours() != outTime.getHours()) { return parseTime(outTime, "{h}:{i}"); } let minutes = outTime.getMinutes() - time.getMinutes(); if (minutes == 0) { return "刚刚"; } minutes = Math.abs(minutes); return `${minutes}分钟前`; } // 时间转换 function timestampToTime (timestamp) { var date = new Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 var Y = date.getFullYear() + '-'; var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'; var D = date.getDate() + ' '; var h = date.getHours() + ':'; var m = date.getMinutes() + ':'; var s = date.getSeconds(); return Y + M + D + h + m + s; } /** * 13888888888 -> 138****8888 * @param mobile * @returns {*} */ export function secrecyMobile (mobile) { mobile = String(mobile); if (!/\d{11}/.test(mobile)) { return mobile; } return mobile.replace(/(\d{3})(\d{4})(\d{4})/, "$1****$3"); } /** * 人性化时间显示 * * @param {Object} datetime */ export function formatTime (datetime) { if (datetime == null) return ""; datetime = datetime.replace(/-/g, "/"); let time = new Date(); let outTime = new Date(datetime); if (/^[1-9]\d*$/.test(datetime)) { outTime = new Date(parseInt(datetime) * 1000); } if ( time.getTime() < outTime.getTime() || time.getFullYear() != outTime.getFullYear() ) { return parseTime(outTime, "{y}-{m}-{d} {h}:{i}"); } if (time.getMonth() != outTime.getMonth()) { return parseTime(outTime, "{m}-{d} {h}:{i}"); } if (time.getDate() != outTime.getDate()) { let day = outTime.getDate() - time.getDate(); if (day == -1) { return parseTime(outTime, "昨天 {h}:{i}"); } if (day == -2) { return parseTime(outTime, "前天 {h}:{i}"); } return parseTime(outTime, "{m}-{d} {h}:{i}"); } if (time.getHours() != outTime.getHours()) { return parseTime(outTime, "{h}:{i}"); } let minutes = outTime.getMinutes() - time.getMinutes(); if (minutes == 0) { return "刚刚"; } minutes = Math.abs(minutes); return `${minutes}分钟前`; } /** * 时间格式化方法 * * @param {(Object|string|number)} time * @param {String} cFormat * @returns {String | null} */ export function parseTime (time, cFormat) { if (arguments.length === 0) { return null; } let date; const format = cFormat || "{y}-{m}-{d} {h}:{i}:{s}"; if (typeof time === "object") { date = time; } else { if (typeof time === "string" && /^[0-9]+$/.test(time)) { time = parseInt(time); } if (typeof time === "number" && time.toString().length === 10) { time = time * 1000; console.log("时间判断为number"); } date = new Date(time.replace(/-/g, "/")); } const formatObj = { y: date.getFullYear(), m: date.getMonth() + 1, d: date.getDate(), h: date.getHours(), i: date.getMinutes(), s: date.getSeconds(), a: date.getDay(), }; const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => { const value = formatObj[key]; // Note: getDay() returns 0 on Sunday if (key === "a") { return ["日", "一", "二", "三", "四", "五", "六"][value]; } return value.toString().padStart(2, "0"); }); return time_str; } /** * 清除逗号 * */ export function clearStrComma (str) { str = str.replace(/,/g, ""); //取消字符串中出现的所有逗号 return str; } /** * 判断用户是否登录 * @param val 如果为auth则判断是否登录 * 如果传入 auth 则为判断是否登录 */ export function isLogin (val) { let userInfo = storage.getUserInfo(); if (val == "auth") { return userInfo && userInfo.id ? true : false; } else { return storage.getUserInfo(); } } /** * 退出登录 * */ export function quiteLoginOut () { uni.showModal({ title: "提示", content: "是否退出登录?", confirmColor: Vue.prototype.$mainColor, async success (res) { if (res.confirm) { storage.setAccessToken(""); storage.setRefreshToken(""); storage.setUserInfo({}); storage.setHasLogin(false) navigateToLogin("redirectTo"); await logout(); } }, }); } /** * 用户注销 * */ export function logoff () { uni.showModal({ title: "提示", content: "确认注销用户么?注销用户将无法再次登录并失去当前数据。", confirmColor: Vue.prototype.$mainColor, async success (res) { if (res.confirm) { await logoffConfirm(); storage.setAccessToken(""); storage.setRefreshToken(""); storage.setUserInfo({}); navigateToLogin("redirectTo"); } }, }); } /** * 跳转im */ export function talkIm (storeId, goodsId, id) { if (isLogin('auth')) { let url = `/pages/mine/im/index?userId=${storeId}` if(goodsId && id) url = `/pages/mine/im/index?userId=${storeId}&goodsid=${goodsId}&skuid=${id}` uni.navigateTo({ url }); } else { tipsToLogin() } } export function tipsToLogin (type) { if (!isLogin("auth")) { uni.showModal({ title: "提示", content: "当前用户未登录是否登录?", confirmText: "确定", cancelText: "取消", confirmColor: Vue.prototype.$mainColor, success: (res) => { if (res.confirm) { navigateToLogin(); } else if (res.cancel) { if(type !== 'normal'){ uni.navigateBack(); } } }, }); return false; } return true; } /** * 获取用户信息并重新添加到缓存里面 */ export async function userInfo () { let res = await getUserInfo(); if (res.data.success) { storage.setUserInfo(res.data.result); return res.data.result; } } /** * 验证是否登录如果没登录则去登录 * @param {*} val * @returns */ export function forceLogin () { let userInfo = storage.getUserInfo(); if (!userInfo || !userInfo.id) { // #ifdef MP-WEIXIN uni.navigateTo({ url: "/pages/passport/wechatMPLogin", }); // #endif // #ifndef MP-WEIXIN uni.navigateTo({ url: "/pages/passport/login", }); // #endif } } /** * 获取当前加载的页面对象 * @param val */ export function getPages (val) { const pages = getCurrentPages(); //获取加载的页面 const currentPage = pages[pages.length - 1]; //获取当前页面的对象 const url = currentPage.route; //当前页面url return val ? currentPage : url; } /** * 跳转到登录页面 */ export function navigateToLogin (type = "navigateTo") { /** * 此处进行条件编译判断 * 微信小程序跳转到微信小程序登录页面 * H5/App跳转到普通登录页面 */ // #ifdef MP-WEIXIN uni[type]({ url: "/pages/passport/wechatMPLogin", }); // #endif // #ifndef MP-WEIXIN uni[type]({ url: "/pages/passport/login", }); // #endif } /** * 服务状态列表 */ export function serviceStatusList (val) { let statusList = { APPLY: "申请售后", PASS: "通过售后", REFUSE: "拒绝售后", BUYER_RETURN: "买家退货,待卖家收货", SELLER_RE_DELIVERY: "商家换货/补发", SELLER_CONFIRM: "卖家确认收货", SELLER_TERMINATION: "卖家终止售后", BUYER_CONFIRM: "买家确认收货", BUYER_CANCEL: "买家取消售后", WAIT_REFUND: "等待平台退款", COMPLETE: "完成售后", }; return statusList[val]; } /** * 订单状态列表 */ export function orderStatusList (val) { let orderStatusList = { UNDELIVERED: "待发货", UNPAID: "未付款", PAID: "已付款", PARTS_DELIVERED: "部分发货", DELIVERED: "已发货", CANCELLED: "已取消", COMPLETED: "已完成", COMPLETE: "已完成", TAKE: "待核验", STAY_PICKED_UP: "待自提", }; return orderStatusList[val]; } ================================================ FILE: utils/md5.js ================================================ /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 1.1 Copyright (C) Paul Johnston 1999 - 2002. * Code also contributed by Greg Holt * See http://pajhome.org.uk/site/legal.html for details. */ /* * Add integers, wrapping at 2^32. This uses 16-bit operations internally * to work around bugs in some JS interpreters. */ function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF) var msw = (x >> 16) + (y >> 16) + (lsw >> 16) return (msw << 16) | (lsw & 0xFFFF) } /* * Bitwise rotate a 32-bit number to the left. */ function rol(num, cnt) { return (num << cnt) | (num >>> (32 - cnt)) } /* * These functions implement the four basic operations the algorithm uses. */ function cmn(q, a, b, x, s, t) { return safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b) } function ff(a, b, c, d, x, s, t) { return cmn((b & c) | ((~b) & d), a, b, x, s, t) } function gg(a, b, c, d, x, s, t) { return cmn((b & d) | (c & (~d)), a, b, x, s, t) } function hh(a, b, c, d, x, s, t) { return cmn(b ^ c ^ d, a, b, x, s, t) } function ii(a, b, c, d, x, s, t) { return cmn(c ^ (b | (~d)), a, b, x, s, t) } /* * Calculate the MD5 of an array of little-endian words, producing an array * of little-endian words. */ function coreMD5(x) { var a = 1732584193 var b = -271733879 var c = -1732584194 var d = 271733878 for (var i = 0; i < x.length; i += 16) { var olda = a var oldb = b var oldc = c var oldd = d a = ff(a, b, c, d, x[i + 0], 7, -680876936) d = ff(d, a, b, c, x[i + 1], 12, -389564586) c = ff(c, d, a, b, x[i + 2], 17, 606105819) b = ff(b, c, d, a, x[i + 3], 22, -1044525330) a = ff(a, b, c, d, x[i + 4], 7, -176418897) d = ff(d, a, b, c, x[i + 5], 12, 1200080426) c = ff(c, d, a, b, x[i + 6], 17, -1473231341) b = ff(b, c, d, a, x[i + 7], 22, -45705983) a = ff(a, b, c, d, x[i + 8], 7, 1770035416) d = ff(d, a, b, c, x[i + 9], 12, -1958414417) c = ff(c, d, a, b, x[i + 10], 17, -42063) b = ff(b, c, d, a, x[i + 11], 22, -1990404162) a = ff(a, b, c, d, x[i + 12], 7, 1804603682) d = ff(d, a, b, c, x[i + 13], 12, -40341101) c = ff(c, d, a, b, x[i + 14], 17, -1502002290) b = ff(b, c, d, a, x[i + 15], 22, 1236535329) a = gg(a, b, c, d, x[i + 1], 5, -165796510) d = gg(d, a, b, c, x[i + 6], 9, -1069501632) c = gg(c, d, a, b, x[i + 11], 14, 643717713) b = gg(b, c, d, a, x[i + 0], 20, -373897302) a = gg(a, b, c, d, x[i + 5], 5, -701558691) d = gg(d, a, b, c, x[i + 10], 9, 38016083) c = gg(c, d, a, b, x[i + 15], 14, -660478335) b = gg(b, c, d, a, x[i + 4], 20, -405537848) a = gg(a, b, c, d, x[i + 9], 5, 568446438) d = gg(d, a, b, c, x[i + 14], 9, -1019803690) c = gg(c, d, a, b, x[i + 3], 14, -187363961) b = gg(b, c, d, a, x[i + 8], 20, 1163531501) a = gg(a, b, c, d, x[i + 13], 5, -1444681467) d = gg(d, a, b, c, x[i + 2], 9, -51403784) c = gg(c, d, a, b, x[i + 7], 14, 1735328473) b = gg(b, c, d, a, x[i + 12], 20, -1926607734) a = hh(a, b, c, d, x[i + 5], 4, -378558) d = hh(d, a, b, c, x[i + 8], 11, -2022574463) c = hh(c, d, a, b, x[i + 11], 16, 1839030562) b = hh(b, c, d, a, x[i + 14], 23, -35309556) a = hh(a, b, c, d, x[i + 1], 4, -1530992060) d = hh(d, a, b, c, x[i + 4], 11, 1272893353) c = hh(c, d, a, b, x[i + 7], 16, -155497632) b = hh(b, c, d, a, x[i + 10], 23, -1094730640) a = hh(a, b, c, d, x[i + 13], 4, 681279174) d = hh(d, a, b, c, x[i + 0], 11, -358537222) c = hh(c, d, a, b, x[i + 3], 16, -722521979) b = hh(b, c, d, a, x[i + 6], 23, 76029189) a = hh(a, b, c, d, x[i + 9], 4, -640364487) d = hh(d, a, b, c, x[i + 12], 11, -421815835) c = hh(c, d, a, b, x[i + 15], 16, 530742520) b = hh(b, c, d, a, x[i + 2], 23, -995338651) a = ii(a, b, c, d, x[i + 0], 6, -198630844) d = ii(d, a, b, c, x[i + 7], 10, 1126891415) c = ii(c, d, a, b, x[i + 14], 15, -1416354905) b = ii(b, c, d, a, x[i + 5], 21, -57434055) a = ii(a, b, c, d, x[i + 12], 6, 1700485571) d = ii(d, a, b, c, x[i + 3], 10, -1894986606) c = ii(c, d, a, b, x[i + 10], 15, -1051523) b = ii(b, c, d, a, x[i + 1], 21, -2054922799) a = ii(a, b, c, d, x[i + 8], 6, 1873313359) d = ii(d, a, b, c, x[i + 15], 10, -30611744) c = ii(c, d, a, b, x[i + 6], 15, -1560198380) b = ii(b, c, d, a, x[i + 13], 21, 1309151649) a = ii(a, b, c, d, x[i + 4], 6, -145523070) d = ii(d, a, b, c, x[i + 11], 10, -1120210379) c = ii(c, d, a, b, x[i + 2], 15, 718787259) b = ii(b, c, d, a, x[i + 9], 21, -343485551) a = safe_add(a, olda) b = safe_add(b, oldb) c = safe_add(c, oldc) d = safe_add(d, oldd) } return [a, b, c, d] } /* * Convert an array of little-endian words to a hex string. */ function binl2hex(binarray) { var hex_tab = "0123456789abcdef" var str = "" for (var i = 0; i < binarray.length * 4; i++) { str += hex_tab.charAt((binarray[i >> 2] >> ((i % 4) * 8 + 4)) & 0xF) + hex_tab.charAt((binarray[i >> 2] >> ((i % 4) * 8)) & 0xF) } return str } /* * Convert an array of little-endian words to a base64 encoded string. */ function binl2b64(binarray) { var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" var str = "" for (var i = 0; i < binarray.length * 32; i += 6) { str += tab.charAt(((binarray[i >> 5] << (i % 32)) & 0x3F) | ((binarray[i >> 5 + 1] >> (32 - i % 32)) & 0x3F)) } return str } /* * Convert an 8-bit character string to a sequence of 16-word blocks, stored * as an array, and append appropriate padding for MD4/5 calculation. * If any of the characters are >255, the high byte is silently ignored. */ function str2binl(str) { var nblk = ((str.length + 8) >> 6) + 1 // number of 16-word blocks var blks = new Array(nblk * 16) for (var i = 0; i < nblk * 16; i++) blks[i] = 0 for (var i = 0; i < str.length; i++) blks[i >> 2] |= (str.charCodeAt(i) & 0xFF) << ((i % 4) * 8) blks[i >> 2] |= 0x80 << ((i % 4) * 8) blks[nblk * 16 - 2] = str.length * 8 return blks } /* * Convert a wide-character string to a sequence of 16-word blocks, stored as * an array, and append appropriate padding for MD4/5 calculation. */ function strw2binl(str) { var nblk = ((str.length + 4) >> 5) + 1 // number of 16-word blocks var blks = new Array(nblk * 16) for (var i = 0; i < nblk * 16; i++) blks[i] = 0 for (var i = 0; i < str.length; i++) blks[i >> 1] |= str.charCodeAt(i) << ((i % 2) * 16) blks[i >> 1] |= 0x80 << ((i % 2) * 16) blks[nblk * 16 - 2] = str.length * 16 return blks } /* * External interface */ function hexMD5(str) { return binl2hex(coreMD5(str2binl(str))) } function hexMD5w(str) { return binl2hex(coreMD5(strw2binl(str))) } function b64MD5(str) { return binl2b64(coreMD5(str2binl(str))) } function b64MD5w(str) { return binl2b64(coreMD5(strw2binl(str))) } /* Backward compatibility */ function calcMD5(str) { return binl2hex(coreMD5(str2binl(str))) } module.exports = { md5: hexMD5 } ================================================ FILE: utils/request.js ================================================ import { refreshTokenFn } from "@/api/login.js"; import api from "@/config/api.js"; import Request from "@/lib/request/index.js"; import Foundation from "@/utils/Foundation.js"; import { md5 } from "@/utils/md5.js"; import storage from "@/utils/storage.js"; import jwt from '@/js_sdk/t-jwt/jwt.js'; import uuid from "@/utils/uuid.modified.js"; import store from "../store"; let isNavigateTo = false function cleanStorage() { uni.showToast({ title: "你的登录状态已过期,请重新登录", icon: "none", duration: 1500, }); if (uni.showLoading()) { uni.hideLoading(); } storage.setHasLogin(false); storage.setAccessToken(""); storage.setRefreshToken(""); console.log("清空token"); storage.setUuid(""); storage.setUserInfo({}); if (!isNavigateTo) { isNavigateTo = true // 防抖处理跳转 // #ifdef MP-WEIXIN uni.navigateTo({ url: "/pages/passport/wechatMPLogin", }); // #endif // #ifndef MP-WEIXIN uni.navigateTo({ url: "/pages/passport/login", }); // #endif } } let http = new Request(); /** * 创建uuid方法 */ const createUuid = () => { if (!storage.getUuid()) { storage.setUuid(uuid.v1()); console.log("uuid", storage.getUuid()); } } http.setConfig((config) => { createUuid(); /* 设置全局配置 */ config.baseURL = api.buyer; config.header = { ...config.header, }; config.validateStatus = (statusCode) => { // 不论什么状态,统一在正确中处理 return true; }; return config; }); http.interceptors.request.use( (config) => { /* 请求之前拦截器。可以使用async await 做异步操作 */ let accessToken = storage.getAccessToken(); if(storage.getInviter()){ config.header.inviter = storage.getInviter(); } if (accessToken) { /** * 使用JWT解析 * 小于当前时间将当前token清除 */ const decodeJwt = jwt(accessToken); const timing = new Date().getTime() / 1000 if (decodeJwt.exp <= timing) { accessToken = "" storage.setAccessToken('') } const nonce = Foundation.randomString(6); const timestamp = parseInt(new Date().getTime() / 1000); const sign = md5(nonce + timestamp + accessToken); const _params = { nonce, timestamp, sign, }; let params = config.params || {}; params = { ...params, ..._params }; config.params = params; config.header.accessToken = accessToken; } createUuid(); config.header = { ...config.header, uuid: storage.getUuid() }; return config; }, (config) => { return Promise.reject(config); } ); // 是否正在刷新的标记 let isRefreshing = false; //重试队列 let requests = []; // 必须使用异步函数,注意 http.interceptors.response.use( async (response) => { isNavigateTo = false /* 请求之后拦截器。可以使用async await 做异步操作 */ // token存在并且token过期 // if (isRefreshing && response.statusCode === 403) { // cleanStorage(); // isRefreshing = false; // } uni.showLoading() ? uni.hideLoading() : '' let token = storage.getAccessToken(); if ( (token && response.statusCode === 403) || response.data.status === 403 ) { if (!isRefreshing) { console.log('旧token', token) isRefreshing = true; storage.setAccessToken('') let oldRefreshToken = storage.getRefreshToken(); //调用刷新token的接口 return refreshTokenFn(oldRefreshToken) .then((res) => { let { accessToken, refreshToken } = res.data.result; storage.setAccessToken(accessToken); storage.setRefreshToken(refreshToken); response.header.accessToken = `${accessToken}`; // token 刷新后将数组的方法重新执行 console.log('接口队列', requests, '新token', accessToken) requests.forEach((cb) => cb(accessToken)); requests = []; // 重新请求完清空 return http.request(response.config); }) .catch((err) => { console.log('刷新token报错' + oldRefreshToken, err) cleanStorage(); return Promise.reject(err); }) .finally(() => { isRefreshing = false; }); } else { // 返回未执行 resolve 的 Promise return new Promise((resolve) => { // 用函数形式将 resolve 存入,等待刷新后再执行 requests.push((token) => { response.header.accessToken = `${token}`; resolve(http.request(response.config)); }); }); } // 如果当前返回没登录 } else if ( (!token && !storage.getRefreshToken() && response.statusCode === 403) || response.data.code === 403 ) { console.log('没有token 以及刷新token 内容', token, storage.getRefreshToken()) cleanStorage(); // 如果当前状态码为正常但是success为不正常时 } else if ( (response.statusCode == 200 && !response.data.success) || response.statusCode == 400 ) { if (response.data.message) { uni.showToast({ title: response.data.message, icon: "none", duration: 1500, success: function () { store.state.isShowToast = true; }, fail: function () { store.state.isShowToast = false; }, complete: function () { store.state.isShowToast = false; } }); } } return response; }, (error) => { return error; } ); export { http }; export const Method = { GET: "GET", POST: "POST", PUT: "PUT", DELETE: "DELETE", }; ================================================ FILE: utils/socket_service.js ================================================ import store from '@/store/index' import config from '@/config/config.js' import storage from './storage'; export default class SocketService { /** * 单例 */ static instance = null; static get Instance () { if (!this.instance) { this.instance = new SocketService(); } return this.instance; } // 和服务端连接的socket对象 ws = null; // 存储回调函数 callBackMapping = {}; // 标识是否连接成功 connected = false; // 记录重试的次数 sendRetryCount = 0; // 重新连接尝试的次数 connectRetryCount = 0; // 定义连接服务器的方法 connect () { // 连接服务器 if (!window.WebSocket) { return console.log("您的浏览器不支持WebSocket"); } this.ws = new WebSocket(config.baseWsUrl + '/' + storage.getAccessToken()); // 连接成功的事件 this.ws.onopen = () => { console.log("连接服务端成功"); this.connected = true; // 重置重新连接的次数 this.connectRetryCount = 0; }; // 1.连接服务端失败 // 2.当连接成功之后, 服务器关闭的情况(连接失败重连) this.ws.onclose = () => { console.log("连接服务端失败"); this.connected = false; this.connectRetryCount++; setTimeout(() => { this.connect(); }, 500 * this.connectRetryCount); }; // 得到服务端发送过来的数据 this.ws.onmessage = (msg) => { // console.log(msg.data) this.registerCallBack(msg.data); }; } // 回调函数的注册 registerCallBack (callBack) { // console.log("回调函数的注册", callBack); this.callBackMapping = callBack; } // 取消某一个回调函数 unRegisterCallBack (callBack) { console.log("取消某一个回调函数", callBack); this.callBackMapping = null; } // 发送数据的方法 send (data) { // 判断此时此刻有没有连接成功 if (this.connected) { this.sendRetryCount = 0; this.ws.send(data); } else { this.sendRetryCount++; setTimeout(() => { this.send(data); }, this.sendRetryCount * 500); } } } ================================================ FILE: utils/storage.js ================================================ let isDev = process.env.NODE_ENV === "development"; const UUID = isDev ? "uuid_key_dev" : "uuid_key"; const HAS_LOGIN = isDev ? "has_login_key_dev" : "has_login_key"; const ACCESS_TOKEN = isDev ? "access_token_key_dev" : "access_token_key"; const REFRESH_TOKEN = isDev ? "refresh_token_key_dev" : "refresh_token_key"; const USER_INFO = isDev ? "user_info_obj_dev" : "user_info_obj"; const FACE_LOGIN = isDev ? "face_login_dev" : "face_login"; const FINGER_LOGIN = isDev ? "finger_login_dev" : "finger_login"; const CART_BACKBTN = isDev ? "cart_backbtn_dev" : "cart_backbtn"; const AFTERSALE_DATA = isDev ? "aftersale_data_dev" : "aftersale_data"; export default { setInviter(val){ uni.setStorageSync('inviter', val) }, getInviter(){ return uni.getStorageSync('inviter'); }, //写入自动发券 setAutoCp(val){ uni.setStorageSync('autoCp', val) }, //获取自动发券时间 getAutoCp(){ return uni.getStorageSync('autoCp'); }, // 写入热门搜索时间戳 setHotWords(val) { uni.setStorageSync("hotWords", val); }, // 获取热门搜索时间戳 getHotWords() { return uni.getStorageSync(`hotWords`); }, //写入 展示还是不展示 setShow(val) { uni.setStorageSync("show", val); }, getShow() { if (uni.getStorageSync(`show`) === "" || uni.getStorageSync(`show`) === undefined) { return true; } return uni.getStorageSync(`show`); }, // 获取face id登录 getFaceLogin() { return uni.getStorageSync(FACE_LOGIN); }, // 写入face id setFaceLogin(val) { uni.setStorageSync(FACE_LOGIN, val); }, // 获取指纹登录 getFingerLogin() { return uni.getStorageSync(FINGER_LOGIN); }, // 写入指纹登录 setFingerLogin(val) { uni.setStorageSync(FINGER_LOGIN, val); }, // 写入用户信息 setUserInfo(val) { uni.setStorageSync(USER_INFO, val); }, // 获取用户信息 getUserInfo() { return uni.getStorageSync(USER_INFO); }, setTalkToUser(val){ uni.setStorageSync("TALK_TO_USER", val); }, getTalkToUser(){ return uni.getStorageSync("TALK_TO_USER"); }, // 写入uuid setUuid(val) { uni.setStorageSync(UUID, val); }, // 获取uuid getUuid() { return uni.getStorageSync(UUID); }, // 写入登录 setHasLogin(val) { uni.setStorageSync(HAS_LOGIN, val); }, // 获取是否登录 getHasLogin() { return uni.getStorageSync(HAS_LOGIN); }, // 删除uuid removeUuid() { uni.removeStorageSync(UUID); }, // 写入accessToken setAccessToken(val) { uni.setStorageSync(ACCESS_TOKEN, val); }, // 获取accessToken getAccessToken() { return uni.getStorageSync(ACCESS_TOKEN); }, // 后退购物车 setCartBackbtn(val) { uni.setStorageSync(CART_BACKBTN, val); }, // 删除token removeAccessToken() { uni.removeStorageSync(ACCESS_TOKEN); }, // 写入刷新token setRefreshToken(val) { uni.setStorageSync(REFRESH_TOKEN, val); }, // 获取刷新token getRefreshToken() { return uni.getStorageSync(REFRESH_TOKEN); }, // 删除token removeRefreshToken() { uni.removeStorageSync(REFRESH_TOKEN); }, setAfterSaleData(val) { uni.setStorageSync(AFTERSALE_DATA, val); }, getAfterSaleData() { return uni.getStorageSync(AFTERSALE_DATA); }, // 删除token removeAfterSaleData() { uni.removeStorageSync(AFTERSALE_DATA); }, // 是否发送商品连接记录 setImGoodsLink(val) { uni.setStorageSync('imGoodId', val); }, getImGoodsLink() { return uni.getStorageSync('imGoodId'); }, }; ================================================ FILE: utils/tools.js ================================================ /** * 解析url参数 * @example ?id=12345&a=b * @return Object {id:12345,a:b} */ function urlParse(url) { let obj = {}; let reg = /[?&][^?&]+=[^?&]+/g; let arr = url.match(reg); if (arr) { arr.forEach(item => { let tempArr = item.substring(1).split("="); let key = decodeURIComponent(tempArr[0]); let val = decodeURIComponent(tempArr.splice(1).join("=")); obj[key] = val; }); } return obj; } const getNetworkType = () => { uni.getNetworkType({ success: res => { if (res.networkType === "none") { uni.showToast({ title: "网络好像有点问题,请检查后重试!", duration: 2000, icon: "none" }); let pages = getCurrentPages(); if (pages.length) { let route = pages[pages.length - 1].route; if (route !== "pages/empty/empty") { uni.navigateTo({ url: `/pages/empty/empty?type=wifi` }); } } else { uni.navigateTo({ url: `/pages/empty/empty?type=wifi` }); } } } }); }; const throttle = (fn, that, gapTime) => { // export function throttle(fn, gapTime) { if (gapTime == null || gapTime == undefined) { gapTime = 1800; } let _lastTime = that.lastTime; let _nowTime = +new Date(); if (_nowTime - _lastTime > gapTime || !_lastTime) { fn.apply(that, arguments); //将this和参数传给原函数 that.lastTime = _nowTime; } }; /** * 计算传秒数的倒计时【天、时、分、秒】 * @param seconds * @returns {{day : *, hours : *, minutes : *, seconds : *}} */ const countTimeDown = seconds => { const leftTime = time => { if (time < 10) time = "0" + time; return time + ""; }; return { day: leftTime(parseInt(seconds / 60 / 60 / 24, 10)), hours: leftTime(parseInt((seconds / 60 / 60) % 24, 10)), minutes: leftTime(parseInt((seconds / 60) % 60, 10)), seconds: leftTime(parseInt(seconds % 60, 10)) }; }; /** * 计算当前时间到第二天0点的倒计时[秒] * @returns {number} */ const theNextDayTime = () => { const nowDate = new Date(); const time = new Date( nowDate.getFullYear(), nowDate.getMonth(), nowDate.getDate() + 1, 0, 0, 0 ).getTime() - nowDate.getTime(); return parseInt(time / 1000); }; // 防抖 const debounce = (fn, delay) => { // 时间期限 var delays = delay || 200; var timer; // 闭包 return function() { // 考虑作用域,上下文环境,apply需要用到this对象 var th = this; // 接收的参数用 ES6 中的 rest 参数统一存储到变量 args 中。arguments就是传入的参数数组,而且个数可以不确定的传回给fn(不确定函数到底有多少个参数,用arguments来接收) var args = arguments; // 判断还在定时,说明当前正在一个计时过程中,并且又触发了相同事件。所以要取消当前的计时,重新开始计时 if (timer) { clearTimeout(timer); } timer = setTimeout(function() { timer = null; // 执行方法 fn.apply(th, args); }, delays); }; }; export { getNetworkType, throttle, countTimeDown, theNextDayTime, debounce }; ================================================ FILE: utils/uuid.modified.js ================================================ // uuid.js // // Copyright (c) 2010-2012 Robert Kieffer // MIT License - http://opensource.org/licenses/mit-license.php /*global window, require, define */ (function(_window) { 'use strict'; // Unique ID creation requires a high quality random # generator. We feature // detect to determine the best RNG source, normalizing to a function that // returns 128-bits of randomness, since that's what's usually required var _rng, _mathRNG, _nodeRNG, _whatwgRNG, _previousRoot; function setupBrowser() { // Allow for MSIE11 msCrypto //var _crypto = _window.crypto || _window.msCrypto; var crypto = {} var _crypto = crypto || _window.crypto || _window.msCrypto; if (!_rng && _crypto && _crypto.getRandomValues) { // WHATWG crypto-based RNG - http://wiki.whatwg.org/wiki/Crypto // // Moderately fast, high quality try { var _rnds8 = new Uint8Array(16); _whatwgRNG = _rng = function whatwgRNG() { _crypto.getRandomValues(_rnds8); return _rnds8; }; _rng(); } catch (e) {} } if (!_rng) { // Math.random()-based (RNG) // // If all else fails, use Math.random(). It's fast, but is of unspecified // quality. var _rnds = new Array(16); _mathRNG = _rng = function() { for (var i = 0, r; i < 16; i++) { if ((i & 0x03) === 0) { r = Math.random() * 0x100000000; } _rnds[i] = r >>> ((i & 0x03) << 3) & 0xff; } return _rnds; }; if ('undefined' !== typeof console && console.warn) { // console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()"); } } } setupBrowser(); // Buffer class to use var BufferClass = ('function' === typeof Buffer) ? Buffer : Array; // Maps for number <-> hex string conversion var _byteToHex = []; var _hexToByte = {}; for (var i = 0; i < 256; i++) { _byteToHex[i] = (i + 0x100).toString(16).substr(1); _hexToByte[_byteToHex[i]] = i; } // **`parse()` - Parse a UUID into it's component bytes** function parse(s, buf, offset) { var i = (buf && offset) || 0, ii = 0; buf = buf || []; s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) { if (ii < 16) { // Don't overflow! buf[i + ii++] = _hexToByte[oct]; } }); // Zero out remaining bytes if string was short while (ii < 16) { buf[i + ii++] = 0; } return buf; } // **`unparse()` - Convert UUID byte array (ala parse()) into a string** function unparse(buf, offset) { var i = offset || 0, bth = _byteToHex; return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]]; } // **`v1()` - Generate time-based UUID** // // Inspired by https://github.com/LiosK/UUID.js // and http://docs.python.org/library/uuid.html // random #'s we need to init node and clockseq var _seedBytes = _rng(); // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) var _nodeId = [ _seedBytes[0] | 0x01, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ]; // Per 4.2.2, randomize (14 bit) clockseq var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 0x3fff; // Previous uuid creation time var _lastMSecs = 0, _lastNSecs = 0; // See https://github.com/broofa/node-uuid for API details function v1(options, buf, offset) { var i = buf && offset || 0; var b = buf || []; options = options || {}; var clockseq = (options.clockseq != null) ? options.clockseq : _clockseq; // UUID timestamps are 100 nano-second units since the Gregorian epoch, // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. var msecs = (options.msecs != null) ? options.msecs : new Date().getTime(); // Per 4.2.1.2, use count of uuid's generated during the current clock // cycle to simulate higher resolution clock var nsecs = (options.nsecs != null) ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression if (dt < 0 && options.clockseq == null) { clockseq = clockseq + 1 & 0x3fff; } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new // time interval if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) { nsecs = 0; } // Per 4.2.1.2 Throw error if too many uuids are requested if (nsecs >= 10000) { throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec'); } _lastMSecs = msecs; _lastNSecs = nsecs; _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch msecs += 12219292800000; // `time_low` var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; b[i++] = tl >>> 24 & 0xff; b[i++] = tl >>> 16 & 0xff; b[i++] = tl >>> 8 & 0xff; b[i++] = tl & 0xff; // `time_mid` var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff; b[i++] = tmh >>> 8 & 0xff; b[i++] = tmh & 0xff; // `time_high_and_version` b[i++] = tmh >>> 24 & 0xf | 0x10; // include version b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` b[i++] = clockseq & 0xff; // `node` var node = options.node || _nodeId; for (var n = 0; n < 6; n++) { b[i + n] = node[n]; } return buf ? buf : unparse(b); } // **`v4()` - Generate random UUID** // See https://github.com/broofa/node-uuid for API details function v4(options, buf, offset) { // Deprecated - 'format' argument, as supported in v1.2 var i = buf && offset || 0; if (typeof(options) === 'string') { buf = (options === 'binary') ? new BufferClass(16) : null; options = null; } options = options || {}; var rnds = options.random || (options.rng || _rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` rnds[6] = (rnds[6] & 0x0f) | 0x40; rnds[8] = (rnds[8] & 0x3f) | 0x80; // Copy bytes to buffer, if provided if (buf) { for (var ii = 0; ii < 16; ii++) { buf[i + ii] = rnds[ii]; } } return buf || unparse(rnds); } // Export public API var uuid = v4; uuid.v1 = v1; uuid.v4 = v4; uuid.parse = parse; uuid.unparse = unparse; uuid.BufferClass = BufferClass; uuid._rng = _rng; uuid._mathRNG = _mathRNG; uuid._nodeRNG = _nodeRNG; uuid._whatwgRNG = _whatwgRNG; if (('undefined' !== typeof module) && module.exports) { // Publish as node.js module module.exports = uuid; } else if (typeof define === 'function' && define.amd) { // Publish as AMD module define(function() { return uuid; }); } else { // Publish as global (in browsers) _previousRoot = _window.uuid; // **`noConflict()` - (browser only) to reset global 'uuid' var** uuid.noConflict = function() { _window.uuid = _previousRoot; return uuid; }; _window.uuid = uuid; } })('undefined' !== typeof window ? window : null); ================================================ FILE: uview-ui/LICENSE ================================================ 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. ================================================ FILE: uview-ui/components/u-action-sheet/u-action-sheet.vue ================================================ ================================================ FILE: uview-ui/components/u-alert-tips/u-alert-tips.vue ================================================ ================================================ FILE: uview-ui/components/u-avatar/u-avatar.vue ================================================ ================================================ FILE: uview-ui/components/u-avatar-cropper/u-avatar-cropper.vue ================================================ ================================================ FILE: uview-ui/components/u-avatar-cropper/weCropper.js ================================================ /** * we-cropper v1.3.9 * (c) 2020 dlhandsome * @license MIT */ (function(global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.WeCropper = factory()); }(this, (function() { 'use strict'; var device = void 0; var TOUCH_STATE = ['touchstarted', 'touchmoved', 'touchended']; function firstLetterUpper(str) { return str.charAt(0).toUpperCase() + str.slice(1) } function setTouchState(instance) { var arg = [], len = arguments.length - 1; while (len-- > 0) arg[len] = arguments[len + 1]; TOUCH_STATE.forEach(function(key, i) { if (arg[i] !== undefined) { instance[key] = arg[i]; } }); } function validator(instance, o) { Object.defineProperties(instance, o); } function getDevice() { if (!device) { device = uni.getSystemInfoSync(); } return device } var tmp = {}; var ref = getDevice(); var pixelRatio = ref.pixelRatio; var DEFAULT = { id: { default: 'cropper', get: function get() { return tmp.id }, set: function set(value) { if (typeof(value) !== 'string') { console.error(("id:" + value + " is invalid")); } tmp.id = value; } }, width: { default: 750, get: function get() { return tmp.width }, set: function set(value) { if (typeof(value) !== 'number') { console.error(("width:" + value + " is invalid")); } tmp.width = value; } }, height: { default: 750, get: function get() { return tmp.height }, set: function set(value) { if (typeof(value) !== 'number') { console.error(("height:" + value + " is invalid")); } tmp.height = value; } }, pixelRatio: { default: pixelRatio, get: function get() { return tmp.pixelRatio }, set: function set(value) { if (typeof(value) !== 'number') { console.error(("pixelRatio:" + value + " is invalid")); } tmp.pixelRatio = value; } }, scale: { default: 2.5, get: function get() { return tmp.scale }, set: function set(value) { if (typeof(value) !== 'number') { console.error(("scale:" + value + " is invalid")); } tmp.scale = value; } }, zoom: { default: 5, get: function get() { return tmp.zoom }, set: function set(value) { if (typeof(value) !== 'number') { console.error(("zoom:" + value + " is invalid")); } else if (value < 0 || value > 10) { console.error("zoom should be ranged in 0 ~ 10"); } tmp.zoom = value; } }, src: { default: '', get: function get() { return tmp.src }, set: function set(value) { if (typeof(value) !== 'string') { console.error(("src:" + value + " is invalid")); } tmp.src = value; } }, cut: { default: {}, get: function get() { return tmp.cut }, set: function set(value) { if (typeof(value) !== 'object') { console.error(("cut:" + value + " is invalid")); } tmp.cut = value; } }, boundStyle: { default: {}, get: function get() { return tmp.boundStyle }, set: function set(value) { if (typeof(value) !== 'object') { console.error(("boundStyle:" + value + " is invalid")); } tmp.boundStyle = value; } }, onReady: { default: null, get: function get() { return tmp.ready }, set: function set(value) { tmp.ready = value; } }, onBeforeImageLoad: { default: null, get: function get() { return tmp.beforeImageLoad }, set: function set(value) { tmp.beforeImageLoad = value; } }, onImageLoad: { default: null, get: function get() { return tmp.imageLoad }, set: function set(value) { tmp.imageLoad = value; } }, onBeforeDraw: { default: null, get: function get() { return tmp.beforeDraw }, set: function set(value) { tmp.beforeDraw = value; } } }; var ref$1 = getDevice(); var windowWidth = ref$1.windowWidth; function prepare() { var self = this; // v1.4.0 版本中将不再自动绑定we-cropper实例 self.attachPage = function() { var pages = getCurrentPages(); // 获取到当前page上下文 var pageContext = pages[pages.length - 1]; // 把this依附在Page上下文的wecropper属性上,便于在page钩子函数中访问 Object.defineProperty(pageContext, 'wecropper', { get: function get() { console.warn( 'Instance will not be automatically bound to the page after v1.4.0\n\n' + 'Please use a custom instance name instead\n\n' + 'Example: \n' + 'this.mycropper = new WeCropper(options)\n\n' + '// ...\n' + 'this.mycropper.getCropperImage()' ); return self }, configurable: true }); }; self.createCtx = function() { var id = self.id; var targetId = self.targetId; if (id) { self.ctx = self.ctx || uni.createCanvasContext(id); self.targetCtx = self.targetCtx || uni.createCanvasContext(targetId); } else { console.error("constructor: create canvas context failed, 'id' must be valuable"); } }; self.deviceRadio = windowWidth / 750; } var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; function createCommonjsModule(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } var tools = createCommonjsModule(function(module, exports) { /** * String type check */ exports.isStr = function(v) { return typeof v === 'string'; }; /** * Number type check */ exports.isNum = function(v) { return typeof v === 'number'; }; /** * Array type check */ exports.isArr = Array.isArray; /** * undefined type check */ exports.isUndef = function(v) { return v === undefined; }; exports.isTrue = function(v) { return v === true; }; exports.isFalse = function(v) { return v === false; }; /** * Function type check */ exports.isFunc = function(v) { return typeof v === 'function'; }; /** * Quick object check - this is primarily used to tell * Objects from primitive values when we know the value * is a JSON-compliant type. */ exports.isObj = exports.isObject = function(obj) { return obj !== null && typeof obj === 'object' }; /** * Strict object type check. Only returns true * for plain JavaScript objects. */ var _toString = Object.prototype.toString; exports.isPlainObject = function(obj) { return _toString.call(obj) === '[object Object]' }; /** * Check whether the object has the property. */ var hasOwnProperty = Object.prototype.hasOwnProperty; exports.hasOwn = function(obj, key) { return hasOwnProperty.call(obj, key) }; /** * Perform no operation. * Stubbing args to make Flow happy without leaving useless transpiled code * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/) */ exports.noop = function(a, b, c) {}; /** * Check if val is a valid array index. */ exports.isValidArrayIndex = function(val) { var n = parseFloat(String(val)); return n >= 0 && Math.floor(n) === n && isFinite(val) }; }); var tools_7 = tools.isFunc; var tools_10 = tools.isPlainObject; var EVENT_TYPE = ['ready', 'beforeImageLoad', 'beforeDraw', 'imageLoad']; function observer() { var self = this; self.on = function(event, fn) { if (EVENT_TYPE.indexOf(event) > -1) { if (tools_7(fn)) { event === 'ready' ? fn(self) : self[("on" + (firstLetterUpper(event)))] = fn; } } else { console.error(("event: " + event + " is invalid")); } return self }; } function wxPromise(fn) { return function(obj) { var args = [], len = arguments.length - 1; while (len-- > 0) args[len] = arguments[len + 1]; if (obj === void 0) obj = {}; return new Promise(function(resolve, reject) { obj.success = function(res) { resolve(res); }; obj.fail = function(err) { reject(err); }; fn.apply(void 0, [obj].concat(args)); }) } } function draw(ctx, reserve) { if (reserve === void 0) reserve = false; return new Promise(function(resolve) { ctx.draw(reserve, resolve); }) } var getImageInfo = wxPromise(uni.getImageInfo); var canvasToTempFilePath = wxPromise(uni.canvasToTempFilePath); var base64 = createCommonjsModule(function(module, exports) { /*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */ (function(root) { // Detect free variables `exports`. var freeExports = 'object' == 'object' && exports; // Detect free variable `module`. var freeModule = 'object' == 'object' && module && module.exports == freeExports && module; // Detect free variable `global`, from Node.js or Browserified code, and use // it as `root`. var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal; if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { root = freeGlobal; } /*--------------------------------------------------------------------------*/ var InvalidCharacterError = function(message) { this.message = message; }; InvalidCharacterError.prototype = new Error; InvalidCharacterError.prototype.name = 'InvalidCharacterError'; var error = function(message) { // Note: the error messages used throughout this file match those used by // the native `atob`/`btoa` implementation in Chromium. throw new InvalidCharacterError(message); }; var TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; // http://whatwg.org/html/common-microsyntaxes.html#space-character var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g; // `decode` is designed to be fully compatible with `atob` as described in the // HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob // The optimized base64-decoding algorithm used is based on @atk’s excellent // implementation. https://gist.github.com/atk/1020396 var decode = function(input) { input = String(input) .replace(REGEX_SPACE_CHARACTERS, ''); var length = input.length; if (length % 4 == 0) { input = input.replace(/==?$/, ''); length = input.length; } if ( length % 4 == 1 || // http://whatwg.org/C#alphanumeric-ascii-characters /[^+a-zA-Z0-9/]/.test(input) ) { error( 'Invalid character: the string to be decoded is not correctly encoded.' ); } var bitCounter = 0; var bitStorage; var buffer; var output = ''; var position = -1; while (++position < length) { buffer = TABLE.indexOf(input.charAt(position)); bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer; // Unless this is the first of a group of 4 characters… if (bitCounter++ % 4) { // …convert the first 8 bits to a single ASCII character. output += String.fromCharCode( 0xFF & bitStorage >> (-2 * bitCounter & 6) ); } } return output; }; // `encode` is designed to be fully compatible with `btoa` as described in the // HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa var encode = function(input) { input = String(input); if (/[^\0-\xFF]/.test(input)) { // Note: no need to special-case astral symbols here, as surrogates are // matched, and the input is supposed to only contain ASCII anyway. error( 'The string to be encoded contains characters outside of the ' + 'Latin1 range.' ); } var padding = input.length % 3; var output = ''; var position = -1; var a; var b; var c; var buffer; // Make sure any padding is handled outside of the loop. var length = input.length - padding; while (++position < length) { // Read three bytes, i.e. 24 bits. a = input.charCodeAt(position) << 16; b = input.charCodeAt(++position) << 8; c = input.charCodeAt(++position); buffer = a + b + c; // Turn the 24 bits into four chunks of 6 bits each, and append the // matching character for each of them to the output. output += ( TABLE.charAt(buffer >> 18 & 0x3F) + TABLE.charAt(buffer >> 12 & 0x3F) + TABLE.charAt(buffer >> 6 & 0x3F) + TABLE.charAt(buffer & 0x3F) ); } if (padding == 2) { a = input.charCodeAt(position) << 8; b = input.charCodeAt(++position); buffer = a + b; output += ( TABLE.charAt(buffer >> 10) + TABLE.charAt((buffer >> 4) & 0x3F) + TABLE.charAt((buffer << 2) & 0x3F) + '=' ); } else if (padding == 1) { buffer = input.charCodeAt(position); output += ( TABLE.charAt(buffer >> 2) + TABLE.charAt((buffer << 4) & 0x3F) + '==' ); } return output; }; var base64 = { 'encode': encode, 'decode': decode, 'version': '0.1.0' }; // Some AMD build optimizers, like r.js, check for specific condition patterns // like the following: if ( typeof undefined == 'function' && typeof undefined.amd == 'object' && undefined.amd ) { undefined(function() { return base64; }); } else if (freeExports && !freeExports.nodeType) { if (freeModule) { // in Node.js or RingoJS v0.8.0+ freeModule.exports = base64; } else { // in Narwhal or RingoJS v0.7.0- for (var key in base64) { base64.hasOwnProperty(key) && (freeExports[key] = base64[key]); } } } else { // in Rhino or a web browser root.base64 = base64; } }(commonjsGlobal)); }); function makeURI(strData, type) { return 'data:' + type + ';base64,' + strData } function fixType(type) { type = type.toLowerCase().replace(/jpg/i, 'jpeg'); var r = type.match(/png|jpeg|bmp|gif/)[0]; return 'image/' + r } function encodeData(data) { var str = ''; if (typeof data === 'string') { str = data; } else { for (var i = 0; i < data.length; i++) { str += String.fromCharCode(data[i]); } } return base64.encode(str) } /** * 获取图像区域隐含的像素数据 * @param canvasId canvas标识 * @param x 将要被提取的图像数据矩形区域的左上角 x 坐标 * @param y 将要被提取的图像数据矩形区域的左上角 y 坐标 * @param width 将要被提取的图像数据矩形区域的宽度 * @param height 将要被提取的图像数据矩形区域的高度 * @param done 完成回调 */ function getImageData(canvasId, x, y, width, height, done) { uni.canvasGetImageData({ canvasId: canvasId, x: x, y: y, width: width, height: height, success: function success(res) { done(res, null); }, fail: function fail(res) { done(null, res); } }); } /** * 生成bmp格式图片 * 按照规则生成图片响应头和响应体 * @param oData 用来描述 canvas 区域隐含的像素数据 { data, width, height } = oData * @returns {*} base64字符串 */ function genBitmapImage(oData) { // // BITMAPFILEHEADER: http://msdn.microsoft.com/en-us/library/windows/desktop/dd183374(v=vs.85).aspx // BITMAPINFOHEADER: http://msdn.microsoft.com/en-us/library/dd183376.aspx // var biWidth = oData.width; var biHeight = oData.height; var biSizeImage = biWidth * biHeight * 3; var bfSize = biSizeImage + 54; // total header size = 54 bytes // // typedef struct tagBITMAPFILEHEADER { // WORD bfType; // DWORD bfSize; // WORD bfReserved1; // WORD bfReserved2; // DWORD bfOffBits; // } BITMAPFILEHEADER; // var BITMAPFILEHEADER = [ // WORD bfType -- The file type signature; must be "BM" 0x42, 0x4D, // DWORD bfSize -- The size, in bytes, of the bitmap file bfSize & 0xff, bfSize >> 8 & 0xff, bfSize >> 16 & 0xff, bfSize >> 24 & 0xff, // WORD bfReserved1 -- Reserved; must be zero 0, 0, // WORD bfReserved2 -- Reserved; must be zero 0, 0, // DWORD bfOffBits -- The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits. 54, 0, 0, 0 ]; // // typedef struct tagBITMAPINFOHEADER { // DWORD biSize; // LONG biWidth; // LONG biHeight; // WORD biPlanes; // WORD biBitCount; // DWORD biCompression; // DWORD biSizeImage; // LONG biXPelsPerMeter; // LONG biYPelsPerMeter; // DWORD biClrUsed; // DWORD biClrImportant; // } BITMAPINFOHEADER, *PBITMAPINFOHEADER; // var BITMAPINFOHEADER = [ // DWORD biSize -- The number of bytes required by the structure 40, 0, 0, 0, // LONG biWidth -- The width of the bitmap, in pixels biWidth & 0xff, biWidth >> 8 & 0xff, biWidth >> 16 & 0xff, biWidth >> 24 & 0xff, // LONG biHeight -- The height of the bitmap, in pixels biHeight & 0xff, biHeight >> 8 & 0xff, biHeight >> 16 & 0xff, biHeight >> 24 & 0xff, // WORD biPlanes -- The number of planes for the target device. This value must be set to 1 1, 0, // WORD biBitCount -- The number of bits-per-pixel, 24 bits-per-pixel -- the bitmap // has a maximum of 2^24 colors (16777216, Truecolor) 24, 0, // DWORD biCompression -- The type of compression, BI_RGB (code 0) -- uncompressed 0, 0, 0, 0, // DWORD biSizeImage -- The size, in bytes, of the image. This may be set to zero for BI_RGB bitmaps biSizeImage & 0xff, biSizeImage >> 8 & 0xff, biSizeImage >> 16 & 0xff, biSizeImage >> 24 & 0xff, // LONG biXPelsPerMeter, unused 0, 0, 0, 0, // LONG biYPelsPerMeter, unused 0, 0, 0, 0, // DWORD biClrUsed, the number of color indexes of palette, unused 0, 0, 0, 0, // DWORD biClrImportant, unused 0, 0, 0, 0 ]; var iPadding = (4 - ((biWidth * 3) % 4)) % 4; var aImgData = oData.data; var strPixelData = ''; var biWidth4 = biWidth << 2; var y = biHeight; var fromCharCode = String.fromCharCode; do { var iOffsetY = biWidth4 * (y - 1); var strPixelRow = ''; for (var x = 0; x < biWidth; x++) { var iOffsetX = x << 2; strPixelRow += fromCharCode(aImgData[iOffsetY + iOffsetX + 2]) + fromCharCode(aImgData[iOffsetY + iOffsetX + 1]) + fromCharCode(aImgData[iOffsetY + iOffsetX]); } for (var c = 0; c < iPadding; c++) { strPixelRow += String.fromCharCode(0); } strPixelData += strPixelRow; } while (--y) var strEncoded = encodeData(BITMAPFILEHEADER.concat(BITMAPINFOHEADER)) + encodeData(strPixelData); return strEncoded } /** * 转换为图片base64 * @param canvasId canvas标识 * @param x 将要被提取的图像数据矩形区域的左上角 x 坐标 * @param y 将要被提取的图像数据矩形区域的左上角 y 坐标 * @param width 将要被提取的图像数据矩形区域的宽度 * @param height 将要被提取的图像数据矩形区域的高度 * @param type 转换图片类型 * @param done 完成回调 */ function convertToImage(canvasId, x, y, width, height, type, done) { if (done === void 0) done = function() {}; if (type === undefined) { type = 'png'; } type = fixType(type); if (/bmp/.test(type)) { getImageData(canvasId, x, y, width, height, function(data, err) { var strData = genBitmapImage(data); tools_7(done) && done(makeURI(strData, 'image/' + type), err); }); } else { console.error('暂不支持生成\'' + type + '\'类型的base64图片'); } } var CanvasToBase64 = { convertToImage: convertToImage, // convertToPNG: function (width, height, done) { // return convertToImage(width, height, 'png', done) // }, // convertToJPEG: function (width, height, done) { // return convertToImage(width, height, 'jpeg', done) // }, // convertToGIF: function (width, height, done) { // return convertToImage(width, height, 'gif', done) // }, convertToBMP: function(ref, done) { if (ref === void 0) ref = {}; var canvasId = ref.canvasId; var x = ref.x; var y = ref.y; var width = ref.width; var height = ref.height; if (done === void 0) done = function() {}; return convertToImage(canvasId, x, y, width, height, 'bmp', done) } }; function methods() { var self = this; var boundWidth = self.width; // 裁剪框默认宽度,即整个画布宽度 var boundHeight = self.height; // 裁剪框默认高度,即整个画布高度 var id = self.id; var targetId = self.targetId; var pixelRatio = self.pixelRatio; var ref = self.cut; var x = ref.x; if (x === void 0) x = 0; var y = ref.y; if (y === void 0) y = 0; var width = ref.width; if (width === void 0) width = boundWidth; var height = ref.height; if (height === void 0) height = boundHeight; self.updateCanvas = function(done) { if (self.croperTarget) { // 画布绘制图片 self.ctx.drawImage( self.croperTarget, self.imgLeft, self.imgTop, self.scaleWidth, self.scaleHeight ); } tools_7(self.onBeforeDraw) && self.onBeforeDraw(self.ctx, self); self.setBoundStyle(self.boundStyle); // 设置边界样式 self.ctx.draw(false, done); return self }; self.pushOrigin = self.pushOrign = function(src) { self.src = src; tools_7(self.onBeforeImageLoad) && self.onBeforeImageLoad(self.ctx, self); return getImageInfo({ src: src }) .then(function(res) { var innerAspectRadio = res.width / res.height; var customAspectRadio = width / height; self.croperTarget = res.path; if (innerAspectRadio < customAspectRadio) { self.rectX = x; self.baseWidth = width; self.baseHeight = width / innerAspectRadio; self.rectY = y - Math.abs((height - self.baseHeight) / 2); } else { self.rectY = y; self.baseWidth = height * innerAspectRadio; self.baseHeight = height; self.rectX = x - Math.abs((width - self.baseWidth) / 2); } self.imgLeft = self.rectX; self.imgTop = self.rectY; self.scaleWidth = self.baseWidth; self.scaleHeight = self.baseHeight; self.update(); return new Promise(function(resolve) { self.updateCanvas(resolve); }) }) .then(function() { tools_7(self.onImageLoad) && self.onImageLoad(self.ctx, self); }) }; self.removeImage = function() { self.src = ''; self.croperTarget = ''; return draw(self.ctx) }; self.getCropperBase64 = function(done) { if (done === void 0) done = function() {}; CanvasToBase64.convertToBMP({ canvasId: id, x: x, y: y, width: width, height: height }, done); }; self.getCropperImage = function(opt, fn) { var customOptions = opt; var canvasOptions = { canvasId: id, x: x, y: y, width: width, height: height }; var task = function() { return Promise.resolve(); }; if ( tools_10(customOptions) && customOptions.original ) { // original mode task = function() { self.targetCtx.drawImage( self.croperTarget, self.imgLeft * pixelRatio, self.imgTop * pixelRatio, self.scaleWidth * pixelRatio, self.scaleHeight * pixelRatio ); canvasOptions = { canvasId: targetId, x: x * pixelRatio, y: y * pixelRatio, width: width * pixelRatio, height: height * pixelRatio }; return draw(self.targetCtx) }; } return task() .then(function() { if (tools_10(customOptions)) { canvasOptions = Object.assign({}, canvasOptions, customOptions); } if (tools_7(customOptions)) { fn = customOptions; } var arg = canvasOptions.componentContext ? [canvasOptions, canvasOptions.componentContext] : [canvasOptions]; return canvasToTempFilePath.apply(null, arg) }) .then(function(res) { var tempFilePath = res.tempFilePath; return tools_7(fn) ? fn.call(self, tempFilePath, null) : tempFilePath }) .catch(function(err) { if (tools_7(fn)) { fn.call(self, null, err); } else { throw err } }) }; } /** * 获取最新缩放值 * @param oldScale 上一次触摸结束后的缩放值 * @param oldDistance 上一次触摸结束后的双指距离 * @param zoom 缩放系数 * @param touch0 第一指touch对象 * @param touch1 第二指touch对象 * @returns {*} */ var getNewScale = function(oldScale, oldDistance, zoom, touch0, touch1) { var xMove, yMove, newDistance; // 计算二指最新距离 xMove = Math.round(touch1.x - touch0.x); yMove = Math.round(touch1.y - touch0.y); newDistance = Math.round(Math.sqrt(xMove * xMove + yMove * yMove)); return oldScale + 0.001 * zoom * (newDistance - oldDistance) }; function update() { var self = this; if (!self.src) { return } self.__oneTouchStart = function(touch) { self.touchX0 = Math.round(touch.x); self.touchY0 = Math.round(touch.y); }; self.__oneTouchMove = function(touch) { var xMove, yMove; // 计算单指移动的距离 if (self.touchended) { return self.updateCanvas() } xMove = Math.round(touch.x - self.touchX0); yMove = Math.round(touch.y - self.touchY0); var imgLeft = Math.round(self.rectX + xMove); var imgTop = Math.round(self.rectY + yMove); self.outsideBound(imgLeft, imgTop); self.updateCanvas(); }; self.__twoTouchStart = function(touch0, touch1) { var xMove, yMove, oldDistance; self.touchX1 = Math.round(self.rectX + self.scaleWidth / 2); self.touchY1 = Math.round(self.rectY + self.scaleHeight / 2); // 计算两指距离 xMove = Math.round(touch1.x - touch0.x); yMove = Math.round(touch1.y - touch0.y); oldDistance = Math.round(Math.sqrt(xMove * xMove + yMove * yMove)); self.oldDistance = oldDistance; }; self.__twoTouchMove = function(touch0, touch1) { var oldScale = self.oldScale; var oldDistance = self.oldDistance; var scale = self.scale; var zoom = self.zoom; self.newScale = getNewScale(oldScale, oldDistance, zoom, touch0, touch1); // 设定缩放范围 self.newScale <= 1 && (self.newScale = 1); self.newScale >= scale && (self.newScale = scale); self.scaleWidth = Math.round(self.newScale * self.baseWidth); self.scaleHeight = Math.round(self.newScale * self.baseHeight); var imgLeft = Math.round(self.touchX1 - self.scaleWidth / 2); var imgTop = Math.round(self.touchY1 - self.scaleHeight / 2); self.outsideBound(imgLeft, imgTop); self.updateCanvas(); }; self.__xtouchEnd = function() { self.oldScale = self.newScale; self.rectX = self.imgLeft; self.rectY = self.imgTop; }; } var handle = { // 图片手势初始监测 touchStart: function touchStart(e) { var self = this; var ref = e.touches; var touch0 = ref[0]; var touch1 = ref[1]; if (!self.src) { return } setTouchState(self, true, null, null); // 计算第一个触摸点的位置,并参照改点进行缩放 self.__oneTouchStart(touch0); // 两指手势触发 if (e.touches.length >= 2) { self.__twoTouchStart(touch0, touch1); } }, // 图片手势动态缩放 touchMove: function touchMove(e) { var self = this; var ref = e.touches; var touch0 = ref[0]; var touch1 = ref[1]; if (!self.src) { return } setTouchState(self, null, true); // 单指手势时触发 if (e.touches.length === 1) { self.__oneTouchMove(touch0); } // 两指手势触发 if (e.touches.length >= 2) { self.__twoTouchMove(touch0, touch1); } }, touchEnd: function touchEnd(e) { var self = this; if (!self.src) { return } setTouchState(self, false, false, true); self.__xtouchEnd(); } }; function cut() { var self = this; var boundWidth = self.width; // 裁剪框默认宽度,即整个画布宽度 var boundHeight = self.height; // 裁剪框默认高度,即整个画布高度 var ref = self.cut; var x = ref.x; if (x === void 0) x = 0; var y = ref.y; if (y === void 0) y = 0; var width = ref.width; if (width === void 0) width = boundWidth; var height = ref.height; if (height === void 0) height = boundHeight; /** * 设置边界 * @param imgLeft 图片左上角横坐标值 * @param imgTop 图片左上角纵坐标值 */ self.outsideBound = function(imgLeft, imgTop) { self.imgLeft = imgLeft >= x ? x : self.scaleWidth + imgLeft - x <= width ? x + width - self.scaleWidth : imgLeft; self.imgTop = imgTop >= y ? y : self.scaleHeight + imgTop - y <= height ? y + height - self.scaleHeight : imgTop; }; /** * 设置边界样式 * @param color 边界颜色 */ self.setBoundStyle = function(ref) { if (ref === void 0) ref = {}; var color = ref.color; if (color === void 0) color = '#04b00f'; var mask = ref.mask; if (mask === void 0) mask = 'rgba(0, 0, 0, 0.3)'; var lineWidth = ref.lineWidth; if (lineWidth === void 0) lineWidth = 1; var half = lineWidth / 2; var boundOption = [{ start: { x: x - half, y: y + 10 - half }, step1: { x: x - half, y: y - half }, step2: { x: x + 10 - half, y: y - half } }, { start: { x: x - half, y: y + height - 10 + half }, step1: { x: x - half, y: y + height + half }, step2: { x: x + 10 - half, y: y + height + half } }, { start: { x: x + width - 10 + half, y: y - half }, step1: { x: x + width + half, y: y - half }, step2: { x: x + width + half, y: y + 10 - half } }, { start: { x: x + width + half, y: y + height - 10 + half }, step1: { x: x + width + half, y: y + height + half }, step2: { x: x + width - 10 + half, y: y + height + half } } ]; // 绘制半透明层 self.ctx.beginPath(); self.ctx.setFillStyle(mask); self.ctx.fillRect(0, 0, x, boundHeight); self.ctx.fillRect(x, 0, width, y); self.ctx.fillRect(x, y + height, width, boundHeight - y - height); self.ctx.fillRect(x + width, 0, boundWidth - x - width, boundHeight); self.ctx.fill(); boundOption.forEach(function(op) { self.ctx.beginPath(); self.ctx.setStrokeStyle(color); self.ctx.setLineWidth(lineWidth); self.ctx.moveTo(op.start.x, op.start.y); self.ctx.lineTo(op.step1.x, op.step1.y); self.ctx.lineTo(op.step2.x, op.step2.y); self.ctx.stroke(); }); }; } var version = "1.3.9"; var WeCropper = function WeCropper(params) { var self = this; var _default = {}; validator(self, DEFAULT); Object.keys(DEFAULT).forEach(function(key) { _default[key] = DEFAULT[key].default; }); Object.assign(self, _default, params); self.prepare(); self.attachPage(); self.createCtx(); self.observer(); self.cutt(); self.methods(); self.init(); self.update(); return self }; WeCropper.prototype.init = function init() { var self = this; var src = self.src; self.version = version; typeof self.onReady === 'function' && self.onReady(self.ctx, self); if (src) { self.pushOrign(src); } else { self.updateCanvas(); } setTouchState(self, false, false, false); self.oldScale = 1; self.newScale = 1; return self }; Object.assign(WeCropper.prototype, handle); WeCropper.prototype.prepare = prepare; WeCropper.prototype.observer = observer; WeCropper.prototype.methods = methods; WeCropper.prototype.cutt = cut; WeCropper.prototype.update = update; return WeCropper; }))); ================================================ FILE: uview-ui/components/u-back-top/u-back-top.vue ================================================ ================================================ FILE: uview-ui/components/u-badge/u-badge.vue ================================================ ================================================ FILE: uview-ui/components/u-button/u-button.vue ================================================ ================================================ FILE: uview-ui/components/u-calendar/u-calendar.vue ================================================ ================================================ FILE: uview-ui/components/u-car-keyboard/u-car-keyboard.vue ================================================ ================================================ FILE: uview-ui/components/u-card/u-card.vue ================================================ ================================================ FILE: uview-ui/components/u-cell-group/u-cell-group.vue ================================================ ================================================ FILE: uview-ui/components/u-cell-item/u-cell-item.vue ================================================ ================================================ FILE: uview-ui/components/u-checkbox/u-checkbox.vue ================================================ ================================================ FILE: uview-ui/components/u-checkbox-group/u-checkbox-group.vue ================================================ ================================================ FILE: uview-ui/components/u-circle-progress/u-circle-progress.vue ================================================ ================================================ FILE: uview-ui/components/u-col/u-col.vue ================================================ ================================================ FILE: uview-ui/components/u-collapse/u-collapse.vue ================================================ ================================================ FILE: uview-ui/components/u-collapse-item/u-collapse-item.vue ================================================ ================================================ FILE: uview-ui/components/u-column-notice/u-column-notice.vue ================================================ ================================================ FILE: uview-ui/components/u-count-down/u-count-down.vue ================================================ ================================================ FILE: uview-ui/components/u-count-to/u-count-to.vue ================================================ ================================================ FILE: uview-ui/components/u-divider/u-divider.vue ================================================ ================================================ FILE: uview-ui/components/u-dropdown-list/u-dropdown-list.vue ================================================ ================================================ FILE: uview-ui/components/u-empty/u-empty.vue ================================================ ================================================ FILE: uview-ui/components/u-field/u-field.vue ================================================