Full Code of lilishop/lilishop-uniapp for AI

master 919af44fda34 cached
480 files
2.7 MB
732.1k tokens
722 symbols
1 requests
Download .txt
Showing preview only (3,125K chars total). Download the full file or copy to clipboard to get everything.
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
================================================
<script>
	/**
	 * vuex管理登录状态,具体可以参考官方登录模板示例
	 */
	import config from "@/config/config";
import {
	getClipboardData
} from "@/js_sdk/h5-copy/h5-copy.js";
import APPUpdate from "@/plugins/APPUpdate";
import storage from "@/utils/storage";
import {
	mapMutations
} from "vuex";

	
	
	/**
	 * 路由监听并删除路由
	 * https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateTo.html
	 * */
	// #ifdef MP-WEIXIN
	wx.onAppRoute((res) => {
		
	})
	// #endif

	export default {
		data() {
			return {
				config,
			};
		},


		/**
		 * 监听返回
		 */
		onBackPress(e) {
			console.log("onBackPress-APP", e);
			if (e.from == "backbutton") {
				let routes = getCurrentPages();
				let curRoute = routes[routes.length - 1].options;
				routes.forEach((item) => {
					if (
						item.route == "pages/tabbar/cart/cartList" ||
						item.route.indexOf("pages/product/goods") != -1
					) {
						uni.redirectTo({
							url: item.route,
						});
					}
				});

				if (curRoute.addId) {
					uni.reLaunch({
						url: "/pages/tabbar/cart/cartList",
					});
				} else {
					uni.navigateBack();
				}
				return true; //阻止默认返回行为
			}
		},
		methods: {
			...mapMutations(["login"]),
		},
		onLaunch: function(val) {
			if(val.query.inviter){
				storage.setInviter(val.query.inviter)
			}

      // #ifdef APP-PLUS
			// 重点是以下: 一定要监听后台恢复 !一定要
			plus.globalEvent.addEventListener("newintent", (e) => {
				this.checkArguments(); // 检测启动参数
			});
			// #endif

			// #ifdef MP-WEIXIN
			this.applyUpdateWeChat();
			// #endif
		},

		onShow() {
			// #ifndef H5
			if(this.config.enableGetClipboard){
				this.getClipboard();
			}
			// #endif
			// #ifdef APP-PLUS

			if (storage.getShow()) {
				if (uni.getSystemInfoSync().platform == 'ios') {
					this.$u.route("/pages/tabbar/screen/fullScreen");

				}
			}
			// #endif
		},
		methods: {
			/**
			 * 微信小程序版本提交更新版本 解决缓存问题
			 */
			applyUpdateWeChat() {
				const updateManager = uni.getUpdateManager();

				updateManager.onCheckForUpdate(function(res) {
					// 请求完新版本信息的回调
				});

				updateManager.onUpdateReady(function(res) {
					uni.showModal({
						title: "更新提示",
						content: "发现新版本,是否重启应用?",
						success(res) {
							if (res.confirm) {
								// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
								updateManager.applyUpdate();
							}
						},
					});
				});
				updateManager.onUpdateFailed(function(res) {
					// 新的版本下载失败
				});
			},

			//  TODO 开屏广告 后续优化添加
			launch() {
				try {
					// 获取本地存储中launchFlag标识 开屏广告
					const value = uni.getStorageSync("launchFlag");
					if (!value) {
						// this.$u.route("/pages/index/agreement");
					} else {
						//app启动时打开启动广告页
						var w = plus.webview.open(
							"/hybrid/html/advertise/advertise.html",
							"本地地址", {
								top: 0,
								bottom: 0,
								zindex: 999,
							},
							"fade-in",
							500
						);
						//设置定时器,4s后关闭启动广告页
						setTimeout(function() {
							plus.webview.close(w);
							APPUpdate();
						}, 3000);
					}
				} catch (e) {
					// error
					uni.setStorage({
						key: "launchFlag",
						data: true,
						success: function() {
							console.log("error时存储launchFlag");
						},
					});
				}
			},

			/**
			 * 获取粘贴板数据
			 */
			async getClipboard() {
				let res = await getClipboardData();

				/**
				 * 解析粘贴板数据
				 */

				if (res.indexOf(config.shareLink) != -1 && (res != this.$store.state.shareLink)) {
					this.$store.state.shareLink = res
					uni.showModal({
						title: "提示",
						content: "检测到一个分享链接是否跳转?",
						confirmText: "跳转",
						success: function(callback) {
							if (callback.confirm) {
								const path = res.split(config.shareLink)[1];
								if (path.indexOf("tabbar") != -1) {
									uni.switchTab({
										url: path,
									});
								} else {
									uni.navigateTo({
										url: path,
									});
								}
							}
						},
					});
				}
			},

			/**
			 * h5中打开app获取跳转app的链接并跳转
			 */
			checkArguments() {
				// #ifdef APP-PLUS
				setTimeout(() => {
					const args = plus.runtime.arguments;
					if (args) {
						const argsStr = decodeURIComponent(args);
						const path = argsStr.split("//")[1];
						if (path.indexOf("tabbar") != -1) {
							uni.switchTab({
								url: `/${path}`,
							});
						} else {
							uni.navigateTo({
								url: `/${path}`,
							});
						}
					}
				});
				// #endif
			},
		},
	};
</script>

<style lang="scss">
	@import "uview-ui/index.scss";

	// -------适配底部安全区  苹果x系列刘海屏

	// #ifdef MP-WEIXIN
	.mp-iphonex-bottom {
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
		box-sizing: content-box;
		height: auto !important;
		padding-top: 10rpx;
	}

	// #endif

	body {
		background-color: $bg-color;
	}

	/************************ */
	.w200 {
		width: 200rpx !important;
	}

	.flex1 {
		flex: 1; //必须父级设置flex
	}
</style>


================================================
FILE: CustomStoryboard/LaunchScreen.storyboard
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
    <device id="ipad12_9" orientation="portrait" layout="fullscreen" appearance="light"/>
    <dependencies>
        <deployment version="4096" identifier="iOS"/>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
        <capability name="System colors in document resources" minToolsVersion="11.0"/>
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
    </dependencies>
    <scenes>
        <!--View Controller-->
        <scene sceneID="EHf-IW-A2E">
            <objects>
                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
                    <view key="view" tag="1" contentMode="scaleAspectFit" id="Ze5-6b-2t3">
                        <rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <subviews>
                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LILI商城  享你所购" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="9" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aap-f2-ctd">
                                <rect key="frame" x="417.5" y="1291" width="189" height="65"/>
                                <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                                <constraints>
                                    <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="189" id="IEH-DH-MSh"/>
                                    <constraint firstAttribute="height" constant="65" id="Owl-Zu-11N"/>
                                    <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="65" id="pa9-7L-Yn2"/>
                                    <constraint firstAttribute="width" constant="189" id="xdI-XG-GYE"/>
                                </constraints>
                                <fontDescription key="fontDescription" type="boldSystem" pointSize="23"/>
                                <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                                <color key="highlightedColor" systemColor="secondarySystemGroupedBackgroundColor"/>
                            </label>
                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="1.png" highlightedImage="1.png" translatesAutoresizingMaskIntoConstraints="NO" id="tDb-oz-ZqQ" userLabel="logo.png">
                                <rect key="frame" x="437" y="1126" width="150" height="150"/>
                                <color key="tintColor" systemColor="systemGray6Color"/>
                                <constraints>
                                    <constraint firstAttribute="width" constant="150" id="2Pc-RJ-7fL"/>
                                    <constraint firstAttribute="width" secondItem="tDb-oz-ZqQ" secondAttribute="height" multiplier="1:1" id="K9U-1h-yR6"/>
                                    <constraint firstAttribute="height" constant="150" id="Ocb-HD-CX3"/>
                                </constraints>
                            </imageView>
                        </subviews>
                        <viewLayoutGuide key="safeArea" id="IW3-oA-Ytg"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                        <color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                        <constraints>
                            <constraint firstItem="IW3-oA-Ytg" firstAttribute="bottom" secondItem="aap-f2-ctd" secondAttribute="bottom" constant="10" id="AaD-Ch-YkJ"/>
                            <constraint firstItem="aap-f2-ctd" firstAttribute="top" secondItem="tDb-oz-ZqQ" secondAttribute="bottom" constant="15" id="TSj-WP-wlO"/>
                            <constraint firstItem="tDb-oz-ZqQ" firstAttribute="centerX" secondItem="IW3-oA-Ytg" secondAttribute="centerX" id="XFM-cQ-LjU"/>
                            <constraint firstItem="tDb-oz-ZqQ" firstAttribute="centerX" secondItem="aap-f2-ctd" secondAttribute="centerX" id="gTF-LF-cb1"/>
                        </constraints>
                        <variation key="heightClass=regular-widthClass=compact">
                            <color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                        </variation>
                    </view>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="50.390625" y="373.35285505124449"/>
        </scene>
    </scenes>
    <resources>
        <image name="1.png" width="86" height="57"/>
        <systemColor name="secondarySystemGroupedBackgroundColor">
            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
        </systemColor>
        <systemColor name="systemGray6Color">
            <color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
        </systemColor>
    </resources>
</document>


================================================
FILE: LICENSE
================================================
                    GNU AFFERO GENERAL PUBLIC LICENSE
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 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.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    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 <http://www.gnu.org/licenses/>.

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
<http://www.gnu.org/licenses/>.


