From 57b6c003daf217ffccbb9a695d421feaea682b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Fri, 15 Jul 2022 10:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 86 ++ apis/index.js | 158 ++ apis/interfaces/auth.js | 31 + apis/interfaces/gout.js | 128 ++ apis/interfaces/mall.js | 77 + apis/interfaces/uploading.js | 17 + apis/interfaces/user.js | 72 + index.html | 16 + .../junyi-h5-copy/junyi-h5-copy.js | 18 + main.js | 31 + manifest.json | 78 + node_modules/uni-read-pages/README.md | 108 ++ node_modules/uni-read-pages/index.js | 83 + node_modules/uni-read-pages/package.json | 51 + node_modules/uni-simple-router/.eslintignore | 6 + node_modules/uni-simple-router/.eslintrc.js | 257 ++++ .../.github/ISSUE_TEMPLATE/bug_report.md | 39 + .../.github/ISSUE_TEMPLATE/feature_request.md | 21 + .../uni-simple-router/CODE_OF_CONDUCT.md | 76 + node_modules/uni-simple-router/LICENSE | 21 + node_modules/uni-simple-router/README.md | 49 + node_modules/uni-simple-router/RFC.md | 38 + .../uni-simple-router/api-extractor.json | 50 + node_modules/uni-simple-router/dist/link.vue | 79 + .../dist/uni-simple-router.d.ts | 312 ++++ .../dist/uni-simple-router.js | 1 + node_modules/uni-simple-router/github.sh | 107 ++ node_modules/uni-simple-router/jest.config.js | 5 + node_modules/uni-simple-router/package.json | 62 + node_modules/uni-simple-router/progress.md | 16 + .../uni-simple-router/src/H5/buildRouter.ts | 76 + .../uni-simple-router/src/H5/proxyHook.ts | 71 + .../uni-simple-router/src/app/appPatch.ts | 75 + .../src/applets/appletPatch.ts | 18 + .../uni-simple-router/src/component/link.vue | 79 + .../uni-simple-router/src/global.d.ts | 7 + .../uni-simple-router/src/helpers/config.ts | 78 + .../src/helpers/createRouteMap.ts | 47 + .../src/helpers/lifeCycle.ts | 36 + .../uni-simple-router/src/helpers/mixins.ts | 109 ++ .../uni-simple-router/src/helpers/utils.ts | 452 ++++++ .../uni-simple-router/src/helpers/warn.ts | 37 + node_modules/uni-simple-router/src/index.ts | 11 + .../uni-simple-router/src/options/base.ts | 245 +++ .../uni-simple-router/src/options/config.ts | 57 + .../uni-simple-router/src/public/hooks.ts | 177 +++ .../uni-simple-router/src/public/methods.ts | 258 ++++ .../uni-simple-router/src/public/page.ts | 103 ++ .../uni-simple-router/src/public/query.ts | 200 +++ .../uni-simple-router/src/public/rewrite.ts | 158 ++ .../uni-simple-router/src/public/router.ts | 129 ++ .../uni-simple-router/src/public/uniOrigin.ts | 112 ++ .../test/path-to-regexp.spec.ts | 70 + .../test/query-toggle.spec.ts | 83 + node_modules/uni-simple-router/tsconfig.json | 19 + .../webpack/webpack.common.js | 41 + .../uni-simple-router/webpack/webpack.dev.js | 22 + .../uni-simple-router/webpack/webpack.prod.js | 19 + node_modules/uview-ui/LICENSE | 21 + node_modules/uview-ui/README.md | 106 ++ .../u-action-sheet/u-action-sheet.vue | 190 +++ .../components/u-alert-tips/u-alert-tips.vue | 256 ++++ .../u-avatar-cropper/u-avatar-cropper.vue | 290 ++++ .../components/u-avatar-cropper/weCropper.js | 1265 +++++++++++++++ .../uview-ui/components/u-avatar/u-avatar.vue | 244 +++ .../components/u-back-top/u-back-top.vue | 153 ++ .../uview-ui/components/u-badge/u-badge.vue | 216 +++ .../uview-ui/components/u-button/u-button.vue | 596 ++++++++ .../components/u-calendar/u-calendar.vue | 639 ++++++++ .../u-car-keyboard/u-car-keyboard.vue | 257 ++++ .../uview-ui/components/u-card/u-card.vue | 299 ++++ .../components/u-cell-group/u-cell-group.vue | 70 + .../components/u-cell-item/u-cell-item.vue | 316 ++++ .../u-checkbox-group/u-checkbox-group.vue | 123 ++ .../components/u-checkbox/u-checkbox.vue | 284 ++++ .../u-circle-progress/u-circle-progress.vue | 220 +++ .../u-line-progress/u-line-progress.vue | 147 ++ .../uview-ui/components/u-col/u-col.vue | 156 ++ .../u-collapse-item/u-collapse-item.vue | 204 +++ .../components/u-collapse/u-collapse.vue | 99 ++ .../u-column-notice/u-column-notice.vue | 237 +++ .../components/u-count-down/u-count-down.vue | 318 ++++ .../components/u-count-to/u-count-to.vue | 241 +++ .../components/u-divider/u-divider.vue | 153 ++ .../u-dropdown-item/u-dropdown-item.vue | 132 ++ .../components/u-dropdown/u-dropdown.vue | 298 ++++ .../uview-ui/components/u-empty/u-empty.vue | 193 +++ .../uview-ui/components/u-field/u-field.vue | 384 +++++ .../components/u-form-item/u-form-item.vue | 431 ++++++ .../uview-ui/components/u-form/u-form.vue | 134 ++ .../u-full-screen/u-full-screen.vue | 52 + .../uview-ui/components/u-gap/u-gap.vue | 54 + .../components/u-grid-item/u-grid-item.vue | 126 ++ .../uview-ui/components/u-grid/u-grid.vue | 108 ++ .../uview-ui/components/u-icon/u-icon.vue | 336 ++++ .../uview-ui/components/u-image/u-image.vue | 267 ++++ .../u-index-anchor/u-index-anchor.vue | 89 ++ .../components/u-index-list/u-index-list.vue | 315 ++++ .../uview-ui/components/u-input/u-input.vue | 387 +++++ .../components/u-keyboard/u-keyboard.vue | 217 +++ .../components/u-lazy-load/u-lazy-load.vue | 244 +++ .../u-line-progress/u-line-progress.vue | 147 ++ .../uview-ui/components/u-line/u-line.vue | 84 + .../uview-ui/components/u-link/u-link.vue | 89 ++ .../u-loading-page/u-loading-page.vue | 25 + .../components/u-loading/u-loading.vue | 103 ++ .../components/u-loadmore/u-loadmore.vue | 203 +++ .../uview-ui/components/u-mask/u-mask.vue | 123 ++ .../u-message-input/u-message-input.vue | 311 ++++ .../uview-ui/components/u-modal/u-modal.vue | 283 ++++ .../uview-ui/components/u-navbar/u-navbar.vue | 315 ++++ .../components/u-no-network/u-no-network.vue | 233 +++ .../components/u-notice-bar/u-notice-bar.vue | 272 ++++ .../components/u-number-box/u-number-box.vue | 363 +++++ .../u-number-keyboard/u-number-keyboard.vue | 158 ++ .../components/u-parse/libs/CssHandler.js | 100 ++ .../components/u-parse/libs/MpHtmlParser.js | 580 +++++++ .../components/u-parse/libs/config.js | 80 + .../components/u-parse/libs/handler.wxs | 22 + .../components/u-parse/libs/trees.vue | 505 ++++++ .../uview-ui/components/u-parse/u-parse.vue | 645 ++++++++ .../uview-ui/components/u-picker/u-picker.vue | 676 ++++++++ .../uview-ui/components/u-popup/u-popup.vue | 456 ++++++ .../u-radio-group/u-radio-group.vue | 128 ++ .../uview-ui/components/u-radio/u-radio.vue | 271 ++++ .../uview-ui/components/u-rate/u-rate.vue | 275 ++++ .../components/u-read-more/u-read-more.vue | 179 +++ .../components/u-row-notice/u-row-notice.vue | 269 ++++ .../uview-ui/components/u-row/u-row.vue | 84 + .../uview-ui/components/u-search/u-search.vue | 342 +++++ .../components/u-section/u-section.vue | 154 ++ .../uview-ui/components/u-select/u-select.vue | 417 +++++ .../components/u-skeleton/u-skeleton.vue | 199 +++ .../uview-ui/components/u-slider/u-slider.vue | 257 ++++ .../uview-ui/components/u-steps/u-steps.vue | 200 +++ .../uview-ui/components/u-sticky/u-sticky.vue | 157 ++ .../components/u-subsection/u-subsection.vue | 355 +++++ .../u-swipe-action/u-swipe-action.vue | 255 ++++ .../uview-ui/components/u-swiper/u-swiper.vue | 340 +++++ .../uview-ui/components/u-switch/u-switch.vue | 163 ++ .../uview-ui/components/u-tabbar/u-tabbar.vue | 330 ++++ .../uview-ui/components/u-table/u-table.vue | 84 + .../u-tabs-swiper/u-tabs-swiper.vue | 488 ++++++ .../uview-ui/components/u-tabs/u-tabs.vue | 369 +++++ .../uview-ui/components/u-tag/u-tag.vue | 294 ++++ .../uview-ui/components/u-td/u-td.vue | 66 + .../uview-ui/components/u-th/u-th.vue | 62 + .../u-time-line-item/u-time-line-item.vue | 83 + .../components/u-time-line/u-time-line.vue | 43 + .../uview-ui/components/u-toast/u-toast.vue | 220 +++ .../components/u-top-tips/u-top-tips.vue | 121 ++ .../uview-ui/components/u-tr/u-tr.vue | 25 + .../uview-ui/components/u-upload/u-upload.vue | 654 ++++++++ .../u-verification-code.vue | 164 ++ .../components/u-waterfall/u-waterfall.vue | 176 +++ node_modules/uview-ui/iconfont.css | 910 +++++++++++ node_modules/uview-ui/index.js | 141 ++ node_modules/uview-ui/index.scss | 23 + node_modules/uview-ui/libs/config/config.js | 15 + node_modules/uview-ui/libs/config/zIndex.js | 20 + node_modules/uview-ui/libs/css/color.scss | 155 ++ node_modules/uview-ui/libs/css/common.scss | 176 +++ .../uview-ui/libs/css/style.components.scss | 7 + node_modules/uview-ui/libs/css/style.h5.scss | 8 + node_modules/uview-ui/libs/css/style.mp.scss | 72 + .../uview-ui/libs/css/style.nvue.scss | 3 + node_modules/uview-ui/libs/css/style.vue.scss | 175 +++ .../uview-ui/libs/function/$parent.js | 18 + .../uview-ui/libs/function/addUnit.js | 8 + node_modules/uview-ui/libs/function/bem.js | 5 + node_modules/uview-ui/libs/function/color.js | 37 + .../uview-ui/libs/function/colorGradient.js | 134 ++ .../uview-ui/libs/function/debounce.js | 29 + .../uview-ui/libs/function/deepClone.js | 23 + .../uview-ui/libs/function/deepMerge.js | 30 + .../uview-ui/libs/function/getParent.js | 47 + node_modules/uview-ui/libs/function/guid.js | 41 + node_modules/uview-ui/libs/function/md5.js | 385 +++++ .../uview-ui/libs/function/queryParams.js | 58 + node_modules/uview-ui/libs/function/random.js | 10 + .../uview-ui/libs/function/randomArray.js | 7 + node_modules/uview-ui/libs/function/route.js | 122 ++ node_modules/uview-ui/libs/function/sys.js | 9 + node_modules/uview-ui/libs/function/test.js | 232 +++ .../uview-ui/libs/function/throttle.js | 32 + .../uview-ui/libs/function/timeFormat.js | 51 + .../uview-ui/libs/function/timeFrom.js | 47 + node_modules/uview-ui/libs/function/toast.js | 9 + node_modules/uview-ui/libs/function/trim.js | 15 + .../uview-ui/libs/function/type2icon.js | 35 + node_modules/uview-ui/libs/mixin/mixin.js | 64 + node_modules/uview-ui/libs/mixin/mpShare.js | 18 + node_modules/uview-ui/libs/request/index.js | 169 ++ node_modules/uview-ui/libs/store/index.js | 19 + node_modules/uview-ui/libs/util/area.js | 1 + .../uview-ui/libs/util/async-validator.js | 1356 +++++++++++++++++ node_modules/uview-ui/libs/util/city.js | 1 + node_modules/uview-ui/libs/util/emitter.js | 51 + node_modules/uview-ui/libs/util/province.js | 1 + node_modules/uview-ui/package.json | 67 + node_modules/uview-ui/theme.scss | 38 + node_modules/vuex/CHANGELOG.md | 356 +++++ node_modules/vuex/LICENSE | 21 + node_modules/vuex/README.md | 59 + node_modules/vuex/dist/logger.js | 155 ++ node_modules/vuex/dist/vuex.common.js | 1244 +++++++++++++++ node_modules/vuex/dist/vuex.esm.browser.js | 1200 +++++++++++++++ .../vuex/dist/vuex.esm.browser.min.js | 6 + node_modules/vuex/dist/vuex.esm.js | 1243 +++++++++++++++ node_modules/vuex/dist/vuex.js | 1250 +++++++++++++++ node_modules/vuex/dist/vuex.min.js | 6 + node_modules/vuex/dist/vuex.mjs | 26 + node_modules/vuex/package.json | 124 ++ node_modules/vuex/types/helpers.d.ts | 86 ++ node_modules/vuex/types/index.d.ts | 164 ++ node_modules/vuex/types/logger.d.ts | 20 + node_modules/vuex/types/vue.d.ts | 18 + package-lock.json | 28 + package.json | 18 + pages.json | 149 ++ pages/404/404.vue | 46 + pages/attestation/index.vue | 360 +++++ pages/circle/index.vue | 170 +++ pages/friend/index.vue | 103 ++ pages/index/details.vue | 450 ++++++ pages/index/index.vue | 351 +++++ pages/login/login.vue | 225 +++ pages/order/details.vue | 279 ++++ pages/order/index.vue | 279 ++++ pages/purine/details.vue | 419 +++++ pages/purine/index.vue | 271 ++++ pages/receive/index.vue | 88 ++ pages/uricacid/index.vue | 378 +++++ pages/uricacid/list.vue | 349 +++++ pages/user/code.vue | 195 +++ pages/user/index.vue | 329 ++++ pages/userCase/userCase.vue | 510 +++++++ router/index.js | 48 + scss/globa.scss | 81 + static/404/404.png | Bin 0 -> 7724 bytes static/icons/caseCamera.png | Bin 0 -> 623 bytes static/icons/lookIcon_00.png | Bin 0 -> 5535 bytes static/icons/lookIcon_01.png | Bin 0 -> 5303 bytes static/icons/lookIcon_02.png | Bin 0 -> 5637 bytes static/icons/nameClose_icon.png | Bin 0 -> 698 bytes static/icons/orderIcon_00.png | Bin 0 -> 1304 bytes static/icons/orderIcon_01.png | Bin 0 -> 718 bytes static/icons/order_00.png | Bin 0 -> 2446 bytes static/icons/order_01.png | Bin 0 -> 2762 bytes static/icons/order_02.png | Bin 0 -> 4185 bytes static/icons/order_03.png | Bin 0 -> 2743 bytes static/icons/order_04.png | Bin 0 -> 3025 bytes static/icons/purineArrow.png | Bin 0 -> 275 bytes static/icons/purineSearch.png | Bin 0 -> 862 bytes static/icons/refresh_loding.gif | Bin 0 -> 1787 bytes static/icons/tool_icon_00.png | Bin 0 -> 2671 bytes static/icons/tool_icon_01.png | Bin 0 -> 2807 bytes static/icons/tool_icon_02.png | Bin 0 -> 2715 bytes static/icons/uricacidClose.png | Bin 0 -> 449 bytes static/icons/userForm_icon.png | Bin 0 -> 15537 bytes static/icons/userLogin_icon.png | Bin 0 -> 580 bytes static/icons/useredit_icon.png | Bin 0 -> 737 bytes static/icons/wechat.png | Bin 0 -> 1198 bytes static/imgs/authPop_img.png | Bin 0 -> 11668 bytes static/imgs/caseTips.png | Bin 0 -> 2210 bytes static/imgs/codeBack.png | Bin 0 -> 2513 bytes static/imgs/coupon_null.png | Bin 0 -> 2312 bytes static/imgs/cover_img.png | Bin 0 -> 15846 bytes static/imgs/default_myHead.png | Bin 0 -> 5814 bytes static/product/img.jpg | Bin 0 -> 660453 bytes static/product/product_00.png | Bin 0 -> 77376 bytes static/product/product_01.png | Bin 0 -> 118289 bytes static/product/product_02.png | Bin 0 -> 109307 bytes static/tabBar/tabBar_icon_00.png | Bin 0 -> 2190 bytes static/tabBar/tabBar_icon_01.png | Bin 0 -> 2997 bytes static/tabBar/tabBar_icon_02.png | Bin 0 -> 2359 bytes static/tabBar/tabBar_show_00.png | Bin 0 -> 2385 bytes static/tabBar/tabBar_show_01.png | Bin 0 -> 3062 bytes static/tabBar/tabBar_show_02.png | Bin 0 -> 2738 bytes store/index.js | 28 + uni.scss | 82 + .../dist/build/.automator/h5/.automator.json | 0 unpackage/dist/build/h5/index.html | 2 + unpackage/dist/build/h5/static/404/404.png | Bin 0 -> 7724 bytes .../dist/build/h5/static/icons/caseCamera.png | Bin 0 -> 623 bytes .../build/h5/static/icons/lookIcon_00.png | Bin 0 -> 5535 bytes .../build/h5/static/icons/lookIcon_01.png | Bin 0 -> 5303 bytes .../build/h5/static/icons/lookIcon_02.png | Bin 0 -> 5637 bytes .../build/h5/static/icons/nameClose_icon.png | Bin 0 -> 698 bytes .../build/h5/static/icons/orderIcon_00.png | Bin 0 -> 1304 bytes .../build/h5/static/icons/orderIcon_01.png | Bin 0 -> 718 bytes .../dist/build/h5/static/icons/order_00.png | Bin 0 -> 2446 bytes .../dist/build/h5/static/icons/order_01.png | Bin 0 -> 2762 bytes .../dist/build/h5/static/icons/order_02.png | Bin 0 -> 4185 bytes .../dist/build/h5/static/icons/order_03.png | Bin 0 -> 2743 bytes .../dist/build/h5/static/icons/order_04.png | Bin 0 -> 3025 bytes .../build/h5/static/icons/purineArrow.png | Bin 0 -> 275 bytes .../build/h5/static/icons/purineSearch.png | Bin 0 -> 862 bytes .../build/h5/static/icons/refresh_loding.gif | Bin 0 -> 1787 bytes .../build/h5/static/icons/tool_icon_00.png | Bin 0 -> 2671 bytes .../build/h5/static/icons/tool_icon_01.png | Bin 0 -> 2807 bytes .../build/h5/static/icons/tool_icon_02.png | Bin 0 -> 2715 bytes .../build/h5/static/icons/uricacidClose.png | Bin 0 -> 449 bytes .../build/h5/static/icons/userForm_icon.png | Bin 0 -> 15537 bytes .../build/h5/static/icons/userLogin_icon.png | Bin 0 -> 580 bytes .../build/h5/static/icons/useredit_icon.png | Bin 0 -> 737 bytes .../dist/build/h5/static/icons/wechat.png | Bin 0 -> 1198 bytes .../dist/build/h5/static/img/404.da3c9a6e.png | Bin 0 -> 7724 bytes .../build/h5/static/img/order_02.2032cd7b.png | Bin 0 -> 4185 bytes .../dist/build/h5/static/imgs/authPop_img.png | Bin 0 -> 11668 bytes .../dist/build/h5/static/imgs/caseTips.png | Bin 0 -> 2210 bytes .../dist/build/h5/static/imgs/codeBack.png | Bin 0 -> 2513 bytes .../dist/build/h5/static/imgs/coupon_null.png | Bin 0 -> 2312 bytes .../dist/build/h5/static/imgs/cover_img.png | Bin 0 -> 15846 bytes .../build/h5/static/imgs/default_myHead.png | Bin 0 -> 5814 bytes .../dist/build/h5/static/index.3e73f18a.css | 1 + .../h5/static/js/chunk-vendors.3b13dde7.js | 13 + .../dist/build/h5/static/js/index.1e801b7a.js | 1 + .../js/pages-attestation-index.f0df4411.js | 1 + .../static/js/pages-circle-index.0b1823ac.js | 1 + .../static/js/pages-friend-index.e988b7c7.js | 1 + .../static/js/pages-index-details.23cf79c5.js | 1 + .../static/js/pages-index-index.bec407f3.js | 1 + .../static/js/pages-login-login.cdc6c8fc.js | 1 + .../static/js/pages-order-details.66331d8b.js | 1 + .../static/js/pages-order-index.bb786de3.js | 1 + .../js/pages-purine-details.d03e0770.js | 1 + .../static/js/pages-purine-index.34c28d7a.js | 1 + .../static/js/pages-receive-index.a7c821e9.js | 1 + .../js/pages-uricacid-index.1372dcbb.js | 1 + .../static/js/pages-uricacid-list.787b9cdd.js | 1 + .../h5/static/js/pages-user-code.77f260f9.js | 1 + .../h5/static/js/pages-user-index.9ef4724c.js | 1 + .../js/pages-userCase-userCase.83ae7ca9.js | 1 + .../dist/build/h5/static/product/img.jpg | Bin 0 -> 660453 bytes .../build/h5/static/product/product_00.png | Bin 0 -> 77376 bytes .../build/h5/static/product/product_01.png | Bin 0 -> 118289 bytes .../build/h5/static/product/product_02.png | Bin 0 -> 109307 bytes .../build/h5/static/tabBar/tabBar_icon_00.png | Bin 0 -> 2190 bytes .../build/h5/static/tabBar/tabBar_icon_01.png | Bin 0 -> 2997 bytes .../build/h5/static/tabBar/tabBar_icon_02.png | Bin 0 -> 2359 bytes .../build/h5/static/tabBar/tabBar_show_00.png | Bin 0 -> 2385 bytes .../build/h5/static/tabBar/tabBar_show_01.png | Bin 0 -> 3062 bytes .../build/h5/static/tabBar/tabBar_show_02.png | Bin 0 -> 2738 bytes vue.config.js | 20 + 345 files changed, 44887 insertions(+) create mode 100644 App.vue create mode 100644 apis/index.js create mode 100644 apis/interfaces/auth.js create mode 100644 apis/interfaces/gout.js create mode 100644 apis/interfaces/mall.js create mode 100644 apis/interfaces/uploading.js create mode 100644 apis/interfaces/user.js create mode 100644 index.html create mode 100644 js_sdk/junyi-h5-copy/junyi-h5-copy/junyi-h5-copy.js create mode 100644 main.js create mode 100644 manifest.json create mode 100644 node_modules/uni-read-pages/README.md create mode 100644 node_modules/uni-read-pages/index.js create mode 100644 node_modules/uni-read-pages/package.json create mode 100644 node_modules/uni-simple-router/.eslintignore create mode 100644 node_modules/uni-simple-router/.eslintrc.js create mode 100644 node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/bug_report.md create mode 100644 node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/feature_request.md create mode 100644 node_modules/uni-simple-router/CODE_OF_CONDUCT.md create mode 100644 node_modules/uni-simple-router/LICENSE create mode 100644 node_modules/uni-simple-router/README.md create mode 100644 node_modules/uni-simple-router/RFC.md create mode 100644 node_modules/uni-simple-router/api-extractor.json create mode 100644 node_modules/uni-simple-router/dist/link.vue create mode 100644 node_modules/uni-simple-router/dist/uni-simple-router.d.ts create mode 100644 node_modules/uni-simple-router/dist/uni-simple-router.js create mode 100644 node_modules/uni-simple-router/github.sh create mode 100644 node_modules/uni-simple-router/jest.config.js create mode 100644 node_modules/uni-simple-router/package.json create mode 100644 node_modules/uni-simple-router/progress.md create mode 100644 node_modules/uni-simple-router/src/H5/buildRouter.ts create mode 100644 node_modules/uni-simple-router/src/H5/proxyHook.ts create mode 100644 node_modules/uni-simple-router/src/app/appPatch.ts create mode 100644 node_modules/uni-simple-router/src/applets/appletPatch.ts create mode 100644 node_modules/uni-simple-router/src/component/link.vue create mode 100644 node_modules/uni-simple-router/src/global.d.ts create mode 100644 node_modules/uni-simple-router/src/helpers/config.ts create mode 100644 node_modules/uni-simple-router/src/helpers/createRouteMap.ts create mode 100644 node_modules/uni-simple-router/src/helpers/lifeCycle.ts create mode 100644 node_modules/uni-simple-router/src/helpers/mixins.ts create mode 100644 node_modules/uni-simple-router/src/helpers/utils.ts create mode 100644 node_modules/uni-simple-router/src/helpers/warn.ts create mode 100644 node_modules/uni-simple-router/src/index.ts create mode 100644 node_modules/uni-simple-router/src/options/base.ts create mode 100644 node_modules/uni-simple-router/src/options/config.ts create mode 100644 node_modules/uni-simple-router/src/public/hooks.ts create mode 100644 node_modules/uni-simple-router/src/public/methods.ts create mode 100644 node_modules/uni-simple-router/src/public/page.ts create mode 100644 node_modules/uni-simple-router/src/public/query.ts create mode 100644 node_modules/uni-simple-router/src/public/rewrite.ts create mode 100644 node_modules/uni-simple-router/src/public/router.ts create mode 100644 node_modules/uni-simple-router/src/public/uniOrigin.ts create mode 100644 node_modules/uni-simple-router/test/path-to-regexp.spec.ts create mode 100644 node_modules/uni-simple-router/test/query-toggle.spec.ts create mode 100644 node_modules/uni-simple-router/tsconfig.json create mode 100644 node_modules/uni-simple-router/webpack/webpack.common.js create mode 100644 node_modules/uni-simple-router/webpack/webpack.dev.js create mode 100644 node_modules/uni-simple-router/webpack/webpack.prod.js create mode 100644 node_modules/uview-ui/LICENSE create mode 100644 node_modules/uview-ui/README.md create mode 100644 node_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue create mode 100644 node_modules/uview-ui/components/u-alert-tips/u-alert-tips.vue create mode 100644 node_modules/uview-ui/components/u-avatar-cropper/u-avatar-cropper.vue create mode 100644 node_modules/uview-ui/components/u-avatar-cropper/weCropper.js create mode 100644 node_modules/uview-ui/components/u-avatar/u-avatar.vue create mode 100644 node_modules/uview-ui/components/u-back-top/u-back-top.vue create mode 100644 node_modules/uview-ui/components/u-badge/u-badge.vue create mode 100644 node_modules/uview-ui/components/u-button/u-button.vue create mode 100644 node_modules/uview-ui/components/u-calendar/u-calendar.vue create mode 100644 node_modules/uview-ui/components/u-car-keyboard/u-car-keyboard.vue create mode 100644 node_modules/uview-ui/components/u-card/u-card.vue create mode 100644 node_modules/uview-ui/components/u-cell-group/u-cell-group.vue create mode 100644 node_modules/uview-ui/components/u-cell-item/u-cell-item.vue create mode 100644 node_modules/uview-ui/components/u-checkbox-group/u-checkbox-group.vue create mode 100644 node_modules/uview-ui/components/u-checkbox/u-checkbox.vue create mode 100644 node_modules/uview-ui/components/u-circle-progress/u-circle-progress.vue create mode 100644 node_modules/uview-ui/components/u-circle-progress/u-line-progress/u-line-progress.vue create mode 100644 node_modules/uview-ui/components/u-col/u-col.vue create mode 100644 node_modules/uview-ui/components/u-collapse-item/u-collapse-item.vue create mode 100644 node_modules/uview-ui/components/u-collapse/u-collapse.vue create mode 100644 node_modules/uview-ui/components/u-column-notice/u-column-notice.vue create mode 100644 node_modules/uview-ui/components/u-count-down/u-count-down.vue create mode 100644 node_modules/uview-ui/components/u-count-to/u-count-to.vue create mode 100644 node_modules/uview-ui/components/u-divider/u-divider.vue create mode 100644 node_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue create mode 100644 node_modules/uview-ui/components/u-dropdown/u-dropdown.vue create mode 100644 node_modules/uview-ui/components/u-empty/u-empty.vue create mode 100644 node_modules/uview-ui/components/u-field/u-field.vue create mode 100644 node_modules/uview-ui/components/u-form-item/u-form-item.vue create mode 100644 node_modules/uview-ui/components/u-form/u-form.vue create mode 100644 node_modules/uview-ui/components/u-full-screen/u-full-screen.vue create mode 100644 node_modules/uview-ui/components/u-gap/u-gap.vue create mode 100644 node_modules/uview-ui/components/u-grid-item/u-grid-item.vue create mode 100644 node_modules/uview-ui/components/u-grid/u-grid.vue create mode 100644 node_modules/uview-ui/components/u-icon/u-icon.vue create mode 100644 node_modules/uview-ui/components/u-image/u-image.vue create mode 100644 node_modules/uview-ui/components/u-index-anchor/u-index-anchor.vue create mode 100644 node_modules/uview-ui/components/u-index-list/u-index-list.vue create mode 100644 node_modules/uview-ui/components/u-input/u-input.vue create mode 100644 node_modules/uview-ui/components/u-keyboard/u-keyboard.vue create mode 100644 node_modules/uview-ui/components/u-lazy-load/u-lazy-load.vue create mode 100644 node_modules/uview-ui/components/u-line-progress/u-line-progress.vue create mode 100644 node_modules/uview-ui/components/u-line/u-line.vue create mode 100644 node_modules/uview-ui/components/u-link/u-link.vue create mode 100644 node_modules/uview-ui/components/u-loading-page/u-loading-page.vue create mode 100644 node_modules/uview-ui/components/u-loading/u-loading.vue create mode 100644 node_modules/uview-ui/components/u-loadmore/u-loadmore.vue create mode 100644 node_modules/uview-ui/components/u-mask/u-mask.vue create mode 100644 node_modules/uview-ui/components/u-message-input/u-message-input.vue create mode 100644 node_modules/uview-ui/components/u-modal/u-modal.vue create mode 100644 node_modules/uview-ui/components/u-navbar/u-navbar.vue create mode 100644 node_modules/uview-ui/components/u-no-network/u-no-network.vue create mode 100644 node_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue create mode 100644 node_modules/uview-ui/components/u-number-box/u-number-box.vue create mode 100644 node_modules/uview-ui/components/u-number-keyboard/u-number-keyboard.vue create mode 100644 node_modules/uview-ui/components/u-parse/libs/CssHandler.js create mode 100644 node_modules/uview-ui/components/u-parse/libs/MpHtmlParser.js create mode 100644 node_modules/uview-ui/components/u-parse/libs/config.js create mode 100644 node_modules/uview-ui/components/u-parse/libs/handler.wxs create mode 100644 node_modules/uview-ui/components/u-parse/libs/trees.vue create mode 100644 node_modules/uview-ui/components/u-parse/u-parse.vue create mode 100644 node_modules/uview-ui/components/u-picker/u-picker.vue create mode 100644 node_modules/uview-ui/components/u-popup/u-popup.vue create mode 100644 node_modules/uview-ui/components/u-radio-group/u-radio-group.vue create mode 100644 node_modules/uview-ui/components/u-radio/u-radio.vue create mode 100644 node_modules/uview-ui/components/u-rate/u-rate.vue create mode 100644 node_modules/uview-ui/components/u-read-more/u-read-more.vue create mode 100644 node_modules/uview-ui/components/u-row-notice/u-row-notice.vue create mode 100644 node_modules/uview-ui/components/u-row/u-row.vue create mode 100644 node_modules/uview-ui/components/u-search/u-search.vue create mode 100644 node_modules/uview-ui/components/u-section/u-section.vue create mode 100644 node_modules/uview-ui/components/u-select/u-select.vue create mode 100644 node_modules/uview-ui/components/u-skeleton/u-skeleton.vue create mode 100644 node_modules/uview-ui/components/u-slider/u-slider.vue create mode 100644 node_modules/uview-ui/components/u-steps/u-steps.vue create mode 100644 node_modules/uview-ui/components/u-sticky/u-sticky.vue create mode 100644 node_modules/uview-ui/components/u-subsection/u-subsection.vue create mode 100644 node_modules/uview-ui/components/u-swipe-action/u-swipe-action.vue create mode 100644 node_modules/uview-ui/components/u-swiper/u-swiper.vue create mode 100644 node_modules/uview-ui/components/u-switch/u-switch.vue create mode 100644 node_modules/uview-ui/components/u-tabbar/u-tabbar.vue create mode 100644 node_modules/uview-ui/components/u-table/u-table.vue create mode 100644 node_modules/uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue create mode 100644 node_modules/uview-ui/components/u-tabs/u-tabs.vue create mode 100644 node_modules/uview-ui/components/u-tag/u-tag.vue create mode 100644 node_modules/uview-ui/components/u-td/u-td.vue create mode 100644 node_modules/uview-ui/components/u-th/u-th.vue create mode 100644 node_modules/uview-ui/components/u-time-line-item/u-time-line-item.vue create mode 100644 node_modules/uview-ui/components/u-time-line/u-time-line.vue create mode 100644 node_modules/uview-ui/components/u-toast/u-toast.vue create mode 100644 node_modules/uview-ui/components/u-top-tips/u-top-tips.vue create mode 100644 node_modules/uview-ui/components/u-tr/u-tr.vue create mode 100644 node_modules/uview-ui/components/u-upload/u-upload.vue create mode 100644 node_modules/uview-ui/components/u-verification-code/u-verification-code.vue create mode 100644 node_modules/uview-ui/components/u-waterfall/u-waterfall.vue create mode 100644 node_modules/uview-ui/iconfont.css create mode 100644 node_modules/uview-ui/index.js create mode 100644 node_modules/uview-ui/index.scss create mode 100644 node_modules/uview-ui/libs/config/config.js create mode 100644 node_modules/uview-ui/libs/config/zIndex.js create mode 100644 node_modules/uview-ui/libs/css/color.scss create mode 100644 node_modules/uview-ui/libs/css/common.scss create mode 100644 node_modules/uview-ui/libs/css/style.components.scss create mode 100644 node_modules/uview-ui/libs/css/style.h5.scss create mode 100644 node_modules/uview-ui/libs/css/style.mp.scss create mode 100644 node_modules/uview-ui/libs/css/style.nvue.scss create mode 100644 node_modules/uview-ui/libs/css/style.vue.scss create mode 100644 node_modules/uview-ui/libs/function/$parent.js create mode 100644 node_modules/uview-ui/libs/function/addUnit.js create mode 100644 node_modules/uview-ui/libs/function/bem.js create mode 100644 node_modules/uview-ui/libs/function/color.js create mode 100644 node_modules/uview-ui/libs/function/colorGradient.js create mode 100644 node_modules/uview-ui/libs/function/debounce.js create mode 100644 node_modules/uview-ui/libs/function/deepClone.js create mode 100644 node_modules/uview-ui/libs/function/deepMerge.js create mode 100644 node_modules/uview-ui/libs/function/getParent.js create mode 100644 node_modules/uview-ui/libs/function/guid.js create mode 100644 node_modules/uview-ui/libs/function/md5.js create mode 100644 node_modules/uview-ui/libs/function/queryParams.js create mode 100644 node_modules/uview-ui/libs/function/random.js create mode 100644 node_modules/uview-ui/libs/function/randomArray.js create mode 100644 node_modules/uview-ui/libs/function/route.js create mode 100644 node_modules/uview-ui/libs/function/sys.js create mode 100644 node_modules/uview-ui/libs/function/test.js create mode 100644 node_modules/uview-ui/libs/function/throttle.js create mode 100644 node_modules/uview-ui/libs/function/timeFormat.js create mode 100644 node_modules/uview-ui/libs/function/timeFrom.js create mode 100644 node_modules/uview-ui/libs/function/toast.js create mode 100644 node_modules/uview-ui/libs/function/trim.js create mode 100644 node_modules/uview-ui/libs/function/type2icon.js create mode 100644 node_modules/uview-ui/libs/mixin/mixin.js create mode 100644 node_modules/uview-ui/libs/mixin/mpShare.js create mode 100644 node_modules/uview-ui/libs/request/index.js create mode 100644 node_modules/uview-ui/libs/store/index.js create mode 100644 node_modules/uview-ui/libs/util/area.js create mode 100644 node_modules/uview-ui/libs/util/async-validator.js create mode 100644 node_modules/uview-ui/libs/util/city.js create mode 100644 node_modules/uview-ui/libs/util/emitter.js create mode 100644 node_modules/uview-ui/libs/util/province.js create mode 100644 node_modules/uview-ui/package.json create mode 100644 node_modules/uview-ui/theme.scss create mode 100644 node_modules/vuex/CHANGELOG.md create mode 100644 node_modules/vuex/LICENSE create mode 100644 node_modules/vuex/README.md create mode 100644 node_modules/vuex/dist/logger.js create mode 100644 node_modules/vuex/dist/vuex.common.js create mode 100644 node_modules/vuex/dist/vuex.esm.browser.js create mode 100644 node_modules/vuex/dist/vuex.esm.browser.min.js create mode 100644 node_modules/vuex/dist/vuex.esm.js create mode 100644 node_modules/vuex/dist/vuex.js create mode 100644 node_modules/vuex/dist/vuex.min.js create mode 100644 node_modules/vuex/dist/vuex.mjs create mode 100644 node_modules/vuex/package.json create mode 100644 node_modules/vuex/types/helpers.d.ts create mode 100644 node_modules/vuex/types/index.d.ts create mode 100644 node_modules/vuex/types/logger.d.ts create mode 100644 node_modules/vuex/types/vue.d.ts create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 pages.json create mode 100644 pages/404/404.vue create mode 100644 pages/attestation/index.vue create mode 100644 pages/circle/index.vue create mode 100644 pages/friend/index.vue create mode 100644 pages/index/details.vue create mode 100644 pages/index/index.vue create mode 100644 pages/login/login.vue create mode 100644 pages/order/details.vue create mode 100644 pages/order/index.vue create mode 100644 pages/purine/details.vue create mode 100644 pages/purine/index.vue create mode 100644 pages/receive/index.vue create mode 100644 pages/uricacid/index.vue create mode 100644 pages/uricacid/list.vue create mode 100644 pages/user/code.vue create mode 100644 pages/user/index.vue create mode 100644 pages/userCase/userCase.vue create mode 100644 router/index.js create mode 100644 scss/globa.scss create mode 100644 static/404/404.png create mode 100644 static/icons/caseCamera.png create mode 100644 static/icons/lookIcon_00.png create mode 100644 static/icons/lookIcon_01.png create mode 100644 static/icons/lookIcon_02.png create mode 100644 static/icons/nameClose_icon.png create mode 100644 static/icons/orderIcon_00.png create mode 100644 static/icons/orderIcon_01.png create mode 100644 static/icons/order_00.png create mode 100644 static/icons/order_01.png create mode 100644 static/icons/order_02.png create mode 100644 static/icons/order_03.png create mode 100644 static/icons/order_04.png create mode 100644 static/icons/purineArrow.png create mode 100644 static/icons/purineSearch.png create mode 100644 static/icons/refresh_loding.gif create mode 100644 static/icons/tool_icon_00.png create mode 100644 static/icons/tool_icon_01.png create mode 100644 static/icons/tool_icon_02.png create mode 100644 static/icons/uricacidClose.png create mode 100644 static/icons/userForm_icon.png create mode 100644 static/icons/userLogin_icon.png create mode 100644 static/icons/useredit_icon.png create mode 100644 static/icons/wechat.png create mode 100644 static/imgs/authPop_img.png create mode 100644 static/imgs/caseTips.png create mode 100644 static/imgs/codeBack.png create mode 100644 static/imgs/coupon_null.png create mode 100644 static/imgs/cover_img.png create mode 100644 static/imgs/default_myHead.png create mode 100644 static/product/img.jpg create mode 100644 static/product/product_00.png create mode 100644 static/product/product_01.png create mode 100644 static/product/product_02.png create mode 100644 static/tabBar/tabBar_icon_00.png create mode 100644 static/tabBar/tabBar_icon_01.png create mode 100644 static/tabBar/tabBar_icon_02.png create mode 100644 static/tabBar/tabBar_show_00.png create mode 100644 static/tabBar/tabBar_show_01.png create mode 100644 static/tabBar/tabBar_show_02.png create mode 100644 store/index.js create mode 100644 uni.scss create mode 100644 unpackage/dist/build/.automator/h5/.automator.json create mode 100644 unpackage/dist/build/h5/index.html create mode 100644 unpackage/dist/build/h5/static/404/404.png create mode 100644 unpackage/dist/build/h5/static/icons/caseCamera.png create mode 100644 unpackage/dist/build/h5/static/icons/lookIcon_00.png create mode 100644 unpackage/dist/build/h5/static/icons/lookIcon_01.png create mode 100644 unpackage/dist/build/h5/static/icons/lookIcon_02.png create mode 100644 unpackage/dist/build/h5/static/icons/nameClose_icon.png create mode 100644 unpackage/dist/build/h5/static/icons/orderIcon_00.png create mode 100644 unpackage/dist/build/h5/static/icons/orderIcon_01.png create mode 100644 unpackage/dist/build/h5/static/icons/order_00.png create mode 100644 unpackage/dist/build/h5/static/icons/order_01.png create mode 100644 unpackage/dist/build/h5/static/icons/order_02.png create mode 100644 unpackage/dist/build/h5/static/icons/order_03.png create mode 100644 unpackage/dist/build/h5/static/icons/order_04.png create mode 100644 unpackage/dist/build/h5/static/icons/purineArrow.png create mode 100644 unpackage/dist/build/h5/static/icons/purineSearch.png create mode 100644 unpackage/dist/build/h5/static/icons/refresh_loding.gif create mode 100644 unpackage/dist/build/h5/static/icons/tool_icon_00.png create mode 100644 unpackage/dist/build/h5/static/icons/tool_icon_01.png create mode 100644 unpackage/dist/build/h5/static/icons/tool_icon_02.png create mode 100644 unpackage/dist/build/h5/static/icons/uricacidClose.png create mode 100644 unpackage/dist/build/h5/static/icons/userForm_icon.png create mode 100644 unpackage/dist/build/h5/static/icons/userLogin_icon.png create mode 100644 unpackage/dist/build/h5/static/icons/useredit_icon.png create mode 100644 unpackage/dist/build/h5/static/icons/wechat.png create mode 100644 unpackage/dist/build/h5/static/img/404.da3c9a6e.png create mode 100644 unpackage/dist/build/h5/static/img/order_02.2032cd7b.png create mode 100644 unpackage/dist/build/h5/static/imgs/authPop_img.png create mode 100644 unpackage/dist/build/h5/static/imgs/caseTips.png create mode 100644 unpackage/dist/build/h5/static/imgs/codeBack.png create mode 100644 unpackage/dist/build/h5/static/imgs/coupon_null.png create mode 100644 unpackage/dist/build/h5/static/imgs/cover_img.png create mode 100644 unpackage/dist/build/h5/static/imgs/default_myHead.png create mode 100644 unpackage/dist/build/h5/static/index.3e73f18a.css create mode 100644 unpackage/dist/build/h5/static/js/chunk-vendors.3b13dde7.js create mode 100644 unpackage/dist/build/h5/static/js/index.1e801b7a.js create mode 100644 unpackage/dist/build/h5/static/js/pages-attestation-index.f0df4411.js create mode 100644 unpackage/dist/build/h5/static/js/pages-circle-index.0b1823ac.js create mode 100644 unpackage/dist/build/h5/static/js/pages-friend-index.e988b7c7.js create mode 100644 unpackage/dist/build/h5/static/js/pages-index-details.23cf79c5.js create mode 100644 unpackage/dist/build/h5/static/js/pages-index-index.bec407f3.js create mode 100644 unpackage/dist/build/h5/static/js/pages-login-login.cdc6c8fc.js create mode 100644 unpackage/dist/build/h5/static/js/pages-order-details.66331d8b.js create mode 100644 unpackage/dist/build/h5/static/js/pages-order-index.bb786de3.js create mode 100644 unpackage/dist/build/h5/static/js/pages-purine-details.d03e0770.js create mode 100644 unpackage/dist/build/h5/static/js/pages-purine-index.34c28d7a.js create mode 100644 unpackage/dist/build/h5/static/js/pages-receive-index.a7c821e9.js create mode 100644 unpackage/dist/build/h5/static/js/pages-uricacid-index.1372dcbb.js create mode 100644 unpackage/dist/build/h5/static/js/pages-uricacid-list.787b9cdd.js create mode 100644 unpackage/dist/build/h5/static/js/pages-user-code.77f260f9.js create mode 100644 unpackage/dist/build/h5/static/js/pages-user-index.9ef4724c.js create mode 100644 unpackage/dist/build/h5/static/js/pages-userCase-userCase.83ae7ca9.js create mode 100644 unpackage/dist/build/h5/static/product/img.jpg create mode 100644 unpackage/dist/build/h5/static/product/product_00.png create mode 100644 unpackage/dist/build/h5/static/product/product_01.png create mode 100644 unpackage/dist/build/h5/static/product/product_02.png create mode 100644 unpackage/dist/build/h5/static/tabBar/tabBar_icon_00.png create mode 100644 unpackage/dist/build/h5/static/tabBar/tabBar_icon_01.png create mode 100644 unpackage/dist/build/h5/static/tabBar/tabBar_icon_02.png create mode 100644 unpackage/dist/build/h5/static/tabBar/tabBar_show_00.png create mode 100644 unpackage/dist/build/h5/static/tabBar/tabBar_show_01.png create mode 100644 unpackage/dist/build/h5/static/tabBar/tabBar_show_02.png create mode 100644 vue.config.js diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..37d0a69 --- /dev/null +++ b/App.vue @@ -0,0 +1,86 @@ + + + diff --git a/apis/index.js b/apis/index.js new file mode 100644 index 0000000..30a2c44 --- /dev/null +++ b/apis/index.js @@ -0,0 +1,158 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + */ + +import store from '@/store' + +// 基础配置 +const config = { + apiUrl : 'http://api.gout.shangkelian.cn/api/', // 正式环境 + timeout : 60000 +} + +let loginHintState = false + +// 网络请求 +const request = (parameter, hideLoding) => { + // 检查url配置 + if(parameter.url === 'undefined' || parameter.url === ''){ + uni.showToast({ + title: '请求地址不能为空', + icon : 'none' + }) + return + } + // 注入header + config.header = { + 'Accept': 'application/json', + 'Authorization': store.getters.getToken || '' + } + + // 加载提示 + if(!hideLoding) uni.showLoading({ + title: '加载中', + mask : true + }); + + // 请求实例 + return new Promise((resolve, reject) => { + uni.request({ + url : config.apiUrl + parameter.url, + timeout : config.timeout, + header : config.header || {}, + data : parameter.data || {}, + method : parameter.method || 'GET', + success : res => { + if (res.header.Authorization){ + updateToken('token', res.header.Authorization) + } + if(res.statusCode === 200){ + uni.hideLoading() + const resolveData = res.data + if(resolveData.status_code === 200) { + resolve(resolveData.data) + return + } + if(resolveData.status_code === 401) { + loginHint() + return + } + reject(resolveData) + return + } + errToast(res.statusCode) + } + }) + }) +} + +// 文件上传 +const uploading = (paths) => { + uni.showLoading({ + title: '上传中', + mask : true + }); + // 注入header + config.header = { + 'Accept': 'application/json', + 'Authorization': store.getters.getToken || '' + } + // 上传图片 + return new Promise((resolve, reject) => { + uni.uploadFile({ + url : config.apiUrl + 'storage/uploads', + files : paths, + header : config.header || {}, + success : res=>{ + if(res.statusCode === 200){ + uni.hideLoading() + let updData = JSON.parse(res.data) + if(updData.status_code === 200){ + resolve(updData.data) + return + } + reject(updData) + return + } + errToast(res.statusCode) + } + }) + }) +} + +// 处理一些http请求错误提示 +const errToast = (code) => { + switch (code){ + case 404: + uni.showToast({ + title: code + '接口不存在,请联系系统管理员', + icon : 'none' + }) + break; + case 405: + uni.showToast({ + title: code + '请检查接口请求方式错误', + icon : 'none' + }) + break; + case 500: + uni.showToast({ + title: code + '服务端错误,请检查服务器信息', + icon : 'none' + }) + break; + } +} + +// 更新token +const updateToken = (token) => { + store.commit('setToken', token) +} + +// 处理登录提示 +const loginHint = () => { + if( loginHintState ) return + if(!loginHintState) loginHintState = true + updateToken('') + uni.showModal({ + title: '登录提示', + content: '您的登录信息已过期,请重新登录', + confirmColor: '#8b64fd', + showCancel:false, + success: res=> { + loginHintState = false + if (res.confirm) uni.reLaunch({ + url: '/pages/index/index' + }) + } + }) +} + +export { + request, + uploading, + config +} diff --git a/apis/interfaces/auth.js b/apis/interfaces/auth.js new file mode 100644 index 0000000..033e570 --- /dev/null +++ b/apis/interfaces/auth.js @@ -0,0 +1,31 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName: 鉴权 + */ + +import { request } from '../index' + +// 验证码登录 +const smsAuth = (data) =>{ + return request({ + url: "user/auth/sms", + method: 'POST', + data: data + }) +} + +// 获取验证码 +const getSms = (data) =>{ + return request({ + url: "user/auth/verify", + method: 'POST', + data: data + }) +} +export { + smsAuth, + getSms +} diff --git a/apis/interfaces/gout.js b/apis/interfaces/gout.js new file mode 100644 index 0000000..c20175f --- /dev/null +++ b/apis/interfaces/gout.js @@ -0,0 +1,128 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName:腾风 病例 + */ + +import { request } from '../index' + +// 添加病例-前置 +const goutCreate = () => { + return request({ + url: 'gout/result/create' + }) +} + +// 添加病例 +const goutAdd = (data) => { + return request({ + url: 'gout/result', + method: 'POST', + data: data + }) +} + +// 查看病例 +const goutSee = () => { + return request({ + url: 'gout/result' + }) +} + +// 添加病例-图片 +const goutCover = (case_id, data) => { + return request({ + url: 'gout/result/' + case_id + '/add_cover', + method: 'POST', + data: data + }) +} + +// 查看尿酸 +const lastLog = () => { + return request({ + url: 'gout/result/last_log' + }) +} + +// 添加尿酸值 +const AddlastLog = (user_case_id, data) => { + return request({ + url: 'gout/result/' + user_case_id + '/logs', + method: 'POST', + data: data + }) +} + +// 尿酸记录 +const ListLog = (user_case_id, data) => { + return request({ + url: 'gout/result/' + user_case_id + '/logs', + data: data + }) +} + +// 尿酸记录-详情 +const DetLog = (user_case_id) => { + return request({ + url: 'gout/result/logs/' + user_case_id + }) +} + +// 删除尿酸记录 +const DelLog = (user_case_id) => { + return request({ + url: 'gout/result/logs/' + user_case_id, + method: 'DELETE' + }) +} + +// 病友记 +const allLogs = (data) => { + return request({ + url: 'gout/result/all_logs', + data: data + }) +} + + +// 食物列表/嘌呤查询 +const foodList = (data) => { + return request({ + url: 'gout/food', + data: data + }) +} + +// 食物详情 +const foodDet = (food_id) => { + return request({ + url: 'gout/food/' + food_id + }, true) +} + +// 食物投票 +const foodVote = (food_id, option_id) => { + return request({ + url: 'gout/food/' + food_id + '/' + option_id, + method: 'POST' + }) +} + +export { + goutCreate, + goutAdd, + goutSee, + goutCover, + lastLog, + AddlastLog, + ListLog, + DetLog, + DelLog, + allLogs, + foodList, + foodDet, + foodVote +} diff --git a/apis/interfaces/mall.js b/apis/interfaces/mall.js new file mode 100644 index 0000000..b1e36a7 --- /dev/null +++ b/apis/interfaces/mall.js @@ -0,0 +1,77 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName: 腾风首页 + */ + +import { request } from '../index' + +// 首页 +const index = () => { + return request({ + url: 'mall' + }) +} + +// 商品详情 +const goods = (goods_id) => { + return request({ + url: 'mall/goods/' + goods_id + }) +} + +// 文章详情 +const artiicle = (artiicle_id) => { + return request({ + url: 'cms/articles/' + artiicle_id + }) +} + +// 退货单-审核 +const storeAudit = (refund_id, data) => { + return request({ + url: 'manages/refunds/' + refund_id + '/audit', + method: 'POST', + data: data + }) +} + +// 提货单列表 +const storeDeliver = (state) => { + return request({ + url: 'manages/shipments', + data: { + state + } + }) +} + +// 领取商品 +const Receive = (data) => { + return request({ + url: 'mall/buy/samples', + method: 'POST', + data: data + }) +} + +// 省市区-获取 +const create = (data) => { + return request({ + url: 'mall/addresses/create', + data: data + }) +} + + +export { + index, + goods, + artiicle, + storeAudit, + storeDeliver, + Receive, + create +} diff --git a/apis/interfaces/uploading.js b/apis/interfaces/uploading.js new file mode 100644 index 0000000..31b85f7 --- /dev/null +++ b/apis/interfaces/uploading.js @@ -0,0 +1,17 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName: 上传图片 + */ + +import { uploading as upd } from '../index' + +const uploads = (paths) => { + return upd(paths) +} + +export { + uploads +} diff --git a/apis/interfaces/user.js b/apis/interfaces/user.js new file mode 100644 index 0000000..a83005c --- /dev/null +++ b/apis/interfaces/user.js @@ -0,0 +1,72 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName:腾风 我的 + */ + +import { request } from '../index' + +// 用户信息 +const userIndex = () => { + return request({ + url: 'user/info' + }) +} + +// 上传头像 +const setting = (key, data) => { + return request({ + url: 'user/setting/' + key, + method: 'PUT', + data: data + }) +} + +// 订单列表 +const orders = (data) => { + return request({ + url: 'mall/orders', + data: data + }) +} + +// 订单详情 +const goodsDet = (order_no) => { + return request({ + url: 'mall/orders/' + order_no + }) +} + +// 订单签收 +const goodsSign = (order_no) => { + return request({ + url: 'mall/orders/' + order_no + '/sign', + method: 'PUT' + }, true) +} + +// 我的伙伴 +const relations = () => { + return request({ + url: 'user/relations' + }) +} + +// 我的推广码 +const invite = () => { + return request({ + url: 'user/invite' + }) +} + +export { + userIndex, + setting, + orders, + goodsDet, + goodsSign, + relations, + invite +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..8fd5617 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + +
+ + +
+
+
+## 成品预览
+
+uni-simple-router@2.0+ts+uni-app
+
+