================================================
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" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://pc-b2b2c.pickmall.cn/article/detail?id=1371992704333905920\">《服务协议》</a>和<a href=\"https://pc-b2b2c.pickmall.cn/article/detail?id=1371779927900160000\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
    "buttonAccept" : "同意并接受",
    "buttonRefuse" : "暂不同意",
    "second" : {
        "title" : "确认提示",
        "message" : "  进入应用前,你需先同意<a href=\"https://pc-b2b2c.pickmall.cn/article/detail?id=1371992704333905920\">《服务协议》</a>和<a href=\"https://pc-b2b2c.pickmall.cn/article/detail?id=1371779927900160000\">《隐私政策》</a>,否则将退出应用。",
        "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
================================================
<template>
	<view class="default-page">
		<view class="default-wrap">
			
			<text>{{title}}</text>
			<view v-if="isBtn" class="btn" @click="toHome">
				去逛逛
			</view>
		</view>
	</view>
</template>

<script>
export default {
	props: {
		// 购物车 cart 消息 msg  订单 order 查询 search
		type: {
			type: String,
			default: 'search'
		},
		isBtn:{
			type: Boolean,
			default: false
		},
		title:{
			type: String,
			default: '没有相关内容'
		}
	},
	
	data() {
		return {
			src:''
		};
	},
	mounted() {
		this.src ='/static/default/default_'+ this.type + '.png';
	},
	methods: {
		toHome() {
			uni.switchTab({
			    url: '/pages/home/home'
			});
		}
	}
};
</script>

<style lang="scss" scoped>
	.default-page{
		background: #FFFFFF;
		width: 100%;
		height: 100vh;
		.default-wrap{
			position: absolute;
			top: calc(50vh - 320rpx);
			left: calc(50% - 120rpx);
			display: flex;
			flex-direction: column;
			align-items: center;
			
			>image{
				width: 260rpx;
				height: 240rpx;
				
				margin-bottom: 24rpx;
			}
			text{
				font-size: 32rpx;
				color: #828385;
			}
			.btn{
				width: 160rpx;
				height: 56rpx;
				border: 2rpx solid #3180F6;
				border-radius: 6rpx;
				text-align: center;
				line-height: 56rpx;
				margin-top: 32rpx;
				font-size: 24rpx;
				color: #3180F6;
			}
		}
		
	}
</style>


================================================
FILE: components/m-airbtn/index.vue
================================================
<template>
  <view>
    <!-- #ifdef H5 -->
    <view class="wrapper" v-if="!weChat" @click="openApp()">
      <!-- 左侧图标 -->
      <image class="img" :src="logo"></image>
      <view class="open">
        打开{{config.name}}
      </view>
    </view>

    <!-- #endif -->
  </view>
</template>

<script>
import config from "@/config/config";
export default {
  data() {
    return {
      config, // 设置工具类
      weChat: false,  // 是否微信浏览器,该项为true时不显示 当前整个页面
      logo: require("@/icon.png"), //显示的圆形logo
    };
  },
  mounted() {
    // #ifdef H5
    // 判断是否是微信浏览器
    var ua = navigator.userAgent.toLowerCase();
    var isWeixin = ua.indexOf("micromessenger") != -1;
    if (isWeixin) {
      this.weChat = true;
    } else {
      this.weChat = false;
    }
    // #endif
  },
  methods: {

    /**
     * 跳转到下载app页面
     */
    downloadApp() {
      setTimeout(function () {
        window.location.href = config.downloadLink;
      }, 2000);
    },

    /**
     * 打开app 仅在h5生效 使用ifream唤醒app
     */
    openApp() {
      let src;
      if (location.href) {
        src = location.href.split("/pages")[1];
      }
      let t = `${config.schemeLink}pages${src}`;

      try {
        var e = navigator.userAgent.toLowerCase(),
          n = e.match(/cpu iphone os (.*?) like mac os/);
        if (
          ((n = null !== n ? n[1].replace(/_/g, ".") : 0), parseInt(n) >= 9)
        ) {
          window.location.href = t;

          this.downloadApp();
        } else {
          var r = document.createElement("iframe");
          (r.src = t), (r.style.display = "none"), document.body.appendChild(r);

          this.downloadApp();
        }
      } catch (e) {
        window.location.href = t;
        this.downloadApp();
      }
    },
  },
};
</script>

<style scoped lang="scss">
.img {
  margin: 0 4rpx;
  width: 50rpx;
  height: 50rpx;
  border-radius: 50%;
  border: 5rpx solid #fff;
}

.open {
  margin: 0 10rpx;
  text-align: center;
  font-size: 26rpx;
}
.wrapper:hover {
  transform: translateX(0);
}
.wrapper {
  transform: translateX(160rpx);
  transition: 0.35s;
  align-items: center;
  justify-content: center;
  display: flex;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  color: #fff;
  // width: 220rpx;
  background: $light-color;
  position: fixed;
  top: 25%;
  right: 0;
  height: 60rpx;
  z-index: 9;
}
</style>


================================================
FILE: components/m-buy/README.md
================================================
## 购买组件
1.本组件是砍价,积分购买,参团等复用组
2.后续会将此组件和商品购买组件合并,文档后续再出


================================================
FILE: components/m-buy/goods.vue
================================================
<template>
	<div class="wrapper">
		<u-popup class="popup" v-model="buyMask" :height="setup.height" closeable :mode="setup.mode" :border-radius="setup.radius" @close="closeMask()">
			<!-- 商品 -->
			<view class="goods-box bottom">
				<view class="goods-header">
					<view class="goods-img">
						<u-image width="200rpx" border-radius="20" class="uimage" height="200rpx" :src="selectedSpecImg ? selectedSpecImg : goodsDetail.thumbnail"></u-image>
					</view>
					<view class="goods-skus">
						<!-- 有活动商品价格 -->
						<view class="goods-price" v-if="goodsDetail.promotionPrice && ((isGroup && buyType === 'PINTUAN') || !isGroup)">
							<span v-if="goodsDetail.promotionPrice && !pointDetail">
								¥
								<span class="goods-price-promotionShow goods-price-bigshow">{{ $options.filters.goodsFormatPrice(goodsDetail.promotionPrice)[0] }}</span>
								.{{ $options.filters.goodsFormatPrice(goodsDetail.promotionPrice)[1] }}
							</span>
							<span v-if="pointDetail.points">
								<span class="goods-price-promotionShow goods-price-bigshow">{{ pointDetail.points }}</span>
								积分
							</span>
							<div class="promotion-box">
								¥
								<span class="goods-price-bigshow">{{ $options.filters.goodsFormatPrice(goodsDetail.price)[0] }}</span>
								.{{ $options.filters.goodsFormatPrice(goodsDetail.price)[1] }}
							</div>
						</view>
						<!-- 正常商品的价格 -->
						<view v-else>
							<!-- 批发价格 -->
							<div class="price-row flex" v-if="goodsDetail.salesModel === 'WHOLESALE'">
								<div class="goods-price" v-for="(item, index) in wholesaleList" :key="index">
									<span>
										¥
										<span class="goods-price-bigshow">{{ $options.filters.goodsFormatPrice(item.price)[0] }}</span>
										.{{ $options.filters.goodsFormatPrice(item.price)[1] }}
									</span>
									<span class="wholesale-item">{{ item.num }}{{ goodsDetail.goodsUnit }}</span>
								</div>
							</div>
							<div class="goods-price" v-else>
								<span>
									¥
									<span class="goods-price-bigshow">{{ $options.filters.goodsFormatPrice(goodsDetail.price)[0] }}</span>
									.{{ $options.filters.goodsFormatPrice(goodsDetail.price)[1] }}
								</span>
							</div>
						</view>
						<view class="goods-check-skus">
							已选
							<span class="goods-check-skus-name">
								{{ selectName }}
								<span>,{{ num }}个</span>
							</span>
						</view>
						<view class="goods-check-skus">
							库存
							<span class="goods-check-skus-name">
								<span>{{ goodsDetail.quantity }}</span>
							</span>
						</view>
					</view>
				</view>
				<!-- 商品信息 -->
				<scroll-view class="goods-skus-box" :scroll-y="true">
					<!-- 规格 -->
					<view class="goods-skus-view" :key="specIndex" v-for="(spec, specIndex) in formatList">
						<view class="skus-view-list">
							<view class="view-class-title">{{ spec.name }}</view>

							<!-- 正常逻辑 循环出sku -->
							<view
								v-if="!parentOrder"
								:class="{ active: spec_val.value == currentSelected[specIndex] }"
								class="skus-view-item"
								v-for="(spec_val, spec_index) in spec.values"
								:key="spec_index"
								@click="handleClickSpec(spec, specIndex, spec_val)"
							>
								{{ spec_val.value }}
							</view>

							<!-- 拼团购买,仅筛选出当前拼团类型商品 -->
							<view
								v-if="parentOrder && spec_val.skuId == goodsDetail.id"
								:class="{ active: spec_val.value == currentSelected[specIndex] }"
								class="skus-view-item"
								v-for="(spec_val, spec_index) in spec.values"
								:key="spec_index"
								@click="handleClickSpec(spec, specIndex, spec_val)"
							>
								{{ spec_val.value }}
							</view>
						</view>
					</view>
					<div class="soldout" v-if="goodsDetail.quantity === 0">
						<u-alert-tips type="warning" title="商品已售罄" description="当前商品库存为0"></u-alert-tips>
					</div>
					<!-- 数量 -->
					<view v-if="goodsDetail.quantity !== 0" class="goods-skus-number flex flex-a-c flex-j-sb">
						<view class="view-class-title">数量</view>
						<uni-number-box class="uNumber" :min="1" :max="999" :disabled="goodsDetail.quantity === 0"  v-model="num"></uni-number-box>
					</view>
				</scroll-view>
				<!-- 按钮 -->
				<view class="btns" v-if="goodsDetail.quantity !== 0">
					<view class="box-btn card" v-if="buyType != 'PINTUAN' && goodsDetail.goodsType != 'VIRTUAL_GOODS'" @click="addToCartOrBuy('cart')">加入购物车</view>
					<view class="box-btn buy" @click="addToCartOrBuy('buy')">立即购买</view>
				</view>
			</view>
		</u-popup>
	</div>
</template>
<script>
import * as API_trade from '@/api/trade.js';
import setup from './popup';
import uniNumberBox from '@/components/uni-number-box'
export default {
	components: {
		uniNumberBox
	},
	data() {
		return {
			setup,
			num: this.wholesaleList && this.wholesaleList.length > 0 ? this.wholesaleList[0].num : 1,

			selectName: '', //选中商品的昵称
			selectSkuList: '', //选中商铺sku,
			selectedSpecImg: '', //选中的图片路径
			buyType: '', //用于存储促销,拼团等活动类型
			parentOrder: '', //父级拼团活动的数据 - 如果是团员则有数据
			formatList: [],
			currentSelected: [],
			skuList: '',
			isClose: false //是否可以点击遮罩关闭
		};
	},
	props: {
		wholesaleList: {
			type: null,
			default: false
		},
		buyMask: {
			type: Boolean,
			default: false
		},
		isGroup: {
			type: Boolean,
			default: false
		},
		goodsDetail: {
			default: '',
			type: null
		},
		selectedSku: {
			default: '',
			type: null
		},
		goodsSpec: {
			default: '',
			type: null
		},
		addr: {
			default: '',
			type: null
		},
		pointDetail: {
			default: '',
			type: null
		}
	},
	computed: {
		wholesalePrice(key) {
			return this.wholesaleList.length
				? this.wholesaleList.map(item => {
						return item.price;
				  })
				: [];
		},
		wholesaleNum(key) {
			return this.wholesaleList.length
				? this.wholesaleList.map(item => {
						return item.num;
				  })
				: [];
		}
	},
	watch: {
		num(val) {
			
			val == 0 ? this.num = 1 : ''
			if (val) {
				
				//超过库存后修改回库存
				if (val > this.goodsDetail.quantity) {
					this.$nextTick(function() {
						this.num = this.goodsDetail.quantity;
					});
				}
			}
		},
		buyType: {
			handler(val) {
				if (val) {
					this.buyType = val;
				}
			},
			immediate: true
		},
		selectSkuList: {
			handler(val, oldval) {
				this.$emit('changed', val);
			},
			deep: true
		},
		'goodsDetail.quantity': {
			handler(val) {
				if (val == 0) {
					uni.showToast({
						title: '商品已售罄',
						duration: 2000,
						icon: 'none'
					})
					this.num = 1;
				}
			}
		}
	},

	methods: {
		numCheck(val) {
			if (this.wholesaleList && this.wholesaleList.length > 0) {
				if (this.num <= this.wholesaleList[0].num) {
					uni.showToast({
						title: '批发商品购买数量不能小于起批数量!',
						duration: 2000,
						icon: 'none'
					});
					this.num = this.wholesaleList[0].num;
				}
			}
		},
		closeMask() {
			this.$emit('closeBuy', false);
		},
		
		/**点击规格 */
		handleClickSpec(val, index, specValue) {
			this.currentSelected[index] = specValue.value;
			let selectedSkuId = this.goodsSpec.find(i => {
				let matched = true;
				let specValues = i.specValues.filter(j => j.specName !== 'images');
				for (let n = 0; n < specValues.length; n++) {
					if (specValues[n].specValue !== this.currentSelected[n]) {
						matched = false;
						return;
					}
				}
				if (matched) {
					return i;
				}
			});
			if (selectedSkuId?.skuId) {
				this.$set(this.currentSelected, index, specValue.value);
				this.selectSkuList = {
					spec: {
						specName: val.name,
						specValue: specValue.value
					},
					data: this.goodsDetail
				};
				this.selectName = specValue.value;

				this.$emit('handleClickSku', {
					skuId: selectedSkuId.skuId,
					goodsId: this.goodsDetail.goodsId
				});
			} else {
				uni.showToast({
					title: '暂无该商品!',
					duration: 2000,
					icon: 'none'
				});
			}
		},

		/**
		 * 直接购买
		 */
		buy(data) {
			API_trade.addToCart(data).then(res => {
				if (res.data.success) {
					uni.navigateTo({
						url: `/pages/order/fillorder?way=${data.cartType}&addr=${''}&parentOrder=${encodeURIComponent(JSON.stringify(this.parentOrder))}`
					});
				}
			});
		},

		/**
		 * 添加到购物车或购买
		 */
		addToCartOrBuy(val) {
			if (!this.selectSkuList) {
				uni.showToast({
					title: '请选择规格商品',
					icon: 'none'
				});
				return;
			}
			let data = {
				skuId: this.goodsDetail.id,
				num: this.num
			};

			if (val == 'cart') {
				API_trade.addToCart(data).then(res => {
					if (res.data.code == 200) {
						uni.showToast({
							title: '商品已添加到购物车',
							icon: 'none'
						});

						this.$emit('queryCart');
						this.closeMask();
					}
				});
			} else {
				// 判断是否拼团商品
				if (this.buyType) {
					data.cartType = 'PINTUAN';
				} else if (this.goodsDetail.goodsType == 'VIRTUAL_GOODS') {
					data.cartType = 'VIRTUAL';
				} else {
					data.cartType = 'BUY_NOW';
				}

				API_trade.addToCart(data).then(res => {
					if (res.data.code == 200) {
						uni.navigateTo({
							url: `/pages/order/fillorder?way=${data.cartType}&addr=${this.addr.id || ''}&parentOrder=${encodeURIComponent(JSON.stringify(this.parentOrder))}`
						});
					}
				});
			}
		},
		formatSku(list) {
			// 格式化数据
			let arr = [{}];

			if (!Array.isArray(list)) {
				return false;
			}
			list.forEach((item, index) => {
				item.specValues.forEach((spec, specIndex) => {
					let name = spec.specName;
					let values = {
						value: spec.specValue,
						quantity: item.quantity,
						skuId: item.skuId
					};
					if (name === 'images') {
						return;
					}

					arr.forEach((arrItem, arrIndex) => {
						if (
							arrItem.name == name &&
							arrItem.values &&
							!arrItem.values.find(i => {
								return i.value === values.value;
							})
						) {
							arrItem.values.push(values);
						}

						let keys = arr.map(key => {
							return key.name;
						});
						if (!keys.includes(name)) {
							arr.push({
								name: name,
								values: [values]
							});
						}
					});
				});
			});

			arr.shift();
			this.formatList = arr;

			list.forEach(item => {
				// 默认选中
				if (item.skuId === this.goodsDetail.id) {
					item.specValues
						.filter(i => i.specName !== 'images')
						.forEach((value, _index) => {
							this.currentSelected[_index] = value.specValue;

							this.selectName = value.specValue;

							this.selectSkuList = {
								spec: value,
								data: this.goodsDetail
							};
						});
				}
			});

			this.skuList = list;
			// console.log(" this.skuList", this.skuList)
		}
	},

	mounted() {
		this.formatSku(this.goodsSpec);

		console.log("goodsDetail",this.goodsDetail)
	}
};
</script>
<style lang="scss" scoped>
@import './popup.scss';

.price-row {
	text-align: center;
}

.buy {
	background-image: linear-gradient(135deg, #ffba0d, #ffc30d 69%, #ffcf0d);
	box-shadow: 0 2px 6px 0 rgba(255, 65, 66, 0.2);
}

.card {
	background-image: linear-gradient(135deg, #f2140c, #f2270c 70%, #f24d0c);
	box-shadow: 0 2px 6px 0 rgba(255, 65, 66, 0.2);
}

/deep/.u-icon-plus,
.u-icon-minus,
.u-icon-disabled {
	height: 30rpx !important;
	background: #fff !important;
}

.goods-skus-number {
	justify-content: space-between;
	display: flex;

	> .view-class-title {
		flex: 8;
	}

	> .view-class-input {
		flex: 1;
	}
}

/deep/ .uni-scroll-view {
	overflow: hidden !important;
}

.active {
	background: $price-light-color !important;
	border: 2rpx solid $price-color;
	font-weight: bold;
	color: $price-color !important;
	box-sizing: border-box;
}

.goods-skus-box {
	overflow-y: auto;
	height: 610rpx;
	// #ifdef MP-WEIXIN
	height: 570rpx;
	// #endif
	margin-bottom: 10rpx;
}
.soldout{
	margin: 20rpx 0;
}

.goods-skus-view {
	overflow: hidden;

	.skus-view-list {
		> .skus-view-item {
			flex: 1;
			padding: 0 36rpx;

			overflow: hidden;
			height: 60rpx;
			line-height: 60rpx;
			float: left;
			text-align: center;
			margin-left: 24rpx;
			margin-bottom: 20rpx;
			font-size: 22rpx;
			color: #262626;
			background: #f2f2f2;
			border-radius: 30rpx;
		}
	}
}

.wholesale-item {
	color: #999 !important;
	font-size: 24rpx;
	margin: 0 20rpx;
	display: flex;
	justify-content: center;
}

.goods-header {
	height: 200rpx;
	display: flex;
	align-items: center;
	margin-bottom: 36rpx;
}

.goods-box {
	padding: 50rpx 36rpx 0 36rpx;
}

.goods-skus {
	padding: 0 20rpx;
}

.goods-price {
	color: $price-color;
	line-height: 80rpx;
	margin-right: 20rpx;

	> * {
		color: $price-color;
		line-height: 80rpx;
	}
}

.promotion-box {
	line-height: 1;
	display: flex;
	align-items: center;
	text-decoration: line-through;
	color: #999;
	margin-left: 10rpx;

	/deep/ span {
		font-size: 30rpx;
	}
}

.promotion {
	font-size: 30rpx;
}

.goods-price-promotionShow {
	font-size: 48rpx;
}

.goods-check-skus {
	font-size: 24rpx;
	color: #999;

	> .goods-check-skus-name {
		margin-left: 4rpx;
	}

	> span {
		color: #333;
	}
}
</style>


================================================
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
================================================
<template>

  <div class="index">
    <u-modal v-model="show" :show-title="false" :show-confirm-button="false" mask-close-able>
      <view class="slot-content">
        <image @click="downLoad()" class="img" :src="imgUrl" />
        <div class="canvas-hide">
          <!-- #ifdef MP-WEIXIN -->
          <canvas id="canvas" type="2d" style="width: 600px; height: 960px" />
          <!-- #endif -->
          <!-- #ifndef MP-WEIXIN -->
          <canvas canvas-id="canvas" id="canvas" style="width: 600px; height: 960px" />
          <!-- #endif -->
        </div>
      </view>
    </u-modal>

  </div>
</template>
<script>
// 引入绘制插件
import DrawPoster from "@/js_sdk/u-draw-poster";

export default {
  data: () => ({
    imgUrl: "", //绘制出来的图片路径
    show: false, //是否展示模态框
    dp: {}, //绘制的dp对象,用于存储绘制等一些方法。
    logo: require("@/pages/passport/static/logo-title.png"), //本地logo地址
  }),

  props: {
    /**
     * 父级传参的数据
     */
    res: {
      type: null,
      default: "",
    },
  },
  onUnload() {},

  methods: {
    /**
     * 解决微信小程序中图片模糊问题
     */
    // #ifdef MP-WEIXIN
    st2: (size) => size * 2,
    // #endif

    // #ifndef MP-WEIXIN
    st2: (size) => size,
    // #endif

    /**
     * 保存图片
     */
    downLoad() {
      uni.saveImageToPhotosAlbum({
        filePath: this.imgUrl,
        success: function () {
          uni.showToast({
            title: "保存成功!",
            icon: "none",
          });
        },
        fail: function () {
          uni.showToast({
            title: "保存失败,请稍后重试!",
            icon: "none",
          });
        },
      });
    },

    /**
     * 创建canvas
     */
    async init() {
      this.show = true;
      this.dp = await DrawPoster.build({
        selector: "canvas",
        componentThis: this,
        loading: true,
        debugging: true,
      });
      let dp = this.dp;
      // #ifdef MP-WEIXIN
      // 用于微信小程序中画布错乱问题
      dp.canvas.width = this.st2(600);
      dp.canvas.height = this.st2(960);
      // #endif
      this.draw(dp);
    },

    async draw(dp) {
      const { width, height, background, title } = this.res.container;
      const { code, img, price } = this.res.bottom;

      // /** 绘制背景 */
      await dp.draw((ctx) => {
        ctx.fillStyle = background;
        ctx.fillRoundRect(
          this.st2(0),
          this.st2(0),
          this.st2(width),
          this.st2(height),
          this.st2(12)
        );
        ctx.clip();
      });
      /** 绘制图片 */
      dp.draw(async (ctx) => {
        await Promise.all([
          // 绘制Logo
          ctx.drawImage(
            this.logo,
            this.st2(175),
            this.st2(0),
            this.st2(256),
            this.st2(144)
          ),
          // 中间图片
          ctx.drawImage(
            img,
            this.st2(100),
            this.st2(150),
            this.st2(400),
            this.st2(400)
          ),
          // 二维码
          ctx.drawImage(
            code,
            this.st2(39),
            this.st2(750),
            this.st2(150),
            this.st2(150)
          ),
        ]);
      });

      /** 绘制中间文字*/
      await dp.draw((ctx) => {
        ctx.fillStyle = "#333";
        ctx.font = `bold ${this.st2(24)}px PingFang SC`;
        ctx.textAlign = "center";
        ctx.fillWarpText({
          text: title,
          maxWidth: this.st2(500),
          x: this.st2(300),
          y: this.st2(600),
          layer: 1,
        });

        ctx.fillStyle = "#ff3c2a";
        ctx.font = `${this.st2(38)}px PingFang SC`;
        ctx.textAlign = "center";
        ctx.fillText(price, this.st2(300), this.st2(680));
      });

      // /** 绘制底部文字 */
      await dp.draw((ctx) => {
        ctx.fillStyle = "#666";
        ctx.font = `${this.st2(24)}px PingFang SC`;
        ctx.fillText("长按图片,识别二维码", this.st2(200), this.st2(866));
        ctx.fillStyle = "#666";
        ctx.font = `${this.st2(24)}px PingFang SC`;
        ctx.fillText("查看商品详情", this.st2(200), this.st2(900));
      });

      this.imgUrl = await dp.createImagePath();

      // console.log(posterImgUrl)
    },
  },

  async mounted() {
    this.init();
  },
};
</script>

<style lang="scss" scoped>
page,
.index {
  height: 100%;
}
.canvas-hide {
  /* 1 */
  position: fixed;
  right: 100vw;
  bottom: 100vh;
  /* 2 */
  z-index: -9999;
  /* 3 */
  opacity: 0;
}
.index {
  position: relative;
  text-align: center;
  background: rgba($color: grey, $alpha: 0.2);
}

image {
  display: block;
}
.img {
  width: 600rpx;
  height: 960rpx;
}
</style>


================================================
FILE: components/m-city/m-city.vue
================================================
<template>
  <view>
    <view
      class="mask"
      :class="{ maskShow: showPicker }"
      @click="hide"
      @click.stop.prevent
      @touchmove.stop.prevent
      catchtouchmove="true"
    ></view>
    <view class="cpicker-content" :class="{ cpickerShow: showPicker }">
      <view
        class="city-head"
        @click.stop.prevent
        @touchmove.stop.prevent
        catchtouchmove="true"
      >
        <view class="city-head-title">{{ headTitle }}</view>
        <icon
          type="clear"
          v-if="clearRightIcon"
          class="clearRightIcon"
          size="20"
          color="#cccccc"
          @click="hide"
        ></icon>
      </view>
      <scroll-view
        id="nav-bar"
        class="nav-bar"
        scroll-x="true"
        scroll-with-animation="true"
        :scroll-left="scrollLeft"
      >
        <view
          v-for="(item, index) in tabbars"
          class="nav-item"
          :key="index"
          :id="'tab' + index"
          @click="changeTab(index)"
          :class="{ current: index === tabCurrentIndex }"
          ><text class="nav-bar-title">{{ item.localName }}</text></view
        >
      </scroll-view>
      <view class="city_content">
        <scroll-view
          class="panel-scroll-box"
          :scroll-y="enableScroll"
          :cscrollTop="scrollTop"
          :current="tabCurrentIndex"
          :scroll-top="scrollTop"
        >
          <block
            v-for="(item, index) in tabbars[tabCurrentIndex].children"
            :key="index"
          >
            <view
              class="flex-row-c-c"
              @click="changCity(tabCurrentIndex, item)"
            >
              <text
                class="city-text"
                :class="{ color: tabbars[tabCurrentIndex].id == item.id }"
                >{{ item.name }}</text
              >
              <icon
                type="success_no_circle"
                v-if="tabbars[tabCurrentIndex].id == item.id"
                :id="'show' + tabCurrentIndex"
                class="ischeck"
                size="14"
                :color="$lightColor"
              ></icon>
            </view>
          </block>
        </scroll-view>
      </view>
    </view>
  </view>
</template>

<script>
let windowWidth = 0
import { getRegionsById } from "@/api/common.js";
export default {
  name: "UniCityNvue",
  props: {
    headTitle: {
      //标题
      type: String,
      default: "区域选择",
    },
    pickerSize: {
      // 使用多少个tab
      type: [String, String],
      default: "1",
    },
    provinceData: {
      // 默认的省市区id,如果不使用id的情况下则为[];
      type: Array,
      default: function () {
        return [];
      },
    },
  },
  data() {
    return {
      clearRightIcon: true, //是否显示右侧关闭icon
      scrollLeft: 500, //顶部选项卡左滑距离
      scrollTop: 0, //默认滚动顶部为0
      enableScroll: true, //是否启用滚动
      tabCurrentIndex: 0, //当前选项卡索引
      tabbars: this.provinceData, //默认的省市区id
      pickersize: this.pickerSize, //多少个tab 推荐为4级 
      showPicker: false, //显示选取器
    };
  },
  methods: {

    /**
     * 显示选择器
     */
    show() {
      this.showPicker = true;
      if (this.tabbars[0].children.length == 0) {
        getRegionsById(0).then((res) => {
          this.tabbars[0].children = res.data.result;
        });
      }

      windowWidth = uni.getSystemInfoSync().windowWidth;
    },

    /**
     * 关闭选择器
     */
    hide() {
      this.showPicker = false;
    },
    
    /**
     * tab切换
     */
    changeTab(e) {
      let index = e;
      this.setScroll(index);
      //延迟300ms,等待swiper动画结束再修改tabbar
      this.tabCurrentIndex = index;
      setTimeout(() => {
        this.getScroll("show" + index);
      }, 10);
    },
    
    /**
     * 获得元素的大小
     */
    getElSize(id) {
      return new Promise((res, rej) => {
        let el = uni
          .createSelectorQuery()
          .in(this)
          .select("#" + id);
        el.fields(
          {
            size: true,
            scrollOffset: true,
            rect: true,
          },
          (data) => {
            res(data);
          }
        ).exec();
      });
    },

    /**
     * 点击城市后回调
     */
    async changCity(index, item) {
      if (this.tabbars[index].id != item.id) {
        this.tabbars[index].localName = item.name;
        this.tabbars[index].id = item.id;
        this.tabbars[index].center = item.center
        if (index < this.tabbars.length - 1) {
          this.tabbars.splice(index + 1, this.tabbars.length - index - 1);
        }
        if (this.tabbars.length < this.pickersize) {
          uni.showLoading({
            title: "加载中",
            mask:true
          });
          try {
            let data = await getRegionsById(item.id);
            uni.hideLoading();
            // 当前选项级为最后一级时回调,将选中的数据返回
            if (data.data.result.length == 0) {
              this.$emit("funcValue", this.tabbars);
              this.hide();
            } else {
              // 将新的数据填充进下一级
              var current = {
                localName: "请选择",
                id: "",
                children: data.data.result,
                
              };
              this.tabbars.push(current);
              this.tabCurrentIndex++;

              // 当前距离重新为最上面
              this.$set(this,'scrollTop',0)
            }
            } catch (error) {
              uni.hideLoading();
            }
         
        } else {
          this.$emit("funcValue", this.tabbars);
          this.hide();
        }
      }
    },

    /**
     * 获取当前tab中滚动的距离
     */
    async setScroll(index) {
      let width = 0;
      let nowWidth = 0;
      for (let i = 0; i <= index; i++) {
        let result = await this.getElSize("tab" + i);
        width += result.width;
        if (i === index) {
          nowWidth = result.width;
        }
      }
      if (width + nowWidth > windowWidth) {
        this.scrollLeft = width + nowWidth;
      } else {
        this.scrollLeft = 0;
      }
    },

    /**
     * 计算当前的滚动距离
     */
    getScroll(id) {
      uni
        .createSelectorQuery()
        .in(this)
        .select(".panel-scroll-box")
        .boundingClientRect((data) => {
          uni
            .createSelectorQuery()
            .in(this)
            .select("#" + id)
            .boundingClientRect((res) => {
              if (res != undefined && res != null && res != "") {
                this.scrollTop = res.top - data.top;
              }
            })
            .exec();
        })
        .exec();
    },
  },
};
</script>

<style lang="scss" scoped>

.mask {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s ease;
}
.maskShow {
  visibility: visible;
  opacity: 1;
}
.cpicker-content {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform: translateY(100%);
  z-index: 3000;
}
.cpickerShow {
  transform: translateY(0);
}
.city-head {
  width: 750rpx;
  height: 88rpx;
  flex-direction: column;
  border-bottom-width: 1px;
  border-bottom-color: #f4f4f4;
  border-bottom-style: solid;
}
.city-head-title {
  font-size: 15px;
  line-height: 88rpx;
  align-items: center;
  /* #ifndef APP-NVUE */
  text-align: center;
  /* #endif */
}
.clearRightIcon {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 10px;
  color: #bebebe;
}
.nav-bar {
  position: relative;
  z-index: 10;
  height: 90rpx;
  white-space: nowrap;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
  background-color: #fff;
}

.nav-item {
  /* #ifndef APP-NVUE */
  display: inline-flex !important;
  /* #endif */
  /* #ifdef APP-NVUE */
  flex-direction: row !important;
  /* #endif */
  width: 170rpx;
  padding: 7px 0px;
  line-height: 26px;
  align-items: center;
  justify-content: center;
  color: #303133;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-bar-title {
  font-size: 12px;
}
.current {
  color: $aider-light-color;
  border-color: $aider-light-color;
  border-bottom-width: 4rpx;
  border-bottom-style: solid;
}
.current:after {
  width: 50%;
}
.panel-scroll-box {
  height: 516rpx;
  margin-top: 8px;
}
.flex-row-c-c {
  /* #ifndef APP-NVUE */
  display: block;
  /* #endif */
  /* #ifdef APP-NVUE */
  flex-direction: row;
  /* #endif */
  padding-left: 25px;
}
.city-text {
  /* #ifdef APP-NVUE */
  flex-direction: row;
  /* #endif */
  height: 35px;
  line-height: 35px;
  font-size: 13px;
}
.hide {
  opacity: 0;
}
.ischeck {
  /* #ifndef APP-NVUE */
  display: inline-flex !important;
  /* #endif */
  /* #ifdef APP-NVUE */
  flex-direction: column;
  /* #endif */
  margin-right: 5px;
  vertical-align: middle;
}
.color {
  color: $light-color;
}
icon {
  margin-left: 40rpx;
}
</style>


================================================
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
================================================
<template>
  <div>
    <!-- 一行两列商品展示 -->
    <view class="goods-list" v-if="type == 'twoColumns'">
      <view v-for="(item, index) in res" :key="index" class="goods-item">
        <view class="image-wrapper" @click="navigateToDetailPage(item)">
          <u-image
            :src="item.thumbnail"
            width="100%"
            height="330rpx"
           mode="aspectFit"
          >
            <u-loading slot="loading"></u-loading>
          </u-image>
        </view>
        <view class="goods-detail">
          <div
            class="title clamp"
            v-html="lightSearchStr(keyword, item.goodsName)"
            @click="navigateToDetailPage(item)"
          ></div>
          <view class="price-box" @click="navigateToDetailPage(item)">
            <div class="price" v-if="item.price != undefined">
              ¥<span
                >{{
                  $options.filters.goodsFormatPrice(item.price)[0]
                }} </span
              >.{{ $options.filters.goodsFormatPrice(item.price)[1] }}
            </div>
          </view>
          <div class="count-config" @click="navigateToDetailPage(item)">
            <span>已售 {{ item.buyCount || "0" }}</span>
            <span>{{ item.commentNum || "0" }}条评论</span>
          </div>
          <div
            class="store-seller-name"
            v-if="storeName"
            @click="navigateToStoreDetailPage(item)"
          >
            <div class="text-hidden">
              <u-tag
                style="margin-right: 10rpx"
                size="mini"
                mode="dark"
                v-if="item.selfOperated"
                text="自营"
                type="error"
              />
              <span>{{ item.storeName || "暂无" }}</span>
            </div>
            <span>
              <u-icon name="arrow-right"></u-icon>
            </span>
          </div>
        </view>
      </view>
    </view>
	 <!-- 一行一列商品展示 -->
    <div v-if="type == 'oneColumns'">
      <div  v-for="(item, index) in res" :key="index" class="goods-row">
        <div class="flex goods-col">
          <div class="goods-img" @click="navigateToDetailPage(item)">
            <u-image
              width="230rpx"
              border-radius="16"
              height="230rpx"
							mode="aspectFit"
              :src="item.goodsImage || item.thumbnail"
            >
              <u-loading slot="loading"></u-loading>
            </u-image>
          </div>
          <div class="goods-detail">
            <div class="title clamp3" @click="navigateToDetailPage(item)">
              {{ item.goodsName }}
            </div>
            <view class="price-box" @click="navigateToDetailPage(item)">
              <div class="price" v-if="item.price != undefined">
                ¥<span
                  >{{ $options.filters.goodsFormatPrice(item.price)[0] }} </span
                >.{{ $options.filters.goodsFormatPrice(item.price)[1] }}
              </div>
            </view>
            <div class="promotion" @click="navigateToDetailPage(item)">
              <div v-if="item.salesModel == 'WHOLESALE'">
                <span>批</span>
              </div>
              <div
                v-for="(promotionItem, promotionIndex) in getPromotion(item)"
                :key="promotionIndex"
              >
                <span v-if="promotionItem.indexOf('COUPON') != -1">劵</span>
                <span v-if="promotionItem.indexOf('FULL_DISCOUNT') != -1"
                  >满减</span
                >
                <span v-if="promotionItem.indexOf('SECKILL') != -1">秒杀</span>
              </div>
            </div>
            <div
              style="overflow: hidden"
              @click="navigateToDetailPage(item)"
              class="count-config"
            >
              <span style="float: left; font-size: 22rpx"
                >已售 {{ item.buyCount || "0" }}</span
              >
              <span style="float: right; font-size: 22rpx"
                >{{ item.commentNum || "0" }}条评论</span
              >
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import commonTpl from "@/components/m-goods-list/common";
export default {
  data() {
    return {
      lightColor: this.$mainColor,
    };
  },
  mixins: [commonTpl],
  props: {
	// 展示的类型
	type:{
		type:String,
		default:"oneColumns"
	},
    // 遍历的数据
    res: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  methods: {
    // 跳转到商品详情
    navigateToDetailPage(item) {
      uni.navigateTo({
        url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.goods-list {
  display: flex;
  flex-wrap: wrap;
  margin: 10rpx 20rpx 284rpx;
  width: 100%;

  > .goods-item {
    background-color: #ffffff;
    display: flex;
    border-radius: 16rpx;
    flex-direction: column;
    width: calc(50% - 30rpx);
    margin-bottom: 20rpx;
    padding-bottom: 20rpx;

    &:nth-child(2n + 1) {
      margin-right: 20rpx;
    }

    .image-wrapper {
      width: 100%;
      height: 330rpx;
      border-radius: 16rpx 16rpx 0 0;
      overflow: hidden;
      padding: 0;
    }
  }

  .count-config,
  .store-seller-name {
    font-size: $font-sm;
  }

  .text-hidden {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.goods-row {
  background: #fff;
  padding: 16rpx;

  > .goods-col {
    display: flex;

    > .goods-img {
      overflow: hidden;
      flex: 4;
    }

    > .goods-detail {
      flex: 7;
    }
  }
}

.goods-detail {
  margin: 0 20rpx;

  > .title {
    font-size: $font-base;
    color: $font-color-dark;
    line-height: 1.5;
    height: 86rpx;
    padding: 10rpx 0 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .promotion {
    margin-top: 4rpx;
    display: flex;

    div {
      span {
        font-size: 24rpx;
        color: $light-color;
        margin-right: 10rpx;
        padding: 0 4rpx;
        border-radius: 2rpx;
      }
    }
  }

  .store-seller-name {
    color: #666;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
  }

  .count-config {
    padding: 5rpx 0;
    color: #666;
    display: flex;
    font-size: 24rpx;
    justify-content: space-between;
  }

  > .price-box {
    margin-top: 10rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10rpx;
    font-size: 24rpx;
    color: $font-color-light;

    > .price {
      font-size: 26rpx;
      line-height: 1;
      color: $main-color;
      font-weight: bold;

      /deep/ span:nth-of-type(1) {
        font-size: 38rpx;
      }
    }
  }
}
</style>


================================================
FILE: components/m-goods-list/common.vue
================================================
<template>
</template>

<script>
	export default {
		methods: {
			// 高亮显示搜索内容	
			lightSearchStr(keyword, str) {
				if (!keyword) {
					return str
				} else {
					let unicodes = '';
					for (let i of Array.from(keyword)) {
						unicodes += this.unicode(i) + "|"
					}
					const rule = '(' + unicodes + ')'
					const reg = new RegExp(rule, 'gi');
					return str ? str.replace(reg, matchValue =>
						`<span style="color:${this.lightColor}">${matchValue}</span>`
					) : ''
				}
			},
			//  转换为unicode
			unicode(str) {
				var value = '';
				for (var i = 0; i < str.length; i++) {
					value += '\\u' + this.left_zero_4(parseInt(str.charCodeAt(i)).toString(16));
				}
				return value;
			},
			left_zero_4(str) {
				if (str != null && str != '' && str != 'undefined') {
					if (str.length == 2) {
						return '00' + str;
					}
				}
				return str;
			},
			// 数据去重一下 只显示一次 减免 劵 什么的
			getPromotion(item) {
				if (item.promotionMap) {
					let array = [];
					Object.keys(item.promotionMap).forEach((child) => {
						if (!array.includes(child.split("-")[0])) {
							array.push(child.split("-")[0]);
						}
					});
					return array;
				}
			},
			// 跳转到商品详情
			navigateToDetailPage(item) {
				uni.navigateTo({
					url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`,
				});
			},
			// 跳转地址
			navigateToStoreDetailPage(item) {
				uni.navigateTo({
					url: `/pages/product/shopPage?id=${item.storeId}`,
				});
			},
		},
	}
</script>

<style lang='scss' scoped>
	
</style>


================================================
FILE: components/m-goods-list/list.vue
================================================
<template>
	<view>
		<!-- 一行两列商品展示 -->
		<view class="goods-list" v-if="type == 'twoColumns'">
			<view v-for="(item, index) in res" :key="index" class="goods-item">
				<view class="image-wrapper" @click="navigateToDetailPage(item)">
					<u-image :src="item.thumbnail" width="100%" height='330rpx' mode="aspectFit">
						<u-loading slot="loading"></u-loading>
					</u-image>
				</view>
				<view class="goods-detail">
					<div class="title clamp" v-html="lightSearchStr(keyword,item.goodsName)"
						@click="navigateToDetailPage(item)">

					</div>
					<view class="price-box" @click="navigateToDetailPage(item)">
						<div class="price" v-if="item.price!=undefined">
							¥<span>{{ $options.filters.goodsFormatPrice(item.price )[0] }} </span>.{{
	            $options.filters.goodsFormatPrice(item.price )[1]
	          }}
						</div>
					</view>
					<div class="promotion" @click="navigateToDetailPage(item)">
						<div v-if="item.salesModel == 'WHOLESALE'">
							<span>批</span>
						</div>
						<div v-for="(promotionItem,promotionIndex) in  getPromotion(item)" :key="promotionIndex">
							<span v-if="promotionItem.indexOf('COUPON') != -1">劵</span>
							<span v-if="promotionItem.indexOf('FULL_DISCOUNT') != -1">满减</span>
							<span v-if="promotionItem.indexOf('SECKILL') != -1">秒杀</span>
						</div>
					</div>
					<div class="count-config" @click="navigateToDetailPage(item)">
						<span>已售 {{ item.buyCount || "0" }}</span>
						<span>{{ item.commentNum || "0" }}条评论</span>
					</div>
					<div class="store-seller-name" v-if="storeName" @click="navigateToStoreDetailPage(item)">
						<div class="text-hidden">
							<u-tag style="margin-right: 10rpx" size="mini" mode="dark" v-if="item.selfOperated"
								text="自营" type="error" />
							<span>{{ item.storeName || "暂无" }}</span>
						</div>
						<span>
							<u-icon name="arrow-right"></u-icon>
						</span>
					</div>
				</view>
			</view>
		</view>
		<!-- 一行一列商品展示 -->
		<div v-if="type == 'oneColumns'"  class="goods-one-row">
			<div v-for="(item, index) in res" :key="index" class="goods-row">
				<div class="flex goods-col">
					<div class="goods-img" @click="navigateToDetailPage(item)">
						<u-image width="230rpx" mode="aspectFit" border-radius='16' height="230rpx" :src="item.thumbnail">
							<u-loading slot="loading"></u-loading>
						</u-image>
					</div>
					<div class="goods-detail">
						<div class="title clamp3" @click="navigateToDetailPage(item)">{{ item.goodsName }}</div>
						<view class="price-box" @click="navigateToDetailPage(item)">
							<div class="price" v-if="item.price!=undefined">
								¥<span>{{ $options.filters.goodsFormatPrice(item.price )[0] }} </span>.{{
			            $options.filters.goodsFormatPrice(item.price )[1]
			          }}
							</div>
						</view>
						<div class="promotion" @click="navigateToDetailPage(item)">
							<div v-if="item.salesModel == 'WHOLESALE'">
								<span>批</span>
							</div>
							<div v-for="(promotionItem,promotionIndex) in  getPromotion(item)" :key="promotionIndex">
								<span v-if="promotionItem.indexOf('COUPON') != -1">劵</span>
								<span v-if="promotionItem.indexOf('FULL_DISCOUNT') != -1">满减</span>
								<span v-if="promotionItem.indexOf('SECKILL') != -1">秒杀</span>
							</div>
						</div>
						<div style="overflow: hidden" @click="navigateToDetailPage(item)" class="count-config">
							<span style="float: left; font-size: 22rpx">已售 {{ item.buyCount || '0' }}</span>
							<span style="float: right; font-size: 22rpx">{{ item.commentNum || '0' }}条评论</span>
						</div>
						<div style="overflow: hidden" @click="navigateToStoreDetailPage(item)" class="count-config">
							<div class="text-hidden" v-if="storeName">
								<u-tag style="margin-right: 10rpx" size="mini" mode="dark" v-if="item.selfOperated"
									text="自营" type="error" />
								<span class="line1-store-name">{{ item.storeName }}</span>
								<span class="to-store">进店<u-icon size="24" name="arrow-right" color="#666"></u-icon>
								</span>
							</div>
							<span>
								<u-icon name="arrow-right" color="#c5c5c5"></u-icon>
							</span>
						</div>
					</div>
				</div>

			</div>
		</div>

	</view>
</template>

<script>
	import commonTpl from '@/components/m-goods-list/common'
	export default {
		data() {
			return {
				lightColor: this.$mainColor
			}
		},
		mixins: [commonTpl],
		
		props: {
			// 遍历的数据
			res: {
				type: Array,
				default: () => {
					return []
				}
			},
			// 一行两列还是一行一列显示
			type: {
				type: String,
				default: 'twoColumns',
				validator() {
					return ['twoColumns', 'oneColumns']
				}
			},
			storeName: {
				type: Boolean,
				default: true
			},
			keyword: {
				type: null,
				default: ''
			}

		},
		watch: {
			keyword(val) {
				if (val) {
					this.lightSearchStr(val)
				}
			}
		},
		methods: {

			// 高亮显示搜索内容	
			lightSearchStr(keyword, str) {
				if (!keyword) {
					return str
				} else {
					let unicodes = '';
					for (let i of Array.from(keyword)) {
						unicodes += this.unicode(i) + "|"
					}
					const rule = '(' + unicodes + ')'
					const reg = new RegExp(rule, 'gi');
					return str ? str.replace(reg, matchValue =>
						`<span style="color:${this.lightColor}">${matchValue}</span>`
					) : ''
				}
			},
			//  转换为unicode
			unicode(str) {
				var value = '';
				for (var i = 0; i < str.length; i++) {
					value += '\\u' + this.left_zero_4(parseInt(str.charCodeAt(i)).toString(16));
				}
				return value;
			},
			left_zero_4(str) {
				if (str != null && str != '' && str != 'undefined') {
					if (str.length == 2) {
						return '00' + str;
					}
				}
				return str;
			},
			// 数据去重一下 只显示一次 减免 劵 什么的
			getPromotion(item) {
				if (item ? item.promotionMap : item.promotionMap) {
					const fieldList = item ? item.promotionMap : item.promotionMap
					let array = [];
					Object.keys(fieldList).forEach((child) => {
						if (!array.includes(child.split("-")[0])) {
							array.push(child.split("-")[0]);
						}
					});
					return array;
				}
			},
			// 跳转到商品详情
			navigateToDetailPage(item) {
				uni.navigateTo({
					url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`,
				});
			},
			// 跳转地址
			navigateToStoreDetailPage(item) {
				uni.navigateTo({
					url: `/pages/product/shopPage?id=${item.storeId}`,
				});
			},
		}
	}
</script>

<style lang='scss' scoped>
		.goods-one-row{
			padding-bottom: 250rpx;
		}
		/* 商品列表 */
		.goods-list {
			display: flex;
			flex-wrap: wrap;
			margin: 10rpx 20rpx 284rpx;
			width: 100%;
	
			>.goods-item {
				background-color: #ffffff;
				display: flex;
				border-radius: 16rpx;
				flex-direction: column;
				width: calc(50% - 30rpx);
				margin-bottom: 20rpx;
				padding-bottom: 20rpx;
	
				&:nth-child(2n + 1) {
					margin-right: 20rpx;
				}
	
	
				.image-wrapper {
					width: 100%;
					height: 330rpx;
					border-radius: 16rpx 16rpx 0 0;
					overflow: hidden;
					padding: 0;
				}
			}
	
			.count-config,
			.store-seller-name {
				font-size: $font-sm;
			}
	
			.text-hidden {
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}
	
	
		.goods-row {
			background: #fff;
			padding: 16rpx;
	
			>.goods-col {
				display: flex;
	
				>.goods-img {
					overflow: hidden;
					flex: 4;
				}
	
				>.goods-detail {
					flex: 7;
				}
			}
		}
	
		.goods-detail {
			margin: 0 20rpx;
	
			>.title {
				font-size: $font-base;
				color: $font-color-dark;
				line-height: 1.5;
				height: 86rpx;
				padding: 10rpx 0 0;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;
			}
	
			.promotion {
				margin-top: 4rpx;
				display: flex;
	
				div {
					span {
						font-size: 24rpx;
						color: $light-color;
						margin-right: 10rpx;
						padding: 0 4rpx;
						border-radius: 2rpx;
					}
				}
			}
	
			.store-seller-name {
				color: #666;
				overflow: hidden;
				display: flex;
				justify-content: space-between;
			}
	
			.count-config {
				padding: 5rpx 0;
				color: #666;
				display: flex;
				font-size: 24rpx;
				justify-content: space-between;
			}
	
			>.price-box {
				margin-top: 10rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding-right: 10rpx;
				font-size: 24rpx;
				color: $font-color-light;
	
				>.price {
					font-size: 26rpx;
					line-height: 1;
					color: $main-color;
					font-weight: bold;
	
					/deep/ span:nth-of-type(1) {
						font-size: 38rpx;
					}
				}
			}
	
		}
</style>


================================================
FILE: components/m-goods-list/promotion.vue
================================================
<template>
	<div>
		<div v-for="(item, index) in res" :key="index" class="goods-row" @click="navigateToDetailPage(item)">
			<div class="flex goods-col">
				<div class="goods-img">
					<u-image width="230rpx" mode="aspectFit" border-radius='16' height="230rpx" :src="item.goodsImage || item.thumbnail">
						<u-loading slot="loading"></u-loading>
					</u-image>
				</div>
				<div class="goods-detail">
					<div class="title clamp3">{{ item.goodsName }}</div>
					<div class='flex flex-a-c flex-j-sb'>
						<view class="price-box">
							<!-- 秒杀 / 拼团 -->
							<div class="price" v-if="!type && item.price!=undefined">
								¥<span>{{ $options.filters.goodsFormatPrice(item.price )[0] }} </span>.{{
										$options.filters.goodsFormatPrice(item.price )[1]
									}}
							</div>
							<!-- 砍价 -->
							<div class="price" v-if="type && item.purchasePrice!=undefined">
								最低:
								¥<span>{{ $options.filters.goodsFormatPrice(item.purchasePrice )[0] }} </span>.{{
										$options.filters.goodsFormatPrice(item.purchasePrice )[1]
									}}
							</div>
							<!-- 兜底策略如果金额是0 -->
							<div class="price" v-if="!item.price && !type">
								¥<span>0 </span>.00
							</div>
						</view>
						<div>
							<image class='buy' :src="buy"></image>
						</div>
					</div>
					<div class='count-config' v-if="!type">
						<span>即将恢复{{ item.originalPrice}}元</span>
					</div>
				</div>
			</div>

		</div>
	</div>
</template>

<script>
	import commonTpl from '@/components/m-goods-list/common'
	export default {
		data() {
			return {
				lightColor: this.$mainColor,
				buy: require('@/static/buy.png')
			}
		},
		mixins: [commonTpl],
		props: {
			// 遍历的数据
			res: {
				type: Array,
				default: () => {
					return []
				}
			},
			type:{
				type:null,
				default:""
			}
		},
		methods: {
			// 跳转到商品详情
			navigateToDetailPage(item) {
				if(this.type == 'kanJia'){
					 uni.navigateTo({
						url: `/pages/promotion/bargain/detail?id=${item.id}`,
					});
					return
				}
				uni.navigateTo({
					url: `/pages/product/goods?id=${item.skuId}&goodsId=${item.goodsId}`,
				});
			},
		}
	}
</script>

<style lang='scss' scoped>
	.buy {
		width: 152rpx;
		height: 108rpx;
	}
	.flex-j-sb {
		width: 100%;
	}
	.goods-row {
		background: #fff;
		padding: 16rpx;
		>.goods-col {
			display: flex;
			>.goods-img {
				overflow: hidden;
				flex: 4;
			}
			>.goods-detail {
				flex: 7;
			}
		}
	}
	.goods-detail {
		margin: 0 20rpx;
		>.title {
			font-size: $font-base;
			color: $font-color-dark;
			line-height: 1.5;
			height: 86rpx;
			padding: 10rpx 0 0;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 2;
			overflow: hidden;
		}

		.promotion {
			margin-top: 4rpx;
			display: flex;

			div {
				span {
					font-size: 24rpx;
					color: $light-color;
					margin-right: 10rpx;
					padding: 0 4rpx;
					border-radius: 2rpx;
				}
			}
		}

		.count-config {
			padding: 5rpx 0;
			color: #666;
			display: flex;
			font-size: 24rpx;
			letter-spacing:2rpx;
			padding-left: 10rpx;
		}



	}

	.price-box {
		margin-top: 10rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-right: 10rpx;
		font-size: 24rpx;
		color: $font-color-light;

		>.price {
			font-size: 26rpx;
			line-height: 1;
			color: $main-color;
			font-weight: bold;

			/deep/ span:nth-of-type(1) {
				font-size: 48rpx;
			}
		}
	}
</style>


================================================
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
================================================
<template>
  <div>
    <div class="goods-recommend">{{title ? `--${title}-- `:''}}</div>
		 <goodsTemplate :res='goodsList' />
  </div>
</template>
<script>
	import goodsTemplate from '@/components/m-goods-list/list'
import { getGoodsList } from "@/api/goods.js";
export default {
  data() {
    return {
      goodsList: [],
      params: {
        pageNumber: 1,
      },
    };
  },
  props: {
    title: {
      type: String,
      default: "",
    },
    pageSize: {
      type: null,
      default: 12,
    },
    categoryId: {
      type: null,
      default: "",
    },
    storeId: {
      type: null,
      default: "",
    },
  },
	components:{goodsTemplate},
  mounted() {
    this.initGoods();
  },
  methods: {
    /**
     * 初始化商品
     */
    async initGoods() {
      let submit = JSON.parse(
        JSON.stringify(
          Object.assign(this.params, {
            pageSize: this.pageSize,
            categoryId: this.categoryId,
            storeId: this.storeId,
          })
        )
      );

      Object.keys(submit).map((key) => {
        if (!submit[key] || submit[key].length == 0) {
          delete submit[key];
        }
      });
      let goodsList = await getGoodsList(submit);
      this.goodsList.push(...goodsList.data.result.records);
    },
    handleClick(item) {
      uni.navigateTo({
        url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`,
      });
    },
  },
};
</script>

<style scoped lang="scss">
/**商品代码 */
$w_94: 94%;
.goods-recommend {
  background: #f7f7f7;
  height: 100rpx;
  line-height: 100rpx;
  text-align: center;
  font-size: 30rpx;
  font-weight: bold;
}
.goods-list {
  display: flex;
  flex-wrap: wrap;
  background: #f7f7f7;
}
.goods-item {
  width: 50%;
  margin-bottom: 10px;
  border-radius: 0.4em;
  overflow: hidden;
}
.goods-img {
  position: relative;
  margin: 0 auto;
  width: $w_94;
  height: 350rpx;
  border-top-left-radius: 20rpx;
  border-top-right-radius: 20rpx;
  overflow: hidden;
  > img {
    width: 100%;
    height: 100%;
  }
}
.goods-desc {
  border-bottom-left-radius: 20rpx;
  border-bottom-right-radius: 20rpx;
  width: $w_94;
  background: #fff;
  padding: 8rpx 0 8rpx 8rpx;
  margin: 0 auto;
  > .goods-title {
    font-size: 12px;
    height: 70rpx;
    display: -webkit-box;
    font-weight: 500;
    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;
  }

  > .goods-bottom {
    display: flex;
    font-weight: bold;

    > .goods-price {
      line-height: 2;
      color: $main-color;
    }
  }
}
</style>

================================================
FILE: components/m-placard/index.vue
================================================
<template>
	<div class="index">
		<view v-model="show" class="slot-content">
			<image @click="downLoad()" class="img" :src="imgUrl" />
			<div class="canvas-hide">
				<!-- #ifdef MP-WEIXIN -->
				<canvas id="canvas" type="2d" style="width: 560px; height: 800px" />
				<!-- #endif -->
				<!-- #ifndef MP-WEIXIN -->
				<canvas canvas-id="canvas" id="canvas" style="width: 560px; height: 800px" />
				<!-- #endif -->
			</div>
		</view>
	</div>
</template>
<script>
// 引入绘制插件
import DrawPoster from "@/js_sdk/u-draw-poster";
// 生成二维码
import uQRCode from '@/components/Sansnn-uQRCode/uqrcode.js';

export default {
  data: () => ({
    imgUrl: "", //绘制出来的图片路径
    show: false, //是否展示模态框
    dp: {}, //绘制的dp对象,用于存储绘制等一些方法。
    logo: require("@/pages/passport/static/logo-title.png"), 	// 本地logo地址
	myFace: require("@/pages/passport/static/missing-face.png"),	// 本地默认头像
	sharingLink: '',	// 二维码链接
  }),
  props: {
    /**
     * 父级传参的数据
     */
    res: {
      type: null,
      default: "",
    },
  },
  onUnload() {},
  onReady() {},
  methods: {
    /** 解决微信小程序中图片模糊问题 */
    // #ifdef MP-WEIXIN
    st2: (size) => size * 2,
    // #endif

    // #ifndef MP-WEIXIN
    st2: (size) => size,
    // #endif

    /** 保存图片 */
	downLoad() {
		uni.saveImageToPhotosAlbum({
			filePath: this.imgUrl,
			success: function () {
				uni.showToast({title: "保存成功!",icon: "none",});
			},
			fail: function () {
				uni.showToast({title: "保存失败,请稍后重试!",icon: "none",});
			},
		});
	},
    /** 创建canvas */
    async init() {
		this.show = true;
		this.dp = await DrawPoster.build({
			selector: "canvas",
			componentThis: this,
			loading: true,
			debugging: true,
		});
		let dp = this.dp;
		// #ifdef MP-WEIXIN
		// 用于微信小程序中画布错乱问题
		dp.canvas.width = this.st2(560);
		dp.canvas.height = this.st2(800);
		// #endif
		this.showQRCode(dp);
    },
	/** 生成二维码 */
	async showQRCode(dp){
		await uQRCode.make({
			canvasId: 'canvas', // canvas画布
			componentInstance: this, 
			text: this.res.bottom.code, // 二维码内容
			size: 130, // 二维码大小 
			margin: 5, // 二维码内边距
			backgroundColor: '#ffffff', // ! 二维码背景颜色
			foregroundColor: '#000000', // !二维码色块颜色
			fileType: 'jpg',
			errorCorrectLevel: 0, // <== 关键 容错率,M:0,L:1,H:2,Q:3,
			// errorCorrectLevel: uQRCode.errorCorrectLevel.M, // <== 关键 容错率,M:0,L:1,H:2,Q:3,
			success: res => {
				this.sharingLink = res; // res => 图片路径
				// 对画布进行绘制
				this.draw(dp);
			},
			fail: res => {
				// console.log('失败',res)
			}
		})
	},
    async draw(dp) {
		const { face, nickName, desc } = this.res.memberInfo;
		const { width, height, background, title } = this.res.container;
		const { code, img, price } = this.res.bottom;

		/** 绘制背景 */
		await dp.draw((ctx) => {
			ctx.fillStyle = background;
			ctx.fillRoundRect( this.st2(0), this.st2(0), this.st2(width), this.st2(height), this.st2(12));
			ctx.clip();
		});
		/** 绘制圆角矩形 */
		await dp.draw(async (ctx)=>{
			// 设置矩形色彩
			ctx.fillStyle = "#ffffff";
			// 设置图形轮廓的颜色。默认情况下,线条和填充颜色都是黑色(CSS 颜色值 #000000)
			ctx.strokeStyle = "#ffffff";
			// 这个属性设置当前绘线的粗细。属性值必须为正数。描述线段宽度的数字。 0、 负数、 Infinity 和 NaN 会被忽略。默认值是1.0。
			ctx.lineWidth = this.st2(1);
			// 进行绘制
			ctx.fillRoundRect(30, 150, 500, 620, 0);
			// ctx.strokeRoundRect(30, 150, 500, 620, 0);
			// ctx.strokeRect(30, 150, 500, 620, 0);
		})
		/** 绘制图片 */
		dp.draw(async (ctx) => {
			await Promise.all([
				// 绘制头像face
				ctx.drawImage(face?face:this.myFace, this.st2(30), this.st2(30), this.st2(90), this.st2(90)),
				// 绘制Logo
				// ctx.drawImage( this.logo, this.st2(175), this.st2(0), this.st2(256), this.st2(144)),
				// 中间图片
				ctx.drawImage(img, this.st2(60), this.st2(170), this.st2(440), this.st2(440)),
				// 二维码
				ctx.drawImage(this.sharingLink, this.st2(375), this.st2(625), this.st2(130), this.st2(130))
			]);
		});
		/** 绘制顶部文字(昵称 简述) */
		await dp.draw((ctx) => {
			ctx.fillStyle = "#666";
			ctx.font = `${this.st2(24)}px PingFang SC`;
			ctx.fillText(nickName, this.st2(150), this.st2(65));
			ctx.fillStyle = "#666";
			ctx.font = `${this.st2(24)}px PingFang SC`;
			ctx.fillText(desc, this.st2(150), this.st2(105));
		});
		/** 绘制中间文字(商品名称 价格) */
		await dp.draw((ctx) => {
			ctx.fillStyle = "#333";
			ctx.font = `bold ${this.st2(24)}px PingFang SC`;
			ctx.textAlign = "left";
			ctx.fillWarpText({
				text: title,
				lineHeight: this.st2(32),
				maxWidth: this.st2(280),
				x: this.st2(60),
				y: this.st2(710),
				layer: 2,
			});
			ctx.fillStyle = "#ff3c2a";
			ctx.font = `${this.st2(38)}px PingFang SC`;
			ctx.textAlign = "left";
			ctx.fillText(price, this.st2(60), this.st2(665));
		});
		/** 绘制底部文字 */
		// await dp.draw((ctx) => {
		// 	ctx.fillStyle = "#666";
		// 	ctx.font = `${this.st2(24)}px PingFang SC`;
		// 	ctx.fillText("长按图片,识别二维码", this.st2(200), this.st2(866));
		// 	ctx.fillStyle = "#666";
		// 	ctx.font = `${this.st2(24)}px PingFang SC`;
		// 	ctx.fillText("查看商品详情", this.st2(200), this.st2(900));
		// });
		
		// 绘制生成本地地址
		this.imgUrl = await dp.createImagePath();
    },
  },

  async mounted() {
    this.init();
  },
};
</script>

<style lang="scss" scoped>
page,
.index {
  height: 100%;
}
.canvas-hide {
  /* 1 */
  position: fixed;
  right: 100vw;
  bottom: 100vh;
  /* 2 */
  z-index: -9999;
  /* 3 */
  opacity: 0;
}
.index {
  position: relative;
  text-align: center;
  background: rgba($color: grey, $alpha: 0.2);
}

image {
  display: block;
}
.img {
  width: 560rpx;
  height: 800rpx;
}

.qrcode-content {
	width: 100rpx;
	height: 100rpx;
	display: flex;
	align-items: center;
	justify-content: center;
}
</style>


================================================
FILE: components/m-search-revision/m-search-revision.vue
================================================
<template>
  <view class="serach">
    <view class="left-box" @tap="onClickLeft">
      <u-icon name="arrow-left" size="40" color="#666"></u-icon>
    </view>
    <view class="content" :style="{ 'border-radius': radius + 'px' }">
      <!-- HM修改 增加进入输入状态的点击范围 -->
      <view class="content-box" :class="{ center: mode === 2 }">
        <u-icon name="search" size="32" style="padding:0 15rpx;"></u-icon>
        <!-- HM修改 增加placeholder input confirm-type confirm-->
        <input style="width:100%; " :placeholder="placeholder" placeholder-class="placeholder-color"
          @input="inputChange" confirm-type="search" @confirm="triggerConfirm" class="input"
          :class="{ center: !active && mode === 2 }" :focus="isFocus" v-model="inputVal" @focus="focus" @blur="blur" />
        <u-icon name="close" v-if="isDelShow" style="padding:0 30rpx;" @click="clear"></u-icon>
      </view>

    </view>
    <view class="button active" >
      <view v-if="isShowSeachGoods !=true" class="button-item">
        <div @click="out()">取消</div>
      </view>

      <view v-else class="button-item">
        <u-icon name="grid-fill" size="50" @click="handelListClass()" v-if="!switchLayout"></u-icon>
        <u-icon v-else @click="handelListClass()" name="list-dot" size="50"></u-icon>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    mode: {
      value: Number,
      default: 1,
    },
    //HM修改 定义默认搜索关键词(水印文字)
    placeholder: {
      value: String,
      default: "请输入搜索内容",
    },
    value: {
      type: String,
      default: "",
    },
    // 默认半径为60
    radius: {
      value: String,
      default: 60,
    },
    // 是否获取焦点
    isFocusVal: {
      value: Boolean,
      default: true,
    },
  },
  data() {
    return {
      isShowSeachGoods: false, //是否显示查询的商品
      active: false, //是否选中
      inputVal: "", //Input中内容
      isDelShow: false, //是否显示右侧删除icon
      isFocus: false, //是否获取焦点
      switchLayout: true, //切换当前商品的布局,默认为两列
    };
  },
  mounted() {
    this.isFocus = this.isFocusVal;
  },
  methods: {
    //
    out() {
      uni.reLaunch({
        url: "/pages/tabbar/home/index",
      });
    },
    // 切换排列顺序
    handelListClass() {
      this.switchLayout = !this.switchLayout;
      this.$emit("SwitchType");
    },
    //HM修改 触发组件confirm事件
    triggerConfirm() {
      this.$emit("confirm", false);
      uni.hideKeyboard();
    },
    //HM修改 触发组件input事件
    inputChange(event) {
      var keyword = event.detail.value;
      this.$emit("input", keyword);
      if (this.inputVal) {
        this.isDelShow = true;
      }
    },
    focus() {
      this.active = true;
      //HM修改 增加获取焦点判断
      if (this.inputVal) {
        this.isDelShow = true;
      }
    },
    blur() {
      this.isFocus = false;
      if (!this.inputVal) {
        this.active = false;
      }
    },
    clear() {
      //HM修改 收起键盘
      uni.hideKeyboard();
      t
Download .txt
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
Download .txt
SYMBOL INDEX (722 symbols across 115 files)

FILE: api/address.js
  function getAddressList (line 13) | function getAddressList(pageNumber, pageSize) {
  function getLogistics (line 26) | function getLogistics() {
  function getAddressCode (line 38) | function getAddressCode(cityCode, townName) {
  function addAddress (line 52) | function addAddress(data) {
  function editAddress (line 68) | function editAddress(params) {
  function deleteAddress (line 82) | function deleteAddress(id) {
  function getAddressDetail (line 96) | function getAddressDetail(id) {
  function getAddressDefault (line 108) | function getAddressDefault() {

FILE: api/after-sale.js
  function getAfterSale (line 12) | function getAfterSale(params) {
  function applyCancelOrder (line 28) | function applyCancelOrder(params) {
  function getStoreAfterSaleAddress (line 41) | function getStoreAfterSaleAddress(sn) {
  function cancelAfterSale (line 51) | function cancelAfterSale(afterSaleSn) {
  function getAfterSaleList (line 65) | function getAfterSaleList(params) {
  function getServiceDetail (line 78) | function getServiceDetail(sn) {
  function addComplain (line 90) | function addComplain(params) {
  function clearComplain (line 105) | function clearComplain(id, params) {
  function getAfterSaleLog (line 117) | function getAfterSaleLog(sn) {
  function getComplain (line 128) | function getComplain(params) {
  function getAfterSaleReason (line 140) | function getAfterSaleReason(serviceType) {
  function getClearReason (line 151) | function getClearReason() {
  function getComplainReason (line 162) | function getComplainReason() {
  function getComplainDetail (line 172) | function getComplainDetail(id) {
  function getAfterSaleInfo (line 183) | function getAfterSaleInfo(sn) {
  function applyReturn (line 195) | function applyReturn(orderItemSn, params) {
  function fillShipInfo (line 211) | function fillShipInfo(afterSaleSn, params) {
  function communication (line 223) | function communication(params) {

FILE: api/article.js
  function getArticleCategory (line 12) | function getArticleCategory(category_type) {
  function getArticleDetail (line 24) | function getArticleDetail(type) {
  function getArticleDetailByType (line 35) | function getArticleDetailByType(type) {

FILE: api/common.js
  function getRegionsById (line 11) | function getRegionsById(id = 0) {
  function getIMDetail (line 20) | function getIMDetail() {

FILE: api/connect.js
  function webConnect (line 16) | function webConnect(code) {
  function openIdLogin (line 26) | function openIdLogin(params, clientType) {
  function loginCallback (line 41) | function loginCallback(state) {
  function mpAutoLogin (line 55) | function mpAutoLogin(params) {

FILE: api/entry.js
  function getCompanyDetail (line 8) | function getCompanyDetail(params) {
  function applyFirst (line 17) | function applyFirst(params) {
  function applySecond (line 26) | function applySecond(params) {
  function applyThird (line 35) | function applyThird(params) {

FILE: api/goods.js
  function getGoodsMessage (line 10) | function getGoodsMessage(goodsId) {
  function getGoodsRelated (line 20) | function getGoodsRelated(params) {
  function getGoods (line 33) | function getGoods(skuId, goodsId) {
  function getGoodsDistribution (line 44) | function getGoodsDistribution(distributionId) {
  function getGoodsList (line 57) | function getGoodsList(params) {
  function getGoodsListUplog (line 70) | function getGoodsListUplog(params) {
  function getTagGoods (line 86) | function getTagGoods(storeId, mark = "hot", num = 5) {
  function getPlateformTagGoods (line 101) | function getPlateformTagGoods(tag_id) {
  function getCategoryList (line 113) | function getCategoryList(id) {
  function distribution (line 127) | function distribution() {
  function applyDistribution (line 137) | function applyDistribution(params) {
  function cash (line 148) | function cash(params) {
  function cashLog (line 159) | function cashLog(params) {
  function distributionOrderList (line 171) | function distributionOrderList(params) {
  function distributionGoods (line 182) | function distributionGoods(params) {
  function checkedDistributionGoods (line 192) | function checkedDistributionGoods(params) {
  function getMpCode (line 203) | function getMpCode(params){
  function getMpScene (line 214) | function getMpScene(id){

FILE: api/home.js
  function toSpecial (line 3) | function toSpecial(data) {
  function getSpecial (line 13) | function getSpecial(id) {
  function getAdvertisement (line 23) | function getAdvertisement() {
  function getCategory (line 36) | function getCategory(parent_id = 0) {
  function getHotKeywords (line 48) | function getHotKeywords(count) {
  function getFloorData (line 62) | function getFloorData(params) {
  function getFloorStoreData (line 73) | function getFloorStoreData(params) {
  function getCategoryIndexData (line 84) | function getCategoryIndexData(parentId = 0) {

FILE: api/im.js
  function getTalk (line 10) | function getTalk(talkId) {
  function getTalkByUser (line 22) | function getTalkByUser(userId) {
  function getTalkList (line 34) | function getTalkList(params) {
  function getTalkMessage (line 47) | function getTalkMessage(params) {
  function cleanUnreadMessage (line 60) | function cleanUnreadMessage(params) {
  function jumpObtain (line 68) | function jumpObtain(skuId, goodsId) {
  function clearmeaager (line 76) | function clearmeaager() {

FILE: api/login.js
  function resetByMobile (line 9) | function resetByMobile(params) {
  function bindMobile (line 21) | function bindMobile(params) {
  function getAutoCoup (line 30) | function getAutoCoup(){
  function userLogin (line 43) | function userLogin(params, clientType){
  function sendMobile (line 60) | function sendMobile(mobile,type='LOGIN') {
  function smsLogin (line 72) | function smsLogin(params, clientType) {
  function modifyPass (line 90) | function modifyPass(params) {
  function resetPassword (line 103) | function resetPassword(params) {
  function refreshTokenFn (line 114) | function refreshTokenFn(refresh_token) {
  function logout (line 122) | function logout () {
  function scannerCodeLogin (line 130) | function scannerCodeLogin(params){
  function scannerCodeLoginConfirm (line 138) | function scannerCodeLoginConfirm(params){
  function logoffConfirm (line 148) | function logoffConfirm() {

FILE: api/members.js
  function feedBack (line 7) | function feedBack(params) {
  function withdrawalApply (line 17) | function withdrawalApply(params) {
  function payCallback (line 31) | function payCallback(params) {
  function recharge (line 40) | function recharge(params) {
  function getUserRecharge (line 52) | function getUserRecharge(params) {
  function getWalletLog (line 65) | function getWalletLog(params) {
  function getCoupons (line 78) | function getCoupons(params) {
  function receiveCoupons (line 91) | function receiveCoupons(couponId) {
  function getPointsData (line 104) | function getPointsData(params) {
  function getComments (line 118) | function getComments(params) {
  function getFootprintNum (line 132) | function getFootprintNum(params) {
  function commentsMemberOrder (line 145) | function commentsMemberOrder(params) {
  function AppendCommentsOrder (line 159) | function AppendCommentsOrder(params) {
  function consultating (line 175) | function consultating(goods_id, ask_content, anonymous) {
  function getGoodsCollection (line 194) | function getGoodsCollection(params, type) {
  function getStoreCollection (line 210) | function getStoreCollection(params, type) {
  function collectionGoods (line 225) | function collectionGoods(type, id) {
  function deleteGoodsCollection (line 238) | function deleteGoodsCollection(ids) {
  function deleteStoreCollection (line 253) | function deleteStoreCollection(store_id) {
  function getGoodsIsCollect (line 265) | function getGoodsIsCollect(type, good_id) {
  function getStoreIsCollect (line 278) | function getStoreIsCollect(type, store_id) {
  function collectionStore (line 292) | function collectionStore(store_id) {
  function getUserInfo (line 304) | function getUserInfo() {
  function getUserWallet (line 316) | function getUserWallet() {
  function saveUserInfo (line 329) | function saveUserInfo(params) {
  function addReceipt (line 343) | function addReceipt(params) {
  function getGoodsComments (line 357) | function getGoodsComments(goodsId, params) {
  function getGoodsCommentsCount (line 370) | function getGoodsCommentsCount(goodsId) {
  function getNoReadMessageNum (line 381) | function getNoReadMessageNum() {
  function myTrackList (line 394) | function myTrackList(params) {
  function deleteHistoryListId (line 407) | function deleteHistoryListId(ids) {
  function getMemberCoupons (line 419) | function getMemberCoupons(data) {
  function getCouponsNum (line 432) | function getCouponsNum() {
  function getMemberPointSum (line 444) | function getMemberPointSum() {
  function withdrawalSettingVO (line 455) | function withdrawalSettingVO() {

FILE: api/message.js
  function getWeChatMpMessage (line 15) | function getWeChatMpMessage() {
  function getMessages (line 27) | function getMessages(params) {
  function messageMarkAsRead (line 43) | function messageMarkAsRead(ids) {
  function editMessages (line 52) | function editMessages(message_id,params){
  function messages (line 61) | function messages(params) {
  function getLogisticsMessages (line 75) | function getLogisticsMessages(params) {
  function getAppVersion (line 92) | function getAppVersion(appType) {
  function getAppVersionList (line 105) | function getAppVersionList(type,data) {

FILE: api/order.js
  function getReceipt (line 14) | function getReceipt(params) {
  function getReceiptDetail (line 27) | function getReceiptDetail(id) {
  function selectedShipMethod (line 39) | function selectedShipMethod(params) {
  function getOrderList (line 52) | function getOrderList(params) {
  function getOrderDetail (line 65) | function getOrderDetail(orderSn) {
  function cancelOrder (line 78) | function cancelOrder(orderSn, reason) {
  function confirmReceipt (line 92) | function confirmReceipt(orderSn) {
  function getPinTuanShare (line 107) | function getPinTuanShare(parentOrderSn,skuId) {

FILE: api/passport.js
  function login (line 15) | function login(username, password, captcha) {
  function validAccount (line 37) | function validAccount(captcha, account) {
  function sendFindPasswordSms (line 54) | function sendFindPasswordSms(uuid,captcha) {
  function validFindPasswordSms (line 71) | function validFindPasswordSms(uuid, sms_code) {
  function changePassword (line 87) | function changePassword(password, uuid) {
  function setBiolofy (line 105) | function setBiolofy(params) {

FILE: api/point.js
  function sign (line 8) | function sign() {
  function signTime (line 22) | function signTime(time) {

FILE: api/promotions.js
  function getLiveList (line 12) | function getLiveList(params) {
  function getPromotionGroupMember (line 23) | function getPromotionGroupMember(pintuanId) {
  function getAssembleList (line 31) | function getAssembleList(params) {
  function getPointsCategory (line 43) | function getPointsCategory() {
  function getPointsGoods (line 54) | function getPointsGoods(params) {
  function getPointsGoodsDetail (line 65) | function getPointsGoodsDetail(id) {
  function getSeckillTimeLine (line 77) | function getSeckillTimeLine() {
  function getSeckillTimeGoods (line 88) | function getSeckillTimeGoods(timeline) {
  function getAllCoupons (line 99) | function getAllCoupons(params) {
  function getBargainList (line 111) | function getBargainList(params) {
  function getBargainDetail (line 123) | function getBargainDetail(id) {
  function getBargainActivity (line 134) | function getBargainActivity(params) {
  function openBargain (line 146) | function openBargain(params) {
  function getBargainLog (line 158) | function getBargainLog(params) {
  function helpBargain (line 170) | function helpBargain(kanJiaActivityId) {
  function getMineBargainLog (line 180) | function getMineBargainLog(params) {

FILE: api/safe.js
  function sendBindMobileSms (line 14) | function sendBindMobileSms(mobile, captcha) {
  function bindMobile (line 32) | function bindMobile(mobile, sms_code) {
  function sendMobileSms (line 46) | function sendMobileSms(captcha) {
  function validChangeMobileSms (line 63) | function validChangeMobileSms(sms_code) {
  function changeMobile (line 77) | function changeMobile(mobile, sms_code) {
  function changePassword (line 93) | function changePassword(captcha, password) {
  function contractStep (line 112) | function contractStep() {
  function authentication (line 125) | function authentication(params) {

FILE: api/store.js
  function getStoreList (line 14) | function getStoreList(params) {
  function getStoreBaseInfo (line 26) | function getStoreBaseInfo(storeId) {
  function getStoreCategory (line 38) | function getStoreCategory(id) {
  function getLicencePhoto (line 50) | function getLicencePhoto(id) {
  function getStoreAddress (line 62) | function getStoreAddress(storeId,params) {

FILE: api/trade.js
  function getCarts (line 11) | function getCarts() {
  function getCartNum (line 24) | function getCartNum() {
  function getCartCouponNum (line 37) | function getCartCouponNum(way) {
  function addToCart (line 52) | function addToCart(data) {
  function updateSkuNum (line 69) | function updateSkuNum(skuId, num = 1) {
  function updateSkuChecked (line 84) | function updateSkuChecked(skuId, checked) {
  function deleteSkuItem (line 98) | function deleteSkuItem(skuIds) {
  function checkAll (line 111) | function checkAll(checked) {
  function checkStore (line 125) | function checkStore(storeId, checked) {
  function getCheckoutParams (line 138) | function getCheckoutParams(way) {
  function setAddressId (line 150) | function setAddressId(addressId,way) {
  function setStoreAddressId (line 162) | function setStoreAddressId(storeAddressId,way) {
  function createTrade (line 175) | function createTrade(params) {
  function getCashierData (line 190) | function getCashierData(params) {
  function initiatePay (line 207) | function initiatePay(paymentMethod, paymentClient, params) {
  function getExpress (line 222) | function getExpress(orderSn) {
  function getMemberCanUse (line 235) | function getMemberCanUse(data) {
  function getMemberCouponList (line 248) | function getMemberCouponList(data) {
  function useCoupon (line 260) | function useCoupon(params) {
  function changeActivity (line 274) | function changeActivity(params) {
  function reBuy (line 289) | function reBuy(sn) {
  function shippingMethodList (line 301) | function shippingMethodList(params) {
  function setShipMethod (line 314) | function setShipMethod(params) {
  function getPackage (line 324) | function getPackage(orderSn) {

FILE: components/Sansnn-uQRCode/uqrcode.js
  function QR8bitByte (line 29) | function QR8bitByte(data) {
  function QRCode (line 52) | function QRCode(typeNumber, errorCorrectLevel) {
  function QRPolynomial (line 861) | function QRPolynomial(num, shift) {
  function QRRSBlock (line 929) | function QRRSBlock(totalCount, dataCount) {
  function QRBitBuffer (line 1228) | function QRBitBuffer() {
  function utf16To8 (line 1268) | function utf16To8(text) {
  function createCanvas (line 1326) | function createCanvas() {

FILE: hybrid/html/js/webView.js
  function t (line 1) | function t(e,t){return n.call(e,t)}

FILE: js_sdk/amap-wx.130.js
  function AMapWX (line 1) | function AMapWX(a){this.key=a.key;this.requestConfig={key:a.key,s:"rsx",...
  function b (line 13) | function b(d){var e=c.requestConfig;wx.request({url:"https://restapi.ama...
  function b (line 16) | function b(g){var h="base";a.type&&"forecast"==a.type&&(h="all");wx.requ...
  function c (line 18) | function c(g){wx.request({url:"https://restapi.amap.com/v3/geocode/regeo...
  function b (line 20) | function b(e){e={key:c.key,location:e,s:d.s,platform:d.platform,appname:...
  function b (line 22) | function b(e){c.push("location="+e);a.zoom&&c.push("zoom="+a.zoom);a.siz...

FILE: js_sdk/h5-copy/h5-copy.js
  function h5Copy (line 1) | function h5Copy(content) {
  function getClipboardData (line 25) | function getClipboardData() {

FILE: js_sdk/lili-pay/wx-pay.js
  class LiLiWXPay (line 12) | class LiLiWXPay {
    method constructor (line 13) | constructor(...payList) {
  function sendMessage (line 67) | function sendMessage(price) {

FILE: js_sdk/t-jwt/jwt.js
  function b64DecodeUnicode (line 34) | function b64DecodeUnicode(str) {
  function base64_url_decode (line 43) | function base64_url_decode(str) {
  function weappJwtDecode (line 64) | function weappJwtDecode(token, options) {

FILE: js_sdk/u-draw-poster/draw-poster.d.ts
  type DrawPosterInstanceType (line 2) | type DrawPosterInstanceType = InstanceType<typeof DrawPoster> & drawPost...
  class DrawPoster (line 3) | class DrawPoster {

FILE: js_sdk/u-draw-poster/draw-poster.js
  class DrawPoster (line 7) | class DrawPoster {
    method constructor (line 9) | constructor(canvas, ctx, canvasId, loading, debugging, loadingText, cr...

FILE: js_sdk/u-draw-poster/extends/create-from-list/index.d.ts
  type CreateLayerOpts (line 2) | interface CreateLayerOpts {
  type DrawRowOpt (line 8) | interface DrawRowOpt {

FILE: js_sdk/u-draw-poster/extends/draw-function/draw-image-fit.d.ts
  type ImageFitOption (line 3) | interface ImageFitOption {

FILE: js_sdk/u-draw-poster/extends/draw-painter/index.d.ts
  type PainterItemSize (line 4) | interface PainterItemSize {
  type PainterItemSite (line 11) | interface PainterItemSite {
  type PainterImageInfo (line 18) | interface PainterImageInfo extends PainterItemSize, PainterItemSite {
  type PainterRectInfo (line 31) | interface PainterRectInfo extends PainterItemSize, PainterItemSite {
  type PainterTextInfo (line 40) | interface PainterTextInfo extends PainterItemSite {
  type PainterLineFeedTextInfo (line 59) | interface PainterLineFeedTextInfo extends PainterItemSite {
  type PainterQrCodeInfo (line 82) | interface PainterQrCodeInfo extends PainterItemSite {
  type PainterContainerOption (line 96) | interface PainterContainerOption extends PainterItemSize {

FILE: js_sdk/u-draw-poster/extends/draw-qr-code/uQRCode.js
  function QR8bitByte (line 36) | function QR8bitByte(data) {
  function QRCode (line 59) | function QRCode(typeNumber, errorCorrectLevel) {
  function QRPolynomial (line 870) | function QRPolynomial(num, shift) {
  function QRRSBlock (line 938) | function QRRSBlock(totalCount, dataCount) {
  function QRBitBuffer (line 1237) | function QRBitBuffer() {
  function utf16To8 (line 1277) | function utf16To8(text) {

FILE: js_sdk/u-draw-poster/utils/global.d.ts
  type UniPlatforms (line 3) | type UniPlatforms = 'app-plus' | 'app-plus-nvue' | 'h5' | 'mp-weixin' | ...

FILE: js_sdk/u-draw-poster/utils/global.js
  constant PLATFORM (line 2) | const PLATFORM = typeof process !== 'undefined' ? (_a = process === null...

FILE: js_sdk/u-draw-poster/utils/interface.d.ts
  type Execute (line 7) | type Execute = Array<() => Promise<boolean>>;
  type drawPosterExtends (line 8) | interface drawPosterExtends {
  type DrawPosterBuildOpts (line 33) | interface DrawPosterBuildOpts {
  type FillWarpTextOpts (line 57) | interface FillWarpTextOpts {
  type DrawQrCodeOpts (line 68) | interface DrawQrCodeOpts {
  type FillWarpTextItemInfo (line 78) | interface FillWarpTextItemInfo {
  type DrawPosterCanvasCtx (line 84) | interface DrawPosterCanvasCtx extends UniApp.CanvasContext {
  type Canvas (line 135) | interface Canvas {
  type CreateImagePathOptions (line 153) | interface CreateImagePathOptions {
  type DrawPosterUseOpts (line 162) | interface DrawPosterUseOpts {
  type DrawPosterUseCtxOpts (line 170) | interface DrawPosterUseCtxOpts {

FILE: js_sdk/u-draw-poster/utils/object-sizing.d.ts
  type ObjectFit (line 1) | type ObjectFit = "contain" | "cover";
  type ObjectPosition (line 2) | type ObjectPosition = ["left" | "center" | "right", "top" | "center" | "...
  type Size (line 3) | interface Size {

FILE: js_sdk/u-draw-poster/utils/object-sizing.js
  function calculateConcreteRect (line 17) | function calculateConcreteRect(style, intrinsicSize, specifiedSize) {

FILE: js_sdk/wa-permission/permission.js
  function judgeIosPermissionPush (line 12) | function judgeIosPermissionPush() {
  function judgeIosPermissionLocation (line 44) | function judgeIosPermissionLocation() {
  function judgeIosPermissionRecord (line 66) | function judgeIosPermissionRecord() {
  function judgeIosPermissionCamera (line 83) | function judgeIosPermissionCamera() {
  function judgeIosPermissionPhotoLibrary (line 99) | function judgeIosPermissionPhotoLibrary() {
  function judgeIosPermissionContact (line 115) | function judgeIosPermissionContact() {
  function judgeIosPermissionCalendar (line 130) | function judgeIosPermissionCalendar() {
  function judgeIosPermissionMemo (line 145) | function judgeIosPermissionMemo() {
  function requestAndroidPermission (line 160) | function requestAndroidPermission(permissionID) {
  function judgeIosPermission (line 199) | function judgeIosPermission(permissionID) {
  function gotoAppPermissionSetting (line 221) | function gotoAppPermissionSetting() {
  function checkSystemEnableLocation (line 249) | function checkSystemEnableLocation() {

FILE: lib/request/core/InterceptorManager.js
  function InterceptorManager (line 4) | function InterceptorManager() {

FILE: lib/request/core/Request.js
  class Request (line 21) | class Request {
    method constructor (line 35) | constructor(arg = {}) {
    method setConfig (line 51) | setConfig(f) {
    method _middleware (line 55) | _middleware(config) {
    method request (line 86) | request(config = {}) {
    method get (line 90) | get(url, options = {}) {
    method post (line 98) | post(url, data, options = {}) {
    method put (line 108) | put(url, data, options = {}) {
    method delete (line 120) | delete(url, data, options = {}) {
    method connect (line 132) | connect(url, data, options = {}) {
    method head (line 144) | head(url, data, options = {}) {
    method options (line 156) | options(url, data, options = {}) {
    method trace (line 168) | trace(url, data, options = {}) {
    method upload (line 179) | upload(url, config = {}) {
    method download (line 185) | download(url, config = {}) {

FILE: lib/request/core/buildFullPath.js
  function buildFullPath (line 15) | function buildFullPath(baseURL, requestedURL) {

FILE: lib/request/core/settle.js
  function settle (line 8) | function settle(resolve, reject, response) {

FILE: lib/request/helpers/buildURL.js
  function encode (line 5) | function encode(val) {
  function buildURL (line 23) | function buildURL(url, params) {

FILE: lib/request/helpers/combineURLs.js
  function combineURLs (line 10) | function combineURLs(baseURL, relativeURL) {

FILE: lib/request/helpers/isAbsoluteURL.js
  function isAbsoluteURL (line 9) | function isAbsoluteURL(url) {

FILE: lib/request/utils.js
  function isArray (line 13) | function isArray (val) {
  function isObject (line 24) | function isObject (val) {
  function isDate (line 34) | function isDate (val) {
  function isURLSearchParams (line 44) | function isURLSearchParams (val) {
  function forEach (line 61) | function forEach (obj, fn) {
  function isBoolean (line 93) | function isBoolean(val) {
  function isPlainObject (line 102) | function isPlainObject(obj) {
  function deepMerge (line 116) | function deepMerge(/* obj1, obj2, obj3, ... */) {

FILE: pages/mine/im/socket.js
  class socketIO (line 3) | class socketIO {
    method constructor (line 4) | constructor(data, time, url) {
    method connectSocketInit (line 19) | connectSocketInit (data) {
    method Close (line 84) | Close () {
    method send (line 98) | send (data) {
    method start (line 111) | start () {
    method reconnect (line 120) | reconnect () {
    method arrayFilter (line 136) | arrayFilter (array, type = 'normal', signalId = 0) {

FILE: pages/product/product/promotion/promotion_type.js
  function formatType (line 45) | function formatType(val){

FILE: pages/tabbar/home/template/tpl.js
  function modelNavigateTo (line 2) | function modelNavigateTo(item) {
  function scan (line 159) | async function scan() {
  function tipsGetSettings (line 193) | function tipsGetSettings() {
  function seacnCode (line 209) | function seacnCode() {

FILE: plugins/APPUpdate/index.js
  function drawtext (line 146) | function drawtext(text, maxWidth) {
  function updatePopup (line 242) | function updatePopup(data, callback) {
  function downloadPopupDrawing (line 486) | function downloadPopupDrawing(data) {
  function downloadPopup (line 684) | function downloadPopup(data, callback, cancelCallback, rebootCallback) {

FILE: store/index.js
  method login (line 20) | login(state, userInfo) {
  method logout (line 26) | logout(state) {
  method setRemark (line 32) | setRemark(state, remark) {

FILE: uni_modules/Sansnn-uQRCode/common/queue.js
  function Queue (line 1) | function Queue() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/bridge/bridge-weex.js
  function joinArray (line 31) | function joinArray(arr, sep) {
  method texImage2D (line 172) | texImage2D(componentId, ...args) {
  method texSubImage2D (line 199) | texSubImage2D(componentId, target, level, xoffset, yoffset, format, type...
  method bindImageTexture (line 212) | bindImageTexture(componentId, src, imageId) {
  method perloadImage (line 216) | perloadImage([url, id], callback) {
  method measureText (line 224) | measureText(text, fontStyle, componentId) {
  method getImageData (line 228) | getImageData (componentId, x, y, w, h, callback) {
  method putImageData (line 232) | putImageData (componentId, data, x, y, w, h, callback) {
  method toTempFilePath (line 236) | toTempFilePath(componentId, x, y, width, height, destWidth, destHeight, ...

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/FillStyleLinearGradient.js
  class FillStyleLinearGradient (line 1) | class FillStyleLinearGradient {
    method constructor (line 3) | constructor(x0, y0, x1, y1) {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/FillStylePattern.js
  class FillStylePattern (line 1) | class FillStylePattern {
    method constructor (line 2) | constructor(img, pattern) {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/FillStyleRadialGradient.js
  class FillStyleRadialGradient (line 1) | class FillStyleRadialGradient {
    method constructor (line 2) | constructor(x0, y0, r0, x1, y1, r1) {
    method addColorStop (line 9) | addColorStop(pos, color) {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-2d/RenderingContext.js
  class CanvasRenderingContext2D (line 10) | class CanvasRenderingContext2D {
    method constructor (line 44) | constructor() {
    method setFillStyle (line 49) | setFillStyle(value) {
    method fillStyle (line 53) | set fillStyle(value) {
    method fillStyle (line 96) | get fillStyle() {
    method globalAlpha (line 100) | get globalAlpha() {
    method setGlobalAlpha (line 104) | setGlobalAlpha(value) {
    method globalAlpha (line 108) | set globalAlpha(value) {
    method strokeStyle (line 114) | get strokeStyle() {
    method setStrokeStyle (line 118) | setStrokeStyle(value) {
    method strokeStyle (line 122) | set strokeStyle(value) {
    method lineWidth (line 153) | get lineWidth() {
    method setLineWidth (line 157) | setLineWidth(value) {
    method lineWidth (line 161) | set lineWidth(value) {
    method lineCap (line 166) | get lineCap() {
    method setLineCap (line 170) | setLineCap(value) {
    method lineCap (line 174) | set lineCap(value) {
    method lineJoin (line 179) | get lineJoin() {
    method setLineJoin (line 183) | setLineJoin(value) {
    method lineJoin (line 187) | set lineJoin(value) {
    method miterLimit (line 192) | get miterLimit() {
    method setMiterLimit (line 196) | setMiterLimit(value) {
    method miterLimit (line 200) | set miterLimit(value) {
    method globalCompositeOperation (line 205) | get globalCompositeOperation() {
    method globalCompositeOperation (line 209) | set globalCompositeOperation(value) {
    method textAlign (line 254) | get textAlign() {
    method setTextAlign (line 258) | setTextAlign(value) {
    method textAlign (line 262) | set textAlign(value) {
    method textBaseline (line 289) | get textBaseline() {
    method setTextBaseline (line 293) | setTextBaseline(value) {
    method textBaseline (line 297) | set textBaseline(value) {
    method font (line 327) | get font() {
    method setFontSize (line 331) | setFontSize(size) {
    method font (line 353) | set font(value) {
    method setTransform (line 358) | setTransform(a, b, c, d, tx, ty) {
    method transform (line 366) | transform(a, b, c, d, tx, ty) {
    method resetTransform (line 374) | resetTransform() {
    method scale (line 378) | scale(a, d) {
    method rotate (line 383) | rotate(angle) {
    method translate (line 388) | translate(tx, ty) {
    method save (line 392) | save() {
    method restore (line 397) | restore() {
    method createPattern (line 402) | createPattern(img, pattern) {
    method createLinearGradient (line 411) | createLinearGradient(x0, y0, x1, y1) {
    method strokeRect (line 423) | strokeRect(x, y, w, h) {
    method clearRect (line 428) | clearRect(x, y, w, h) {
    method clip (line 433) | clip() {
    method resetClip (line 437) | resetClip() {
    method closePath (line 441) | closePath() {
    method moveTo (line 445) | moveTo(x, y) {
    method lineTo (line 449) | lineTo(x, y) {
    method bezierCurveTo (line 457) | bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y, ) {
    method arcTo (line 463) | arcTo(x1, y1, x2, y2, radius) {
    method beginPath (line 467) | beginPath() {
    method fillRect (line 472) | fillRect(x, y, w, h) {
    method rect (line 477) | rect(x, y, w, h) {
    method fill (line 481) | fill() {
    method stroke (line 485) | stroke(path) {
    method arc (line 489) | arc(x, y, radius, startAngle, endAngle, anticlockwise) {
    method fillText (line 503) | fillText(text, x, y) {
    method measureText (line 517) | measureText(text) {
    method drawImage (line 525) | drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) {
    method __drawImage (line 557) | __drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) {
    method _flush (line 596) | _flush(reserve, callback) {
    method _redrawflush (line 603) | _redrawflush(reserve, callback) {
    method draw (line 611) | draw(reserve, callback) {
    method getImageData (line 637) | getImageData(x, y, w, h, callback) {
    method putImageData (line 646) | putImageData(data, x, y, w, h, callback) {
    method toTempFilePath (line 657) | toTempFilePath(x, y, width, height, destWidth, destHeight, fileType, q...

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/ActiveInfo.js
  class WebGLActiveInfo (line 1) | class WebGLActiveInfo {
    method constructor (line 4) | constructor({

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Buffer.js
  function uuid (line 5) | function uuid(id) {
  class WebGLBuffer (line 9) | class WebGLBuffer {
    method constructor (line 12) | constructor(id) {
    method uuid (line 18) | uuid() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Framebuffer.js
  function uuid (line 5) | function uuid(id) {
  class WebGLFramebuffer (line 9) | class WebGLFramebuffer {
    method constructor (line 12) | constructor(id) {
    method uuid (line 18) | uuid() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Program.js
  function uuid (line 5) | function uuid(id) {
  class WebGLProgram (line 9) | class WebGLProgram {
    method constructor (line 12) | constructor(id) {
    method uuid (line 18) | uuid() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Renderbuffer.js
  function uuid (line 5) | function uuid(id) {
  class WebGLRenderbuffer (line 9) | class WebGLRenderbuffer {
    method constructor (line 12) | constructor(id) {
    method uuid (line 18) | uuid() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/RenderingContext.js
  function joinArray (line 15) | function joinArray(arr, sep) {
  class WebGLRenderingContext (line 50) | class WebGLRenderingContext {
    method constructor (line 56) | constructor(canvas, type, attrs) {
    method canvas (line 69) | get canvas() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Shader.js
  function uuid (line 5) | function uuid(id) {
  class WebGLShader (line 9) | class WebGLShader {
    method constructor (line 12) | constructor(id, type) {
    method uuid (line 19) | uuid() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/ShaderPrecisionFormat.js
  class WebGLShaderPrecisionFormat (line 1) | class WebGLShaderPrecisionFormat {
    method constructor (line 4) | constructor({

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/Texture.js
  function uuid (line 5) | function uuid(id) {
  class WebGLTexture (line 9) | class WebGLTexture {
    method constructor (line 12) | constructor(id, type) {
    method uuid (line 19) | uuid() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/UniformLocation.js
  function uuid (line 5) | function uuid(id) {
  class WebGLUniformLocation (line 9) | class WebGLUniformLocation {
    method constructor (line 12) | constructor(id, type) {
    method uuid (line 19) | uuid() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/context-webgl/classUtils.js
  function getTransferedObjectUUID (line 1) | function getTransferedObjectUUID(name, id) {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/env/canvas.js
  class GCanvas (line 4) | class GCanvas {
    method constructor (line 12) | constructor(id, { disableAutoSwap }) {
    method getContext (line 23) | getContext(type) {
    method reset (line 69) | reset() {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/env/image.js
  class GImage (line 5) | class GImage {
    method constructor (line 9) | constructor() {
    method width (line 19) | get width() {
    method width (line 22) | set width(v) {
    method height (line 26) | get height() {
    method height (line 30) | set height(v) {
    method src (line 34) | get src() {
    method src (line 38) | set src(v) {
    method addEventListener (line 63) | addEventListener(name, listener) {
    method removeEventListener (line 71) | removeEventListener(name, listener) {
    method onload (line 79) | get onload() {
    method onload (line 83) | set onload(v) {
    method onerror (line 87) | get onerror() {
    method onerror (line 91) | set onerror(v) {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/env/tool.js
  function ArrayBufferToBase64 (line 2) | function ArrayBufferToBase64 (buffer) {
  function Base64ToUint8ClampedArray (line 11) | function Base64ToUint8ClampedArray(base64String) {

FILE: uni_modules/Sansnn-uQRCode/js_sdk/gcanvas/index.js
  function enable (line 13) | function enable(el, { bridge, debug, disableAutoSwap, disableComboComman...

FILE: uni_modules/Sansnn-uQRCode/js_sdk/uqrcode/uqrcode.js
  function o (line 34) | function o(o){this.mode=r.MODE_8BIT_BYTE,this.data=o;}
  function e (line 34) | function e(o,e){this.typeNumber=o,this.errorCorrectLevel=e,this.modules=...
  function f (line 34) | function f(o,e){if(null==o.length)throw new Error(o.length+"/"+e);for(va...
  function v (line 34) | function v(o,e){this.totalCount=o,this.dataCount=e;}
  function p (line 34) | function p(){this.buffer=new Array,this.length=0;}
  function C (line 34) | function C(o){return o.setFillStyle=o.setFillStyle||function(e){o.fillSt...
  function b (line 34) | function b(o,e){var r=this.data="",t=this.size=200;this.useDynamicSize=!...

FILE: utils/Foundation.js
  function checkBankno (line 15) | function checkBankno(bankno) {
  function whetherNavigate (line 83) | function whetherNavigate(type = "default") {
  function unixToDate (line 111) | function unixToDate(unix, format) {
  function dateToUnix (line 143) | function dateToUnix(date) {
  function formatPrice (line 165) | function formatPrice(price) {
  function secrecyMobile (line 176) | function secrecyMobile(mobile) {
  function randomString (line 189) | function randomString(length = 32) {
  function countTimeDown (line 206) | function countTimeDown(seconds) {
  function navigationToBack (line 219) | function navigationToBack(type) {
  function theNextDayTime (line 236) | function theNextDayTime() {

FILE: utils/RegExp.js
  constant URL (line 43) | const URL =
  constant TEL (line 47) | const TEL = /0\d{2,3}-\d{7,8}/

FILE: utils/emojis.js
  function textReplaceEmoji (line 137) | function textReplaceEmoji (content) {

FILE: utils/filters.js
  function unitPrice (line 13) | function unitPrice (val, unit, location) {
  function goodsFormatPrice (line 30) | function goodsFormatPrice (val) {
  function setClipboard (line 43) | function setClipboard (val) {
  function callPhone (line 79) | function callPhone (phoneNumber) {
  function noPassByName (line 89) | function noPassByName (str) {
  function unixToDate (line 109) | function unixToDate (unix, format) {
  function beautifyTime (line 140) | function beautifyTime (datetime = "") {
  function timestampToTime (line 190) | function timestampToTime (timestamp) {
  function secrecyMobile (line 206) | function secrecyMobile (mobile) {
  function formatTime (line 219) | function formatTime (datetime) {
  function parseTime (line 274) | function parseTime (time, cFormat) {
  function clearStrComma (line 323) | function clearStrComma (str) {
  function isLogin (line 333) | function isLogin (val) {
  function quiteLoginOut (line 346) | function quiteLoginOut () {
  function logoff (line 368) | function logoff () {
  function talkIm (line 389) | function talkIm (storeId, goodsId, id) {
  function tipsToLogin (line 402) | function tipsToLogin (type) {
  function userInfo (line 429) | async function userInfo () {
  function forceLogin (line 443) | function forceLogin () {
  function getPages (line 468) | function getPages (val) {
  function navigateToLogin (line 479) | function navigateToLogin (type = "navigateTo") {
  function serviceStatusList (line 500) | function serviceStatusList (val) {
  function orderStatusList (line 520) | function orderStatusList (val) {

FILE: utils/md5.js
  function safe_add (line 13) | function safe_add(x, y) {
  function rol (line 22) | function rol(num, cnt) {
  function cmn (line 29) | function cmn(q, a, b, x, s, t) {
  function ff (line 33) | function ff(a, b, c, d, x, s, t) {
  function gg (line 37) | function gg(a, b, c, d, x, s, t) {
  function hh (line 41) | function hh(a, b, c, d, x, s, t) {
  function ii (line 45) | function ii(a, b, c, d, x, s, t) {
  function coreMD5 (line 53) | function coreMD5(x) {
  function binl2hex (line 144) | function binl2hex(binarray) {
  function binl2b64 (line 157) | function binl2b64(binarray) {
  function str2binl (line 172) | function str2binl(str) {
  function strw2binl (line 187) | function strw2binl(str) {
  function hexMD5 (line 201) | function hexMD5(str) {
  function hexMD5w (line 205) | function hexMD5w(str) {
  function b64MD5 (line 209) | function b64MD5(str) {
  function b64MD5w (line 213) | function b64MD5w(str) {
  function calcMD5 (line 217) | function calcMD5(str) {

FILE: utils/request.js
  function cleanStorage (line 19) | function cleanStorage() {

FILE: utils/socket_service.js
  class SocketService (line 4) | class SocketService {
    method Instance (line 9) | static get Instance () {
    method connect (line 32) | connect () {
    method registerCallBack (line 62) | registerCallBack (callBack) {
    method unRegisterCallBack (line 68) | unRegisterCallBack (callBack) {
    method send (line 74) | send (data) {

FILE: utils/storage.js
  constant UUID (line 3) | const UUID = isDev ? "uuid_key_dev" : "uuid_key";
  constant HAS_LOGIN (line 4) | const HAS_LOGIN = isDev ? "has_login_key_dev" : "has_login_key";
  constant ACCESS_TOKEN (line 5) | const ACCESS_TOKEN = isDev ? "access_token_key_dev" : "access_token_key";
  constant REFRESH_TOKEN (line 6) | const REFRESH_TOKEN = isDev ? "refresh_token_key_dev" : "refresh_token_k...
  constant USER_INFO (line 7) | const USER_INFO = isDev ? "user_info_obj_dev" : "user_info_obj";
  constant FACE_LOGIN (line 8) | const FACE_LOGIN = isDev ? "face_login_dev" : "face_login";
  constant FINGER_LOGIN (line 9) | const FINGER_LOGIN = isDev ? "finger_login_dev" : "finger_login";
  constant CART_BACKBTN (line 10) | const CART_BACKBTN = isDev ? "cart_backbtn_dev" : "cart_backbtn";
  constant AFTERSALE_DATA (line 11) | const AFTERSALE_DATA = isDev ? "aftersale_data_dev" : "aftersale_data";
  method setInviter (line 13) | setInviter(val){
  method getInviter (line 16) | getInviter(){
  method setAutoCp (line 21) | setAutoCp(val){
  method getAutoCp (line 25) | getAutoCp(){
  method setHotWords (line 29) | setHotWords(val) {
  method getHotWords (line 33) | getHotWords() {
  method setShow (line 37) | setShow(val) {
  method getShow (line 40) | getShow() {
  method getFaceLogin (line 47) | getFaceLogin() {
  method setFaceLogin (line 51) | setFaceLogin(val) {
  method getFingerLogin (line 55) | getFingerLogin() {
  method setFingerLogin (line 59) | setFingerLogin(val) {
  method setUserInfo (line 63) | setUserInfo(val) {
  method getUserInfo (line 67) | getUserInfo() {
  method setTalkToUser (line 70) | setTalkToUser(val){
  method getTalkToUser (line 73) | getTalkToUser(){
  method setUuid (line 77) | setUuid(val) {
  method getUuid (line 81) | getUuid() {
  method setHasLogin (line 85) | setHasLogin(val) {
  method getHasLogin (line 89) | getHasLogin() {
  method removeUuid (line 93) | removeUuid() {
  method setAccessToken (line 97) | setAccessToken(val) {
  method getAccessToken (line 101) | getAccessToken() {
  method setCartBackbtn (line 105) | setCartBackbtn(val) {
  method removeAccessToken (line 110) | removeAccessToken() {
  method setRefreshToken (line 114) | setRefreshToken(val) {
  method getRefreshToken (line 118) | getRefreshToken() {
  method removeRefreshToken (line 122) | removeRefreshToken() {
  method setAfterSaleData (line 126) | setAfterSaleData(val) {
  method getAfterSaleData (line 130) | getAfterSaleData() {
  method removeAfterSaleData (line 134) | removeAfterSaleData() {
  method setImGoodsLink (line 138) | setImGoodsLink(val) {
  method getImGoodsLink (line 141) | getImGoodsLink() {

FILE: utils/tools.js
  function urlParse (line 6) | function urlParse(url) {

FILE: utils/uuid.modified.js
  function setupBrowser (line 17) | function setupBrowser() {
  function parse (line 72) | function parse(s, buf, offset) {
  function unparse (line 92) | function unparse(buf, offset) {
  function v1 (line 127) | function v1(options, buf, offset) {
  function v4 (line 205) | function v4(options, buf, offset) {

FILE: uview-ui/components/u-avatar-cropper/weCropper.js
  function firstLetterUpper (line 16) | function firstLetterUpper(str) {
  function setTouchState (line 20) | function setTouchState(instance) {
  function validator (line 32) | function validator(instance, o) {
  function getDevice (line 36) | function getDevice() {
  function prepare (line 200) | function prepare() {
  function createCommonjsModule (line 247) | function createCommonjsModule(fn, module) {
  function observer (line 337) | function observer() {
  function wxPromise (line 354) | function wxPromise(fn) {
  function draw (line 373) | function draw(ctx, reserve) {
  function makeURI (line 552) | function makeURI(strData, type) {
  function fixType (line 556) | function fixType(type) {
  function encodeData (line 562) | function encodeData(data) {
  function getImageData (line 583) | function getImageData(canvasId, x, y, width, height, done) {
  function genBitmapImage (line 605) | function genBitmapImage(oData) {
  function convertToImage (line 719) | function convertToImage(canvasId, x, y, width, height, type, done) {
  function methods (line 760) | function methods() {
  function update (line 952) | function update() {
  function cut (line 1082) | function cut() {

FILE: uview-ui/components/u-parse/libs/CssHandler.js
  function CssHandler (line 4) | function CssHandler(tagStyle) {
  function parser (line 27) | function parser(data, init) {

FILE: uview-ui/components/u-parse/libs/MpHtmlParser.js
  function MpHtmlParser (line 14) | function MpHtmlParser(data, options = {}) {

FILE: uview-ui/components/u-parse/libs/config.js
  function makeMap (line 58) | function makeMap(str) {

FILE: uview-ui/index.js
  function wranning (line 8) | function wranning(str) {

FILE: uview-ui/libs/function/$parent.js
  function $parent (line 5) | function $parent(name = undefined) {

FILE: uview-ui/libs/function/addUnit.js
  function addUnit (line 4) | function addUnit(value = 'auto', unit = 'rpx') {

FILE: uview-ui/libs/function/bem.js
  function bem (line 1) | function bem(name, conf) {

FILE: uview-ui/libs/function/colorGradient.js
  function colorGradient (line 7) | function colorGradient(startColor = 'rgb(0, 0, 0)', endColor = 'rgb(255,...
  function hexToRgb (line 32) | function hexToRgb(sColor, str = true) {
  function rgbToHex (line 62) | function rgbToHex(rgb) {

FILE: uview-ui/libs/function/debounce.js
  function debounce (line 11) | function debounce(func, wait = 500, immediate = false) {

FILE: uview-ui/libs/function/deepClone.js
  function isArray (line 2) | function isArray (arr) {
  function deepClone (line 7) | function deepClone (obj) {

FILE: uview-ui/libs/function/deepMerge.js
  function deepMerge (line 4) | function deepMerge(target = {}, source = {}) {

FILE: uview-ui/libs/function/getParent.js
  function getParent (line 3) | function getParent(name, keys) {

FILE: uview-ui/libs/function/guid.js
  function guid (line 11) | function guid(len = 32, firstU = true, radix = null) {

FILE: uview-ui/libs/function/md5.js
  function hex_md5 (line 21) | function hex_md5(s)    { return rstr2hex(rstr_md5(str2rstr_utf8(s))); }
  function b64_md5 (line 22) | function b64_md5(s)    { return rstr2b64(rstr_md5(str2rstr_utf8(s))); }
  function any_md5 (line 23) | function any_md5(s, e) { return rstr2any(rstr_md5(str2rstr_utf8(s)), e); }
  function hex_hmac_md5 (line 24) | function hex_hmac_md5(k, d)
  function b64_hmac_md5 (line 26) | function b64_hmac_md5(k, d)
  function any_hmac_md5 (line 28) | function any_hmac_md5(k, d, e)
  function md5_vm_test (line 34) | function md5_vm_test()
  function rstr_md5 (line 42) | function rstr_md5(s)
  function rstr_hmac_md5 (line 50) | function rstr_hmac_md5(key, data)
  function rstr2hex (line 69) | function rstr2hex(input)
  function rstr2b64 (line 87) | function rstr2b64(input)
  function rstr2any (line 110) | function rstr2any(input, encoding)
  function str2rstr_utf8 (line 159) | function str2rstr_utf8(input)
  function str2rstr_utf16le (line 198) | function str2rstr_utf16le(input)
  function str2rstr_utf16be (line 207) | function str2rstr_utf16be(input)
  function rstr2binl (line 220) | function rstr2binl(input)
  function binl2rstr (line 233) | function binl2rstr(input)
  function binl_md5 (line 244) | function binl_md5(x, len)
  function md5_cmn (line 341) | function md5_cmn(q, a, b, x, s, t)
  function md5_ff (line 345) | function md5_ff(a, b, c, d, x, s, t)
  function md5_gg (line 349) | function md5_gg(a, b, c, d, x, s, t)
  function md5_hh (line 353) | function md5_hh(a, b, c, d, x, s, t)
  function md5_ii (line 357) | function md5_ii(a, b, c, d, x, s, t)
  function safe_add (line 366) | function safe_add(x, y)
  function bit_rol (line 376) | function bit_rol(num, cnt)

FILE: uview-ui/libs/function/queryParams.js
  function queryParams (line 6) | function queryParams(data = {}, isPrefix = true, arrayFormat = 'brackets...

FILE: uview-ui/libs/function/random.js
  function random (line 1) | function random(min, max) {

FILE: uview-ui/libs/function/randomArray.js
  function randomArray (line 2) | function randomArray(array = []) {

FILE: uview-ui/libs/function/route.js
  function route (line 6) | function route(options = {}, params = false) {

FILE: uview-ui/libs/function/sys.js
  function os (line 1) | function os() {
  function sys (line 5) | function sys() {

FILE: uview-ui/libs/function/test.js
  function email (line 4) | function email(value) {
  function mobile (line 11) | function mobile(value) {
  function url (line 18) | function url(value) {
  function date (line 26) | function date(value) {
  function dateISO (line 33) | function dateISO(value) {
  function number (line 40) | function number(value) {
  function digits (line 47) | function digits(value) {
  function idCard (line 54) | function idCard(value) {
  function carNo (line 62) | function carNo(value) {
  function amount (line 79) | function amount(value) {
  function chinese (line 87) | function chinese(value) {
  function letter (line 95) | function letter(value) {
  function enOrNum (line 102) | function enOrNum(value) {
  function contains (line 111) | function contains(value, param) {
  function range (line 118) | function range(value, param) {
  function rangeLength (line 125) | function rangeLength(value, param) {
  function landline (line 132) | function landline(value) {
  function empty (line 140) | function empty(value) {
  function jsonString (line 166) | function jsonString(value) {
  function array (line 186) | function array(value) {
  function object (line 198) | function object(value) {

FILE: uview-ui/libs/function/throttle.js
  function throttle (line 10) | function throttle(func, wait = 500, immediate = true) {

FILE: uview-ui/libs/function/timeFormat.js
  function timeFormat (line 24) | function timeFormat(timestamp = null, fmt = 'yyyy-mm-dd') {

FILE: uview-ui/libs/function/timeFrom.js
  function timeFrom (line 9) | function timeFrom(timestamp = null, format = 'yyyy-mm-dd') {

FILE: uview-ui/libs/function/toast.js
  function toast (line 1) | function toast(title, duration = 1500) {

FILE: uview-ui/libs/function/trim.js
  function trim (line 1) | function trim(str, pos = 'both') {

FILE: uview-ui/libs/function/type2icon.js
  function type2icon (line 6) | function type2icon(type = 'success', fill = false) {

FILE: uview-ui/libs/mixin/mixin.js
  method data (line 2) | data() {
  method onLoad (line 5) | onLoad() {
  method $uGetRect (line 13) | $uGetRect(selector, all) {
  method onReachBottom (line 29) | onReachBottom() {

FILE: uview-ui/libs/mixin/mpShare.js
  method onLoad (line 2) | onLoad() {
  method onShareAppMessage (line 10) | onShareAppMessage() {

FILE: uview-ui/libs/request/index.js
  class Request (line 3) | class Request {
    method setConfig (line 5) | setConfig(customConfig) {
    method request (line 11) | request(options = {}) {
    method constructor (line 102) | constructor() {

FILE: uview-ui/libs/store/index.js
  method $uStore (line 4) | $uStore({rootState}, params) {

FILE: uview-ui/libs/util/async-validator.js
  function _extends (line 1) | function _extends() {
  function convertFieldsError (line 36) | function convertFieldsError(errors) {
  function format (line 47) | function format() {
  function isNativeStringType (line 101) | function isNativeStringType(type) {
  function isEmptyValue (line 105) | function isEmptyValue(value, type) {
  function asyncParallelArray (line 121) | function asyncParallelArray(arr, func, callback) {
  function asyncSerialArray (line 140) | function asyncSerialArray(arr, func, callback) {
  function flattenObjArr (line 163) | function flattenObjArr(objArr) {
  function asyncMap (line 171) | function asyncMap(objArr, option, func, callback) {
  function complementError (line 238) | function complementError(rule) {
  function deepMerge (line 252) | function deepMerge(target, source) {
  function required (line 282) | function required(rule, value, source, errors, options, type) {
  function whitespace (line 300) | function whitespace(rule, value, source, errors, options) {
  function type (line 377) | function type(rule, value, source, errors, options) {
  function range (line 408) | function range(rule, value, source, errors, options) {
  function enumerable (line 470) | function enumerable(rule, value, source, errors, options) {
  function pattern$1 (line 490) | function pattern$1(rule, value, source, errors, options) {
  function string (line 531) | function string(rule, value, callback, source, options) {
  function method (line 567) | function method(rule, value, callback, source, options) {
  function number (line 597) | function number(rule, value, callback, source, options) {
  function _boolean (line 632) | function _boolean(rule, value, callback, source, options) {
  function regexp (line 662) | function regexp(rule, value, callback, source, options) {
  function integer (line 692) | function integer(rule, value, callback, source, options) {
  function floatFn (line 723) | function floatFn(rule, value, callback, source, options) {
  function array (line 754) | function array(rule, value, callback, source, options) {
  function object (line 785) | function object(rule, value, callback, source, options) {
  function enumerable$1 (line 816) | function enumerable$1(rule, value, callback, source, options) {
  function pattern$2 (line 849) | function pattern$2(rule, value, callback, source, options) {
  function date (line 868) | function date(rule, value, callback, source, options) {
  function required$1 (line 899) | function required$1(rule, value, callback, source, options) {
  function type$1 (line 906) | function type$1(rule, value, callback, source, options) {
  function any (line 937) | function any(rule, value, callback, source, options) {
  function newMessages (line 972) | function newMessages() {
  function Schema (line 1035) | function Schema(descriptor) {
  function complete (line 1097) | function complete(results) {
  function addFullfield (line 1191) | function addFullfield(key, schema) {
  function cb (line 1197) | function cb(e) {

FILE: uview-ui/libs/util/emitter.js
  function broadcast (line 7) | function broadcast(componentName, eventName, params) {
  method dispatch (line 25) | dispatch(componentName, eventName, params) {
  method broadcast (line 47) | broadcast(componentName, eventName, params) {
Condensed preview — 480 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3,412K chars).
[
  {
    "path": ".gitignore",
    "chars": 156,
    "preview": "# OSX\n#\n.DS_Store\nnode_modules/\n\n#Intellij idea\n.idea/\n/idea/\n.vscode/\n/unpackage/\n.hbuilderx/launch.json\n.project.confi"
  },
  {
    "path": "App.vue",
    "chars": 5098,
    "preview": "<script>\r\n\t/**\r\n\t * vuex管理登录状态,具体可以参考官方登录模板示例\r\n\t */\r\n\timport config from \"@/config/config\";\r\nimport {\r\n\tgetClipboardData"
  },
  {
    "path": "CustomStoryboard/LaunchScreen.storyboard",
    "chars": 6186,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3"
  },
  {
    "path": "LICENSE",
    "chars": 35181,
    "preview": "                    GNU AFFERO GENERAL PUBLIC LICENSE\r\n                       Version 3, 19 November 2007\r\n\r\n Copyright "
  },
  {
    "path": "README.md",
    "chars": 4577,
    "preview": "## Lilishop B2B2C 商城系统\n\n### 商城介绍\n\n**官网**:https://pickmall.cn\n\n**更多 README**:https://gitee.com/beijing_hongye_huicheng/li"
  },
  {
    "path": "androidPrivacy.json",
    "chars": 856,
    "preview": "{\n    \"version\" : \"1\",\n    \"prompt\" : \"template\",\n    \"title\" : \"服务协议和隐私政策\",\n    \"message\" : \"  请你务必审慎阅读、充分理解“服务协议”和“隐私政"
  },
  {
    "path": "api/address.js",
    "chars": 2019,
    "preview": "/**\n * 收货地址相关API\n */\n\nimport { http, Method } from \"@/utils/request.js\";\n\nimport api from \"@/config/api.js\";\n\n/**\n * 获取收"
  },
  {
    "path": "api/after-sale.js",
    "chars": 3960,
    "preview": "/**\n * 申请售后相关API\n */\n\nimport { http, Method } from \"@/utils/request.js\";\n\n/**\n * 获取售后列表\n * @param params\n * @returns {Ax"
  },
  {
    "path": "api/article.js",
    "chars": 688,
    "preview": "/**\n * 文章相关API\n */\n\nimport {http,Method} from '@/utils/request.js';\nimport api from '@/config/api.js';\n\n/**\n * 获取某个分类的文章"
  },
  {
    "path": "api/common.js",
    "chars": 580,
    "preview": "/**\r\n * 公共API\r\n */\r\nimport { http, Method } from \"@/utils/request.js\";\r\nimport api from \"@/config/api.js\";\r\n\r\n/**\r\n * 获取"
  },
  {
    "path": "api/connect.js",
    "chars": 1017,
    "preview": "/**\r\n * 信任登录相关API\r\n */\r\n\r\nimport {\r\n\thttp,\r\n\tMethod\r\n} from '@/utils/request.js';\r\nconst request = http.request;\r\n\r\n\r\n/*"
  },
  {
    "path": "api/entry.js",
    "chars": 713,
    "preview": "/**\n * 入驻类相关api\n */\n\nimport { http, Method } from \"@/utils/request.js\";\n\n// 获取当前用户的代理入驻详情\nexport function getCompanyDeta"
  },
  {
    "path": "api/goods.js",
    "chars": 3594,
    "preview": "/**\n * 商品相关API\n */\n\nimport { http, Method } from \"@/utils/request.js\";\n\n/**\n * 从ES中获取相关商品品牌名称,分类名称及属性\n */\n export functi"
  },
  {
    "path": "api/home.js",
    "chars": 1453,
    "preview": "import { http, Method } from \"@/utils/request.js\";\n\n export function toSpecial(data) {\n  return http.request({\n    url: "
  },
  {
    "path": "api/im.js",
    "chars": 1435,
    "preview": "import { http,Method } from \"@/utils/request.js\";\n\nimport api from \"@/config/api.js\";\n\n/**\n * 获取聊天详情接口\n * @param {*} tal"
  },
  {
    "path": "api/login.js",
    "chars": 2790,
    "preview": "import { http } from \"@/utils/request.js\";\r\n\r\nimport api from \"@/config/api.js\";\r\n\r\n/**\r\n * 通过短信重置密码\r\n * @param  mobile\r"
  },
  {
    "path": "api/members.js",
    "chars": 8084,
    "preview": "import storage from \"@/utils/storage\";\nimport { http, Method } from \"@/utils/request.js\";\n\n/**\n * 意见反馈\n */\nexport functi"
  },
  {
    "path": "api/message.js",
    "chars": 1946,
    "preview": "/**\n * 站内消息相关API\n */\n\nimport {http,Method} from '@/utils/request.js';\nconst request = http.request\n\nimport api from '@/c"
  },
  {
    "path": "api/order.js",
    "chars": 1855,
    "preview": "/**\n * 订单相关API\n */\n\nimport { http, Method } from \"@/utils/request.js\";\n\n\n\n\n/**\n * 选择发票\n * @param params\n */\n export func"
  },
  {
    "path": "api/passport.js",
    "chars": 1875,
    "preview": "/**\n * Created by Andste on 2018/5/2.\n * 用户认证相关API\n */\nimport storage from '@/utils/storage.js';\nimport {http, Method} f"
  },
  {
    "path": "api/point.js",
    "chars": 396,
    "preview": "\nimport {http, Method} from '@/utils/request.js';\n\n/**\n * 签到\n * @param params\n */\nexport function sign() {\n  return http"
  },
  {
    "path": "api/promotions.js",
    "chars": 3066,
    "preview": "/**\n * 促销相关API\n */\nimport { http, Method } from \"@/utils/request.js\";\n\n/**\n * 获取当前直播列表\n *\n * @param {*}\n * @returns\n */\n"
  },
  {
    "path": "api/safe.js",
    "chars": 2521,
    "preview": "/**\n * 安全相关API\n */\n\nimport {http,Method} from '@/utils/request.js';\nimport storage from \"@/utils/storage.js\"\nimport { md"
  },
  {
    "path": "api/store.js",
    "chars": 988,
    "preview": "/**\n * 店铺相关API\n */\n\nimport {http, Method} from '@/utils/request.js';\n\n\n\n\n/**\n * 获取店铺列表\n * @param params\n */\nexport funct"
  },
  {
    "path": "api/trade.js",
    "chars": 5765,
    "preview": "/**\n * 交♂易相关API\n */\n\nimport { http, Method } from \"@/utils/request.js\";\n\n/**\n * 获取购物车列表\n * @param show_type 要显示的类型 all:全"
  },
  {
    "path": "components/Sansnn-uQRCode/uqrcode.js",
    "chars": 33296,
    "preview": "// uqrcode.js 复制直接用\n//---------------------------------------------------------------------\n// github https://github.com"
  },
  {
    "path": "components/default-page/default-page.vue",
    "chars": 1313,
    "preview": "<template>\n\t<view class=\"default-page\">\n\t\t<view class=\"default-wrap\">\n\t\t\t\n\t\t\t<text>{{title}}</text>\n\t\t\t<view v-if=\"isBtn"
  },
  {
    "path": "components/m-airbtn/index.vue",
    "chars": 2482,
    "preview": "<template>\r\n  <view>\r\n    <!-- #ifdef H5 -->\r\n    <view class=\"wrapper\" v-if=\"!weChat\" @click=\"openApp()\">\r\n      <!-- 左"
  },
  {
    "path": "components/m-buy/README.md",
    "chars": 55,
    "preview": "## 购买组件\n1.本组件是砍价,积分购买,参团等复用组\n2.后续会将此组件和商品购买组件合并,文档后续再出\n"
  },
  {
    "path": "components/m-buy/goods.vue",
    "chars": 13408,
    "preview": "<template>\r\n\t<div class=\"wrapper\">\r\n\t\t<u-popup class=\"popup\" v-model=\"buyMask\" :height=\"setup.height\" closeable :mode=\"s"
  },
  {
    "path": "components/m-buy/popup.js",
    "chars": 131,
    "preview": "\n\nexport default {\n    height:\"1000rpx\", //弹出层高度\n    mode:\"bottom\", //弹出层位置\n    radius:\"32\", //圆角 rpx,\n    close:false /"
  },
  {
    "path": "components/m-buy/popup.scss",
    "chars": 541,
    "preview": ".view-class-title {\n    font-size: 26rpx;\n    color: #262626;\n\n    font-weight: 700;\n    height: 80rpx;\n    line-height:"
  },
  {
    "path": "components/m-canvas/README.md",
    "chars": 48,
    "preview": "### 说明 https://ext.dcloud.net.cn/plugin?id=3237\n"
  },
  {
    "path": "components/m-canvas/index.vue",
    "chars": 4735,
    "preview": "<template>\r\n\r\n  <div class=\"index\">\r\n    <u-modal v-model=\"show\" :show-title=\"false\" :show-confirm-button=\"false\" mask-c"
  },
  {
    "path": "components/m-city/m-city.vue",
    "chars": 9220,
    "preview": "<template>\r\n  <view>\r\n    <view\r\n      class=\"mask\"\r\n      :class=\"{ maskShow: showPicker }\"\r\n      @click=\"hide\"\r\n     "
  },
  {
    "path": "components/m-goods-list/README.md",
    "chars": 527,
    "preview": "## 商品列表展示\n\n### OBJECT 参数说明\n\n| 属性        | 说明                                                       | 类型    | 必填 |\n| ----"
  },
  {
    "path": "components/m-goods-list/base-list.vue",
    "chars": 6775,
    "preview": "<template>\n  <div>\n    <!-- 一行两列商品展示 -->\n    <view class=\"goods-list\" v-if=\"type == 'twoColumns'\">\n      <view v-for=\"(i"
  },
  {
    "path": "components/m-goods-list/common.vue",
    "chars": 1522,
    "preview": "<template>\n</template>\n\n<script>\n\texport default {\n\t\tmethods: {\n\t\t\t// 高亮显示搜索内容\t\n\t\t\tlightSearchStr(keyword, str) {\n\t\t\t\tif"
  },
  {
    "path": "components/m-goods-list/list.vue",
    "chars": 8567,
    "preview": "<template>\n\t<view>\n\t\t<!-- 一行两列商品展示 -->\n\t\t<view class=\"goods-list\" v-if=\"type == 'twoColumns'\">\n\t\t\t<view v-for=\"(item, in"
  },
  {
    "path": "components/m-goods-list/promotion.vue",
    "chars": 3607,
    "preview": "<template>\r\n\t<div>\r\n\t\t<div v-for=\"(item, index) in res\" :key=\"index\" class=\"goods-row\" @click=\"navigateToDetailPage(item"
  },
  {
    "path": "components/m-goods-recommend/README.md",
    "chars": 187,
    "preview": "## 商品推荐 \n\n\n### OBJECT 参数说明\n属性|说明|类型|必填\n---|---|---|---\n`title`|标题,用于顶部显示的内容|String|否\n`pageSize`|显示多少条数据,建议是2的倍数,默认为12条|*"
  },
  {
    "path": "components/m-goods-recommend/index.vue",
    "chars": 2554,
    "preview": "<template>\n  <div>\n    <div class=\"goods-recommend\">{{title ? `--${title}-- `:''}}</div>\n\t\t <goodsTemplate :res='goodsLi"
  },
  {
    "path": "components/m-placard/index.vue",
    "chars": 5539,
    "preview": "<template>\n\t<div class=\"index\">\n\t\t<view v-model=\"show\" class=\"slot-content\">\n\t\t\t<image @click=\"downLoad()\" class=\"img\" :"
  },
  {
    "path": "components/m-search-revision/m-search-revision.vue",
    "chars": 5760,
    "preview": "<template>\r\n  <view class=\"serach\">\r\n    <view class=\"left-box\" @tap=\"onClickLeft\">\r\n      <u-icon name=\"arrow-left\" siz"
  },
  {
    "path": "components/m-share/index.vue",
    "chars": 4385,
    "preview": "<template>\n  <!-- 遮罩层 -->\n  <u-popup @close=\"close\" v-model=\"show\" mode=\"bottom\" border-radius=\"30\" height=\"260rpx\">\n\n  "
  },
  {
    "path": "components/m-share/mp-share.scss",
    "chars": 148,
    "preview": ".share-btn {\n    background: none;\n    font-size: 24rpx;\n    color: #666;\n    display: flex;\n    flex-direction: column;"
  },
  {
    "path": "components/m-take-down-sale-goods/index.vue",
    "chars": 701,
    "preview": "<template>\n  <div>\n    <u-popup v-model=\"show\" mode=\"bottom\" height=\"800rpx\" border-radius=\"14\">\n      <div class=\"wrapp"
  },
  {
    "path": "components/popups/popups.vue",
    "chars": 8555,
    "preview": "<template>\r\n  <view class=\"shadow\" :class=\"!show?'':'shadow-show'\" :style=\"{backgroundColor:show?maskBg:'rgba(0,0,0,0)'}"
  },
  {
    "path": "components/uni-load-more/uni-load-more.vue",
    "chars": 3445,
    "preview": "<template>\n\t<view class=\"uni-load-more\">\n\t\t<view class=\"uni-load-more__img\" v-show=\"status === 'loading' && showIcon\">\n\t"
  },
  {
    "path": "components/uni-number-box.vue",
    "chars": 4849,
    "preview": "<template>\n\t<view class=\"uni-numbox\">\n\t\t<view @click=\"_calcValue('minus')\" class=\"uni-numbox__minus uni-numbox-btns\" :st"
  },
  {
    "path": "components/uniMap.vue",
    "chars": 2589,
    "preview": "<template></template>\n<script>\nimport { getAddressCode } from \"@/api/address\";\nimport config from '@/config/config'\nexpo"
  },
  {
    "path": "components/verification/animation.css",
    "chars": 2537,
    "preview": "/* \n  Animation 微动画  \n  基于ColorUI组建库的动画模块 by 文晓港 2019年3月26日19:52:28\n */\n\n/* css 滤镜 控制黑白底色gif的 */\n.gif-black{  \n  mix-ble"
  },
  {
    "path": "components/verification/icon.css",
    "chars": 71351,
    "preview": "@keyframes cuIcon-spin {\n\t0% {\n\t\t-webkit-transform: rotate(0);\n\t\ttransform: rotate(0);\n\t}\n\n\t100% {\n\t\t-webkit-transform: "
  },
  {
    "path": "components/verification/verification.vue",
    "chars": 10921,
    "preview": "<template>\r\n  <view>\r\n    <view\r\n      v-if=\"!hid\"\r\n      class=\"flex-row-center\"\r\n      :style=\"{ top: scHight }\"\r\n    "
  },
  {
    "path": "components/verify-code/verify-code.vue",
    "chars": 5921,
    "preview": "<template>\r\n\t<view class=\"xt__verify-code\">\r\n\t\t<!-- 输入框 -->\r\n\t\t<input\r\n\t\t\tid=\"xt__input\"\r\n\t\t\t:value=\"code\"\r\n\t\t\tclass=\"xt"
  },
  {
    "path": "config/api.js",
    "chars": 808,
    "preview": "/**\r\n * base    : 基础业务API\r\n * buyer   : 买家API\r\n */\r\n// 开发环境\r\nconst dev = {\r\n  im: \"https://im-api.pickmall.cn\",\r\n  commo"
  },
  {
    "path": "config/config.js",
    "chars": 1363,
    "preview": "const name = \"lilishop\"; //全局商城name\nconst schemeName = \"lilishop\"; //唤醒app需要的schemeName\nexport default {\n  name: name,\n "
  },
  {
    "path": "hybrid/html/advertise/advertise.html",
    "chars": 3415,
    "preview": "<!DOCTYPE html>\r\n<html>\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initi"
  },
  {
    "path": "hybrid/html/css/advertise.css",
    "chars": 2633,
    "preview": "* {\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n}\r\n\r\nhtml,\r\nbody {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.content {\r\n\twidth: 100%;\r\n\theig"
  },
  {
    "path": "hybrid/html/error.html",
    "chars": 1998,
    "preview": "<!DOCTYPE html>\r\n<html>\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initi"
  },
  {
    "path": "hybrid/html/js/webView.js",
    "chars": 4649,
    "preview": "!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define"
  },
  {
    "path": "js_sdk/amap-wx.130.js",
    "chars": 11463,
    "preview": "function AMapWX(a){this.key=a.key;this.requestConfig={key:a.key,s:\"rsx\",platform:\"WXJS\",appname:a.key,sdkversion:\"1.2.0\""
  },
  {
    "path": "js_sdk/h5-copy/h5-copy.js",
    "chars": 874,
    "preview": "export  function h5Copy(content) {\r\n  \r\n  if (!document.queryCommandSupported('copy')) {\r\n    // 不支持\r\n    return false\r\n"
  },
  {
    "path": "js_sdk/lili-pay/wx-pay.js",
    "chars": 2433,
    "preview": "/**\n * 微信小程序支付\n * 此处针对于微信小程序开发的支付插件\n * 第一次支付成功后会跳出订阅的消息 如果用户拒绝或同意都会跳转到支付成功页面\n * 如果点击订阅 会将状态写进缓存 之后不再提醒。\n * \n * @param {s"
  },
  {
    "path": "js_sdk/t-jwt/jwt.js",
    "chars": 3001,
    "preview": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar b64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef"
  },
  {
    "path": "js_sdk/u-draw-poster/draw-poster.d.ts",
    "chars": 1753,
    "preview": "import { Canvas, DrawPosterCanvasCtx, CreateImagePathOptions, DrawPosterBuildOpts, DrawPosterUseOpts, drawPosterExtends,"
  },
  {
    "path": "js_sdk/u-draw-poster/draw-poster.js",
    "chars": 8389,
    "preview": "import uni from \"./utils/global\";\r\nimport { handleBuildOpts, extendMount } from \"./utils/utils\";\r\nimport { getCanvas2dCo"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/create-from-list/index.d.ts",
    "chars": 419,
    "preview": "import { DrawPosterUseOpts } from '../../utils/interface';\r\nexport interface CreateLayerOpts {\r\n    background?: string;"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/create-from-list/index.js",
    "chars": 5613,
    "preview": "/** 绘制表单扩展方法 */\r\nexport default {\r\n    name: 'createLayer',\r\n    init: (dp) => {\r\n        dp.from = {\r\n            heigh"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/create-gcanvas/index.d.ts",
    "chars": 158,
    "preview": "import { DrawPosterUseOpts } from '../../utils/interface';\r\nexport * from './gcanvas';\r\ndeclare const _default: DrawPost"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/create-gcanvas/index.js",
    "chars": 231,
    "preview": "import { WeexBridge, enable, Image } from './gcanvas';\r\nexport * from './gcanvas';\r\nimport DrawPoster from \"../../draw-p"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/draw-image-fit.d.ts",
    "chars": 440,
    "preview": "import { DrawPosterUseCtxOpts } from '../../utils/interface';\r\nimport { ObjectFit, ObjectPosition, Size } from \"../../ut"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/draw-image-fit.js",
    "chars": 1501,
    "preview": "import { calculateConcreteRect } from \"../../utils/object-sizing\";\r\nimport uni from \"../../utils/global\";\r\nexport defaul"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/draw-image.d.ts",
    "chars": 155,
    "preview": "import { DrawPosterUseCtxOpts } from '../../utils/interface';\r\ndeclare const _default: DrawPosterUseCtxOpts;\r\n/** 等待绘制图片"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/draw-image.js",
    "chars": 1447,
    "preview": "import { downloadImgUrl } from '../../utils/wx-utils';\r\n/** 等待绘制图片原型方法 */\r\nexport default {\r\n    name: 'drawImage',\r\n   "
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/draw-round-image.d.ts",
    "chars": 155,
    "preview": "import { DrawPosterUseCtxOpts } from '../../utils/interface';\r\ndeclare const _default: DrawPosterUseCtxOpts;\r\n/** 绘制圆角图片"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/draw-round-image.js",
    "chars": 491,
    "preview": "/** 绘制圆角图片原型方法 */\r\nexport default {\r\n    name: 'drawRoundImage',\r\n    handle: async (canvas, ctx, url, x, y, w, h, r = 1"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/fill-round-rect.d.ts",
    "chars": 155,
    "preview": "import { DrawPosterUseCtxOpts } from '../../utils/interface';\r\ndeclare const _default: DrawPosterUseCtxOpts;\r\n/** 绘制填充圆角"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/fill-round-rect.js",
    "chars": 168,
    "preview": "/** 绘制填充圆角矩形方法 */\r\nexport default {\r\n    name: 'fillRoundRect',\r\n    handle: (canvas, ctx, x, y, w, h, r) => {\r\n        "
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/fill-warp-text.d.ts",
    "chars": 155,
    "preview": "import { DrawPosterUseCtxOpts } from '../../utils/interface';\r\ndeclare const _default: DrawPosterUseCtxOpts;\r\n/** 绘制换行字体"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/fill-warp-text.js",
    "chars": 2646,
    "preview": "/** 绘制换行字体原型方法 */\r\nexport default {\r\n    name: 'fillWarpText',\r\n    handle: (canvas, ctx, config) => {\r\n        const ne"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/index.d.ts",
    "chars": 425,
    "preview": "export { default as drawImage } from \"./draw-image\";\r\nexport { default as roundRect } from \"./round-rect\";\r\nexport { def"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/index.js",
    "chars": 612,
    "preview": "/*\r\n * @Author: Mr.Mao\r\n * @LastEditors: Mr.Mao\r\n * @Date: 2020-11-11 20:43:33\r\n * @LastEditTime: 2021-01-02 00:16:59\r\n "
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/round-rect.d.ts",
    "chars": 155,
    "preview": "import { DrawPosterUseCtxOpts } from '../../utils/interface';\r\ndeclare const _default: DrawPosterUseCtxOpts;\r\n/** 绘制圆角矩形"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/round-rect.js",
    "chars": 1252,
    "preview": "/** 绘制圆角矩形原型方法 */\r\nexport default {\r\n    name: 'roundRect',\r\n    handle: (canvas, ctx, x, y, w, h, r = 15, fill = false,"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/stroke-round-rect.d.ts",
    "chars": 155,
    "preview": "import { DrawPosterUseCtxOpts } from '../../utils/interface';\r\ndeclare const _default: DrawPosterUseCtxOpts;\r\n/** 绘制填充圆角"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-function/stroke-round-rect.js",
    "chars": 177,
    "preview": "/** 绘制填充圆角矩形方法 */\r\nexport default {\r\n    name: 'strokeRoundRect',\r\n    handle: (canvas, ctx, x, y, w, h, r) => {\r\n      "
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-painter/index.d.ts",
    "chars": 2851,
    "preview": "import { DrawPosterUseOpts } from '../../utils/interface';\r\nimport { ImageFitOption } from '../draw-function/draw-image-"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-painter/index.js",
    "chars": 3196,
    "preview": "export default {\r\n    name: 'painter',\r\n    handle: (dp, option) => {\r\n        dp.canvas.width = option.width;\r\n        "
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-qr-code/index.d.ts",
    "chars": 123,
    "preview": "declare const _default: {\r\n    name: string;\r\n    handle: any;\r\n    errorCorrectLevel: any;\r\n};\r\nexport default _default"
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-qr-code/index.js",
    "chars": 172,
    "preview": "import uQRCode from \"./uQRCode\";\r\nexport default {\r\n    name: \"drawQrCode\",\r\n    handle: uQRCode.make.bind(uQRCode),\r\n  "
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-qr-code/uQRCode.d.ts",
    "chars": 238,
    "preview": "/*\r\n * @Author: Mr.Mao\r\n * @LastEditors: Mr.Mao\r\n * @Date: 2021-01-02 13:30:58\r\n * @LastEditTime: 2021-01-02 13:31:27\r\n "
  },
  {
    "path": "js_sdk/u-draw-poster/extends/draw-qr-code/uQRCode.js",
    "chars": 34674,
    "preview": "/*\r\n * @Author: Mr.Mao\r\n * @LastEditors: Mr.Mao\r\n * @Date: 2021-01-02 13:30:58\r\n * @LastEditTime: 2021-01-02 13:30:58\r\n "
  },
  {
    "path": "js_sdk/u-draw-poster/index.d.ts",
    "chars": 718,
    "preview": "import { DrawPosterBuildOpts } from \"./utils/interface\";\r\nimport DrawPoster from \"./draw-poster\";\r\nimport drawQrCode fro"
  },
  {
    "path": "js_sdk/u-draw-poster/index.js",
    "chars": 917,
    "preview": "import * as dfucs from \"./extends/draw-function/index\";\r\nimport DrawPoster from \"./draw-poster\";\r\nimport drawQrCode from"
  },
  {
    "path": "js_sdk/u-draw-poster/package.json",
    "chars": 273,
    "preview": "{\n    \"id\": \"u-draw-poster\",\n    \"name\": \"u-draw-poster uniVue2|3适用 海报绘制工具\",\n    \"version\": \"1.1.5\",\n    \"description\": "
  },
  {
    "path": "js_sdk/u-draw-poster/utils/global.d.ts",
    "chars": 417,
    "preview": "/// <reference types=\"@dcloudio/types\" />\r\n/** 当前环境类型 */\r\nexport declare type UniPlatforms = 'app-plus' | 'app-plus-nvue"
  },
  {
    "path": "js_sdk/u-draw-poster/utils/global.js",
    "chars": 406,
    "preview": "var _a;\r\nexport const PLATFORM = typeof process !== 'undefined' ? (_a = process === null || process === void 0 ? void 0 "
  },
  {
    "path": "js_sdk/u-draw-poster/utils/interface.d.ts",
    "chars": 5637,
    "preview": "/// <reference types=\"@dcloudio/types\" />\r\nimport DrawPoster from \"../draw-poster\";\r\nimport { ImageFitOption } from '../"
  },
  {
    "path": "js_sdk/u-draw-poster/utils/interface.js",
    "chars": 12,
    "preview": "export {};\r\n"
  },
  {
    "path": "js_sdk/u-draw-poster/utils/object-sizing.d.ts",
    "chars": 1017,
    "preview": "export declare type ObjectFit = \"contain\" | \"cover\";\r\nexport declare type ObjectPosition = [\"left\" | \"center\" | \"right\","
  },
  {
    "path": "js_sdk/u-draw-poster/utils/object-sizing.js",
    "chars": 3716,
    "preview": "/**\r\n * 用于计算图片的宽高比例\r\n * @see https://drafts.csswg.org/css-images-3/#sizing-terms\r\n *\r\n * ## 名词解释\r\n * ### intrinsic dimen"
  },
  {
    "path": "js_sdk/u-draw-poster/utils/utils.d.ts",
    "chars": 785,
    "preview": "import { DrawPosterBuildOpts } from \"./interface\";\r\n/** 是否是base64本地地址 */\r\nexport declare const isBaseUrl: (str: string) "
  },
  {
    "path": "js_sdk/u-draw-poster/utils/utils.js",
    "chars": 1758,
    "preview": "import { PLATFORM } from \"./global\";\r\n/** 是否是base64本地地址 */\r\nexport const isBaseUrl = (str) => {\r\n    return /^\\s*data:(?"
  },
  {
    "path": "js_sdk/u-draw-poster/utils/wx-utils.d.ts",
    "chars": 218,
    "preview": "import { Canvas } from \"./interface\";\r\nexport declare const downloadImgUrl: (url: string) => Promise<string>;\r\nexport de"
  },
  {
    "path": "js_sdk/u-draw-poster/utils/wx-utils.js",
    "chars": 1192,
    "preview": "/*\r\n * @Author: Mr.Mao\r\n * @LastEditors: Mr.Mao\r\n * @Date: 2020-10-12 08:49:27\r\n * @LastEditTime: 2020-12-09 13:54:10\r\n "
  },
  {
    "path": "js_sdk/wa-permission/permission.js",
    "chars": 8319,
    "preview": "/**\r\n * 本模块封装了Android、iOS的应用权限判断、打开应用权限设置界面、以及位置系统服务是否开启\r\n * https://ext.dcloud.net.cn/plugin?id=594\r\n */\r\n\r\nvar isIos\r\n"
  },
  {
    "path": "lib/request/adapters/index.js",
    "chars": 2171,
    "preview": "import buildURL from '../helpers/buildURL'\nimport buildFullPath from '../core/buildFullPath'\nimport settle from '../core"
  },
  {
    "path": "lib/request/core/InterceptorManager.js",
    "chars": 1174,
    "preview": "'use strict'\n\n\nfunction InterceptorManager() {\n  this.handlers = []\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @"
  },
  {
    "path": "lib/request/core/Request.js",
    "chars": 4719,
    "preview": "/**\n * @Class Request\n * @description luch-request http请求插件\n * @version 3.0.2\n * @Author lu-ch\n * @Date 2020-06-04\n * @E"
  },
  {
    "path": "lib/request/core/buildFullPath.js",
    "chars": 681,
    "preview": "'use strict'\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL'\nimport combineURLs from '../helpers/combineURLs'\n\n/**"
  },
  {
    "path": "lib/request/core/defaults.js",
    "chars": 458,
    "preview": "/**\n * 默认的全局配置\n */\n\n\nexport default {\n  baseURL: '',\n  header: {},\n  method: 'GET',\n  dataType: 'json',\n  // #ifndef MP-"
  },
  {
    "path": "lib/request/core/dispatchRequest.js",
    "chars": 136,
    "preview": "import adapter from '../adapters/index'\n\n\nexport default (config) => {\n  config.header = config.header || {}\n  return ad"
  },
  {
    "path": "lib/request/core/mergeConfig.js",
    "chars": 2574,
    "preview": "import {deepMerge, isObject} from '../utils'\n\n/**\n * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局\n * @param {Array} keys - 配置"
  },
  {
    "path": "lib/request/core/settle.js",
    "chars": 518,
    "preview": "/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves th"
  },
  {
    "path": "lib/request/helpers/buildURL.js",
    "chars": 1550,
    "preview": "'use strict'\n\nimport * as utils from './../utils'\n\nfunction encode(val) {\n  return encodeURIComponent(val).\n    replace("
  },
  {
    "path": "lib/request/helpers/combineURLs.js",
    "chars": 375,
    "preview": "'use strict'\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @pa"
  },
  {
    "path": "lib/request/helpers/isAbsoluteURL.js",
    "chars": 556,
    "preview": "'use strict'\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @retu"
  },
  {
    "path": "lib/request/index.js",
    "chars": 60,
    "preview": "import Request from './core/Request'\nexport default Request\n"
  },
  {
    "path": "lib/request/utils.js",
    "chars": 3218,
    "preview": "'use strict'\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.t"
  },
  {
    "path": "main.js",
    "chars": 1264,
    "preview": "import Vue from \"vue\";\r\nimport App from \"./App\";\r\nimport * as filters from \"./utils/filters.js\"; // global filter\r\nimpor"
  },
  {
    "path": "manifest.json",
    "chars": 10109,
    "preview": "{\n    \"name\" : \"lilishop\",\n    \"appid\" : \"__UNI__ED807EA\",\n    \"description\" : \"\",\n    \"versionName\" : \"4.5.3\",\n    \"ver"
  },
  {
    "path": "pages/cart/coupon/couponCenter.vue",
    "chars": 6749,
    "preview": "<template>\r\n\t<view class=\"coupon-center\">\r\n\t\t<div class=\"swiper-box\">\r\n\t\t\t<div class=\"swiper-item\">\r\n\t\t\t\t<div class=\"scr"
  },
  {
    "path": "pages/cart/coupon/couponDetail.vue",
    "chars": 3030,
    "preview": "<template>\n  <view class=\"content\">\n    <view class=\"body\">\n      <view class=\"top-view\">\n        <view class=\"title\">{{"
  },
  {
    "path": "pages/cart/coupon/index.vue",
    "chars": 6470,
    "preview": "<template>\n  <div class=\"wrapper\">\n    <u-tabs\n      :list=\"list\"\n      :is-scroll=\"false\"\n      :active-color=\"lightCol"
  },
  {
    "path": "pages/cart/coupon/myCoupon.vue",
    "chars": 11582,
    "preview": "<template>\r\n  <view class=\"b-content\">\r\n    <view class=\"navbar\">\r\n      <!-- 循环出头部tab栏 -->\r\n      <view\r\n        v-for="
  },
  {
    "path": "pages/cart/payment/error.vue",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "pages/cart/payment/payOrder.vue",
    "chars": 12382,
    "preview": "<template>\r\n  <div class=\"wrapper\">\r\n    <div class=\"box\">\r\n      <div class=\"block block-1\">\r\n        <image class=\"img"
  },
  {
    "path": "pages/cart/payment/shareOrderGoods.vue",
    "chars": 8391,
    "preview": "<template>\n  <view class=\"wrapper\" v-if=\"flag\">\n    <div class='goods' v-if=\"selectedGoods\">\n      <image class=\"goods-i"
  },
  {
    "path": "pages/cart/payment/success.vue",
    "chars": 3443,
    "preview": "<template>\r\n  <div class=\"wrapper\">\r\n    <div class=\"pay-wrapper\">\r\n      <div class=\"pay-money\">\r\n        ¥{{ Number(pa"
  },
  {
    "path": "pages/floor/empty.vue",
    "chars": 345,
    "preview": "<template>\n\t<default-page v-if=\"type\" :type=\"type\" title=\"您的设备已断网\" :isBtn=\"false\" />\n</template>\n\n<script>\n\timport defau"
  },
  {
    "path": "pages/mine/address/add.vue",
    "chars": 9514,
    "preview": "<template>\r\n  <view class=\"add-address\">\r\n    <div class=\"uForm\">\r\n      <u-form :border-bottom=\"false\" :model=\"form\" re"
  },
  {
    "path": "pages/mine/address/address.scss",
    "chars": 2674,
    "preview": ".empty {\n    margin-top: 200rpx !important;\n  }\n  .alifont {\n    display: inline-block;\n  }\n  \n  .region {\n    span {\n  "
  },
  {
    "path": "pages/mine/address/address.vue",
    "chars": 4893,
    "preview": "<template>\r\n  <view class=\"address\">\r\n\r\n    <u-empty class=\"empty\" v-if=\"addressList.length == 0\" text=\"暂无收货地址\" mode=\"ad"
  },
  {
    "path": "pages/mine/address/addressManage.vue",
    "chars": 4351,
    "preview": "<template>\n  <view class=\"address\">\n    <u-empty class=\"empty\" v-if=\"this.addressList.length === 0\" text=\"暂无收货地址\" mode=\""
  },
  {
    "path": "pages/mine/address/storeAddress.vue",
    "chars": 2104,
    "preview": "<template>\n  <view class=\"address\">\n\n    <u-empty class=\"empty\" v-if=\"storeAddressList.length == 0\" text=\"暂无自提地址\" mode=\""
  },
  {
    "path": "pages/mine/deposit/index.vue",
    "chars": 5213,
    "preview": "<template>\r\n  <view class=\"wap\">\r\n    <u-navbar  title=\"预存款列表\">\r\n    </u-navbar>\r\n    <view class=\"wrapper-show-money\">\r"
  },
  {
    "path": "pages/mine/deposit/info.vue",
    "chars": 564,
    "preview": "<template>\n  <view class=\"wrapper\">\n    <u-cell-group>\n      <u-cell-item title=\"申请单号\"></u-cell-item>\n      <u-cell-item"
  },
  {
    "path": "pages/mine/deposit/operation.vue",
    "chars": 2209,
    "preview": "<template>\n  <div class=\"wrapper\">\n    <u-navbar :custom-back=\"back\" title=\"余额\"></u-navbar>\n    <div class=\"box\">\n      "
  },
  {
    "path": "pages/mine/deposit/recharge.vue",
    "chars": 1077,
    "preview": "\n<template>\n  <view>\n    <view class=\"-list\">\n      <view class=\"title\">充值金额</view>\n      <view class=\"content\">\n       "
  },
  {
    "path": "pages/mine/deposit/style.scss",
    "chars": 726,
    "preview": "/deep/ .u-input__input,\n.u-input {\n  font-size: 80rpx !important;\n  height: 102rpx !important;\n}\n/deep/ .u-input__input "
  },
  {
    "path": "pages/mine/deposit/withdrawal.vue",
    "chars": 2898,
    "preview": "<template>\n  <view>\n    <view class=\"-list\">\n      <view class=\"title\">提现类型</view>\n      <view class=\"content\">\n        "
  },
  {
    "path": "pages/mine/distribution/achievement.vue",
    "chars": 107,
    "preview": "<template>\n    \n</template>\n<script>\nexport default {\n    \n}\n</script>\n<style lang=\"scss\" scoped>\n\n</style>"
  },
  {
    "path": "pages/mine/distribution/auth.vue",
    "chars": 5435,
    "preview": "<template>\n  <view class=\"wrapper\">\n    <view>\n      <h4>实名认证(请上传真实的个人信息,认证通过后将无法修改)</h4>\n      <view>\n        <u-form :"
  },
  {
    "path": "pages/mine/distribution/history.vue",
    "chars": 4155,
    "preview": "<template>\n  <view class=\"log-list\">\n    <!-- 提现记录 -->\n    <view class=\"log-way\" v-if=\"cashLogData.length != 0\" v-for=\"("
  },
  {
    "path": "pages/mine/distribution/home.vue",
    "chars": 2900,
    "preview": "<template>\r\n  <view>\r\n\t\r\n    <view class=\"nav-list\">\r\n      <view class=\"total\">可提现金额</view>\r\n      <view class=\"price\">"
  },
  {
    "path": "pages/mine/distribution/join.vue",
    "chars": 2197,
    "preview": "<template>\r\n  <view class=\"wrapper\">\r\n    <u-tabs\r\n      :list=\"list\"\r\n      :is-scroll=\"false\"\r\n      :current=\"current"
  },
  {
    "path": "pages/mine/distribution/list.vue",
    "chars": 12002,
    "preview": "<template>\n  <view class=\"wrapper\">\n    <!-- 筛选弹出层 TODO后续版本更新 -->\n    <!-- <u-popup width=\"90%\" v-model=\"popup\" mode=\"ri"
  },
  {
    "path": "pages/mine/distribution/withdrawal.vue",
    "chars": 2609,
    "preview": "<template>\n  <view>\n    <view class=\"withdrawal-list\">\n      <view class=\"title\">提现金额</view>\n      <view class=\"content\""
  },
  {
    "path": "pages/mine/help/tips.vue",
    "chars": 1291,
    "preview": "<template>\n  <div class=\"wrapper\">\n    <u-parse :show-with-animation=\"true\" :lazy-load=\"true\" :selectable=\"true\" :html=\""
  },
  {
    "path": "pages/mine/im/index-app.scss",
    "chars": 145950,
    "preview": ".status_bar {\n  height: var(--status-bar-height);\n  background-color: #f1f1f1;\n  width: 100%;\n\n}\n\n.status_bar-nobg {\n  h"
  },
  {
    "path": "pages/mine/im/index.vue",
    "chars": 24744,
    "preview": "<template>\n  <view class=\"wrapper\">\n    <u-navbar class=\"my-title\" title-size=\"32\" :title=\"toUser.name\"></u-navbar>\n    "
  },
  {
    "path": "pages/mine/im/list.vue",
    "chars": 5567,
    "preview": "<template>\n  <view class=\"content\">\n    <u-navbar class=\"my-title\" title-size=\"32\" :title=\"'消息(' + talkList.length + ')'"
  },
  {
    "path": "pages/mine/im/socket.js",
    "chars": 4463,
    "preview": "import config from '@/config/config.js'\nimport storage from '@/utils/storage';\nclass socketIO {\n  constructor(data, time"
  },
  {
    "path": "pages/mine/msgTips/main.vue",
    "chars": 3546,
    "preview": "<template>\n\t<view class=\"container\">\n\t\t<view class=\"list-cell b-b m-t\" hover-class=\"cell-hover\" :hover-stay-time=\"50\">\n\t"
  },
  {
    "path": "pages/mine/msgTips/packageMsg/index.vue",
    "chars": 2586,
    "preview": "<template>\n  <view class=\"container \" style=\"font-size: 13px;\">\n\t <block v-for=\"(row, index) in messageList\" :key=\"index"
  },
  {
    "path": "pages/mine/msgTips/packageMsg/logisticsDetail.vue",
    "chars": 2289,
    "preview": "<template>\n  <view class=\"logistics-detail\">\n    <view class=\"card\">\n      <view class=\"card-title\">\n        <span>{{ lo"
  },
  {
    "path": "pages/mine/msgTips/serviceMsg/index.vue",
    "chars": 2691,
    "preview": "<template>\n  <view class=\"container\">\n    <view class=\"list-cell b-b m-t\" hover-class=\"cell-hover\" :hover-stay-time=\"50\""
  },
  {
    "path": "pages/mine/msgTips/sysMsg/index.vue",
    "chars": 2331,
    "preview": "<template>\n  <view class=\"container\">\n    <block v-for=\"(row, index) in messageList\" :key=\"index\">\n      <view class=\"ms"
  },
  {
    "path": "pages/mine/myCollect.vue",
    "chars": 9946,
    "preview": "<template>\r\n\t<view class=\"content\">\r\n\t\t<u-navbar>\r\n\t\t\t<u-tabs :active-color=\"lightColor\"  class=\"slot-wrap\" :list=\"navLi"
  },
  {
    "path": "pages/mine/myTracks.vue",
    "chars": 6503,
    "preview": "<template>\r\n\t<view class=\"myTracks\">\r\n\t\t<u-navbar title=\"我的足迹\">\r\n\t\t\t<div slot=\"right\">\r\n        <div class=\"light-color "
  },
  {
    "path": "pages/mine/point/myPoint.vue",
    "chars": 4989,
    "preview": "<template>\r\n  <view class=\"content\">\r\n    <view class=\"portrait-box\">\r\n      <image src=\"/static/pointTrade/point_bg_1.p"
  },
  {
    "path": "pages/mine/set/editionIntro.vue",
    "chars": 4532,
    "preview": "\n<template>\n  <view class=\"edition-intro\">\n    <image :src=\"config.logo\" class=\"logo\" />\n    <h1> {{config.name}}</h1>\n "
  },
  {
    "path": "pages/mine/set/feedBack.vue",
    "chars": 3887,
    "preview": "<template>\n  <div class=\"feedBack\">\n    <div class=\"feedBack-box\">\n      <h4>猜你想问</h4>\n      <div class=\"feedBack-item\" "
  },
  {
    "path": "pages/mine/set/personMsg.vue",
    "chars": 6192,
    "preview": "<template>\n  <view class=\"person-msg\">\n    <view class=\"head c-content\" @click=\"changeFace\">\n      <image :src=\"form.fac"
  },
  {
    "path": "pages/mine/set/securityCenter/bindMobile.vue",
    "chars": 4550,
    "preview": "<template>\n\t<view class=\"box\">\n\t\t<view class=\"box-tips\">\n\t\t\t<h2 class='h2'>\n\t\t\t\t绑定手机号码\n\t\t\t</h2>\n\t\t\t<view class=\"verifica"
  },
  {
    "path": "pages/mine/set/securityCenter/editLoginPassword.vue",
    "chars": 3060,
    "preview": "<template>\n\t<view class=\"box\">\n\t\t<view class=\"box-tips\">\n\t\t\t<h2 class='h2'>\n\t\t\t\t{{verificationTitle.title}}\n\t\t\t</h2>\n\t\t\t"
  },
  {
    "path": "pages/mine/set/securityCenter/editPassword.vue",
    "chars": 6219,
    "preview": "<template>\r\n\t<view class=\"box\">\r\n\t\t<view class=\"box-tips\">\r\n\t\t\t<h2 class='h2'>\r\n\t\t\t\t{{verificationTitle[validateFlage==f"
  },
  {
    "path": "pages/mine/set/securityCenter/faceLogin.vue",
    "chars": 2252,
    "preview": "// TODO 第一版本暂无此功能 后续优化以及更新\n<template>\n  <view class=\"face-login\">\n    <u-cell-group>\n      <u-cell-item class=\"border-to"
  },
  {
    "path": "pages/mine/set/securityCenter/fingerLogin.vue",
    "chars": 1833,
    "preview": "// TODO 第一版本暂无此功能 后续优化以及更新\n<template>\n  <view class=\"finger\">\n    <u-cell-group>\n      <u-cell-item class=\"border-top\" :"
  },
  {
    "path": "pages/mine/set/securityCenter/securityCenter.vue",
    "chars": 1339,
    "preview": "<template>\n  <view class=\"securityCenter\">\n    <u-cell-group>\n      <u-cell-item title=\"修改密码\" @click=\"navigateTo('/pages"
  },
  {
    "path": "pages/mine/set/securityCenter/updatePwdTab.vue",
    "chars": 637,
    "preview": "<template>\n  <view class=\"securityCenter\">\n    <u-cell-group>\n      <u-cell-item title=\"验证密码\" @click=\"navigateTo('/pages"
  },
  {
    "path": "pages/mine/set/setUp.vue",
    "chars": 5547,
    "preview": "<template>\r\n  <view class=\"container\">\r\n    <view class=\"person\" @click=\"checkUserInfo()\">\r\n      <u-image width=140 hei"
  },
  {
    "path": "pages/mine/set/versionFunctionList.vue",
    "chars": 1202,
    "preview": "<template>\n  <div>\n    <u-collapse v-if=\"versionData.length !=0\">\n      <u-collapse-item class=\"version-item\" :title=\"it"
  },
  {
    "path": "pages/mine/signIn.vue",
    "chars": 12720,
    "preview": "<template>\r\n  <view class=\"sign-in\">\r\n    <view class=\"date-card\">\r\n      <div class=\"box\">\r\n        <div class=\"circle-"
  },
  {
    "path": "pages/navigation/search/search.scss",
    "chars": 7209,
    "preview": ".sort-active {\n  border: 1px solid $light-color;\n  color: $light-color;\n  background: $price-light-color !important;\n}\n\n"
  },
  {
    "path": "pages/navigation/search/searchPage.vue",
    "chars": 19659,
    "preview": "<template>\n\t<view class=\"content\">\n\t\t<u-navbar :background=\"navObj\" :is-back=\"false\">\n\t\t\t<mSearch\n\t\t\t\tref=\"mSearch\"\n\t\t\t\t"
  },
  {
    "path": "pages/order/afterSales/afterSales.vue",
    "chars": 14463,
    "preview": "<template>\n  <view class=\"content\">\n    <view class=\"u-tabs-box\">\n      <u-tabs\n        bg-color=\"#fff\"\n        :list=\"l"
  },
  {
    "path": "pages/order/afterSales/afterSalesDetail.vue",
    "chars": 12985,
    "preview": "<template>\n  <view class=\"content\">\n    <u-form :model=\"form\" ref=\"uForm\">\n      <view class=\"after-sales-goods-detail-v"
  },
  {
    "path": "pages/order/afterSales/afterSalesDetailExpress.vue",
    "chars": 7228,
    "preview": "<template>\n  <view class=\"mp-iphonex-bottom content\">\n    <u-form :model=\"form\" ref=\"uForm\">\n      <view class=\"after-sa"
  },
  {
    "path": "pages/order/afterSales/afterSalesSelect.vue",
    "chars": 4890,
    "preview": "<template>\n  <view>\n    <view class=\"after-sales-goods-detail-view\">\n      <view class=\"header\">\n        <view>\n        "
  },
  {
    "path": "pages/order/afterSales/applyDetail.vue",
    "chars": 15655,
    "preview": "<template>\n  <view v-if=\"serviceDetail\">\n    <view class=\"after-sales-goods-detail-view\">\n      <view class=\"header\">\n  "
  },
  {
    "path": "pages/order/afterSales/applyProgress.vue",
    "chars": 3090,
    "preview": "<template>\r\n  <view>\r\n    <view class=\"info-view\">\r\n      <view class=\"header-title-view\">\r\n        <view class=\"title\">"
  },
  {
    "path": "pages/order/afterSales/applySuccess.vue",
    "chars": 1792,
    "preview": "<template>\n  <view>\n    <view class=\"header\">\n      <u-icon name='checkmark' size=\"150\" color=\"#ff6b35\"></u-icon>\n      "
  },
  {
    "path": "pages/order/complain/complain.vue",
    "chars": 6137,
    "preview": "<template>\r\n  <view>\r\n    <!-- 商品模块 -->\r\n    <view class=\"seller-view\">\r\n      <view class=\"seller-info u-flex u-row-bet"
  },
  {
    "path": "pages/order/complain/complainInfo.vue",
    "chars": 5583,
    "preview": "<template>\r\n  <view class=\"wrapper\">\r\n    <view class=\"tips\">我的投诉信息</view>\r\n    <u-cell-group>\r\n      <u-cell-item :arro"
  },
  {
    "path": "pages/order/complain/complainList.vue",
    "chars": 4716,
    "preview": "<template>\r\n  <view>\r\n    <view class=\"seller-view\" v-for=\"(item, index) in complaionData\" :key=\"index\">\r\n      <view cl"
  },
  {
    "path": "pages/order/deliverDetail.vue",
    "chars": 5126,
    "preview": "<template>\n\t<div>\n\t\t<view class=\"logistics-detail\">\n\t\t\t<view class=\"card\">\n\t\t\t\t<div v-if=\"logisticsList && logisticsList"
  },
  {
    "path": "pages/order/evaluate/evaluateDetail.vue",
    "chars": 4190,
    "preview": "<template>\n  <view>\n    <view class=\"exaluate-member-view\">\n      <view class=\"member-view\">\n        <view class=\"member"
  },
  {
    "path": "pages/order/evaluate/myEvaluate.vue",
    "chars": 9687,
    "preview": "<template>\n  <view>\n    <view class=\"wrap\">\n      <view class=\"u-tabs-box\">\n        <u-tabs :list=\"list\" :is-scroll=\"fal"
  },
  {
    "path": "pages/order/evaluate/releaseEvaluate.vue",
    "chars": 8187,
    "preview": "<template>\n  <view>\n    <!-- 遍历出评价商品 -->\n    <view>\n      <view class=\"after-sales-goods-detail-view\">\n        <view>\n  "
  },
  {
    "path": "pages/order/fillorder.vue",
    "chars": 29682,
    "preview": "<template>\r\n  <div class=\"wrapper\">\r\n    <!-- 选择地址 -->\r\n    <div\r\n      class=\"address-box\"\r\n      @click=\"clickToAddres"
  },
  {
    "path": "pages/order/goods.scss",
    "chars": 1510,
    "preview": ".goods-item-view {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tpa"
  },
  {
    "path": "pages/order/invoice/invoiceDetail.vue",
    "chars": 5034,
    "preview": "<template>\n  <view class=\"invoice-detail\">\n    <view class=\"block-item flex-center\">\n      <view>\n        <view>\n       "
  },
  {
    "path": "pages/order/invoice/setInvoice.vue",
    "chars": 5865,
    "preview": "<template>\n  <u-popup closeable border-radius=\"28\" @close=\"close\" mode=\"bottom\" height=\"80%\" v-model=\"show\">\n\n    <div c"
  },
  {
    "path": "pages/order/myOrder.vue",
    "chars": 17169,
    "preview": "<template>\r\n\t<view class=\"content\">\r\n\t\t<view class=\"navbar\">\r\n\t\t\t<view v-for=\"(item, index) in navList\" :key=\"index\" cla"
  },
  {
    "path": "pages/order/orderDetail.vue",
    "chars": 21142,
    "preview": "<template>\r\n  <view>\r\n    <!-- 订单状态 -->\r\n    <div class=\"info-view order-view\">\r\n      <div class=\"order-status\" v-if=\"o"
  },
  {
    "path": "pages/passport/article.vue",
    "chars": 945,
    "preview": "<template>\n  <!-- 此文件路径禁止移动 -->\n  <view>\n    <view class=\"container \">\n      <view class=\"u-skeleton\" v-if=\"!articleData"
  },
  {
    "path": "pages/passport/entry/seller/control.vue",
    "chars": 1096,
    "preview": "<template>\n  <div>\n    <u-navbar :border-bottom=\"false\"></u-navbar>\n    <step1 v-if=\"current == 1\" :companyData=\"company"
  },
  {
    "path": "pages/passport/entry/seller/entry.scss",
    "chars": 262,
    "preview": ".flag-title {\n    font-size: 42rpx;\n    font-weight: bold;\n}\n.submit,\n.notice {\n  font-weight: bold;\n  font-size: 28rpx;"
  }
]

// ... and 280 more files (download for full content)

About this extraction

This page contains the full source code of the lilishop/lilishop-uniapp GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 480 files (2.7 MB), approximately 732.1k tokens, and a symbol index with 722 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!