From de63f91e4305a5934e17858b51fe077ca62b1365 Mon Sep 17 00:00:00 2001 From: Jruome <2559028966@qq.com> Date: Thu, 25 May 2023 15:44:52 +0800 Subject: [PATCH 1/3] =?UTF-8?q?uniapp=20=E7=99=BB=E5=BD=95=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/pages/users/login/index.vue | 6 +++--- yudao-ui-app/pages/users/register/index.vue | 2 +- yudao-ui-app/pages/users/retrievePassword/index.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/yudao-ui-app/pages/users/login/index.vue b/yudao-ui-app/pages/users/login/index.vue index 0759084e9..3044d1cc5 100644 --- a/yudao-ui-app/pages/users/login/index.vue +++ b/yudao-ui-app/pages/users/login/index.vue @@ -115,7 +115,7 @@ if (!that.mobile) return that.$util.Tips({ title: '请填写手机号码' }); - if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({ + if (!/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({ title: '请输入正确的手机号码' }); if (!that.captcha) return that.$util.Tips({ @@ -156,7 +156,7 @@ if (!that.mobile) return that.$util.Tips({ title: '请填写手机号码' }); - if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({ + if (!/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({ title: '请输入正确的手机号码' }); if (!that.captcha) return that.$util.Tips({ @@ -204,7 +204,7 @@ if (!that.mobile) return that.$util.Tips({ title: '请填写手机号码' }); - if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({ + if (!/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({ title: '请输入正确的手机号码' }); await registerVerify(that.mobile, 1) diff --git a/yudao-ui-app/pages/users/register/index.vue b/yudao-ui-app/pages/users/register/index.vue index 4ac7899f4..55ddbf97f 100644 --- a/yudao-ui-app/pages/users/register/index.vue +++ b/yudao-ui-app/pages/users/register/index.vue @@ -88,7 +88,7 @@ if (!this.registerForm.mobile) return this.$util.Tips({ title: '请填写手机号码' }); - if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[1-25-9])\d{8}$/g.test(this.registerForm.mobile)) return this.$util.Tips({ + if (!/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[1-25-9])\d{8}$/g.test(this.registerForm.mobile)) return this.$util.Tips({ title: '请输入正确的手机号码' }); if(this.checked.length === 0) return this.$util.Tips({ diff --git a/yudao-ui-app/pages/users/retrievePassword/index.vue b/yudao-ui-app/pages/users/retrievePassword/index.vue index 3e81bee3d..5ea273147 100644 --- a/yudao-ui-app/pages/users/retrievePassword/index.vue +++ b/yudao-ui-app/pages/users/retrievePassword/index.vue @@ -85,7 +85,7 @@ if (!that.account) return that.$util.Tips({ title: '请填写手机号码' }); - if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.account)) return that.$util.Tips({ + if (!/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.account)) return that.$util.Tips({ title: '请输入正确的手机号码' }); if (!that.captcha) return that.$util.Tips({ @@ -114,7 +114,7 @@ if (!that.account) return that.$util.Tips({ title: '请填写手机号码' }); - if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.account)) return that.$util.Tips({ + if (!/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.account)) return that.$util.Tips({ title: '请输入正确的手机号码' }); await registerVerify(that.account, 3) From 5641a8b566807123e28dd9c2016737e948a575b4 Mon Sep 17 00:00:00 2001 From: js199000126 <528892601@qq.com> Date: Thu, 25 May 2023 15:45:57 +0800 Subject: [PATCH 2/3] =?UTF-8?q?525-=E8=B4=AD=E7=89=A9=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/api/order.js | 4 + yudao-ui-app/api/product.js | 3 + yudao-ui-app/config/app.js | 4 +- yudao-ui-app/package-lock.json | 266 ++++++++++++++ yudao-ui-app/pages/index/index.vue | 6 +- .../pages/order_addcart/order_addcart.vue | 151 ++++---- yudao-ui-app/pages/order_details/index.vue | 87 +++-- .../pages/users/order_confirm/index.vue | 2 +- yudao-ui-app/pages/users/order_list/index.vue | 326 ++++++++++-------- yudao-ui-app/static/images/shop/goback.png | Bin 0 -> 2720 bytes 10 files changed, 609 insertions(+), 240 deletions(-) create mode 100644 yudao-ui-app/static/images/shop/goback.png diff --git a/yudao-ui-app/api/order.js b/yudao-ui-app/api/order.js index 6dd877ae4..c63ac36eb 100644 --- a/yudao-ui-app/api/order.js +++ b/yudao-ui-app/api/order.js @@ -33,6 +33,10 @@ export function changeCartNum(cartId, number) { * 清除购物车 * @param object ids join(',') 切割成字符串 */ +// export function cartDel(ids) { +// console.log(ids,'-------') +// return request.post('front/cart/delete?id='+ ids); +// } export function cartDel(ids) { console.log(ids) return request.post('front/cart/delete', { diff --git a/yudao-ui-app/api/product.js b/yudao-ui-app/api/product.js index 281cbce58..addafde19 100644 --- a/yudao-ui-app/api/product.js +++ b/yudao-ui-app/api/product.js @@ -15,3 +15,6 @@ export const getBanner = params => request.post('market/banner/list', { params } // 获取租户 export const getTenant = id => request.get('tenant/get/' , {id:id }) + +// 获取头部信息 +export const getHeader = params => request.get('api/order/member/memberHeadInfo' , {params }) diff --git a/yudao-ui-app/config/app.js b/yudao-ui-app/config/app.js index 0f19e7b1d..fd0473db6 100644 --- a/yudao-ui-app/config/app.js +++ b/yudao-ui-app/config/app.js @@ -1,6 +1,6 @@ -let domain = 'http://api.cyywl.top' -// let domain = 'http://192.168.1.188:48080' +// let domain = 'http://api.cyywl.top' +let domain = 'http://192.168.1.188:48080' module.exports = { // 请求域名 格式: https://您的域名 diff --git a/yudao-ui-app/package-lock.json b/yudao-ui-app/package-lock.json index 6d748ad88..59864be9e 100644 --- a/yudao-ui-app/package-lock.json +++ b/yudao-ui-app/package-lock.json @@ -3,6 +3,272 @@ "version": "1.0.0", "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "yudao-ui-app", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "clipboard": "^2.0.11", + "html-to-image": "^1.11.11", + "qrcode": "^1.5.3" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "node_modules/clipboard": { + "version": "2.0.11", + "resolved": "https://registry.npmmirror.com/clipboard/-/clipboard-2.0.11.tgz", + "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==", + "dependencies": { + "good-listener": "^1.2.2", + "select": "^1.1.2", + "tiny-emitter": "^2.0.0" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" + }, + "node_modules/delegate": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz", + "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==" + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + }, + "node_modules/good-listener": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/good-listener/-/good-listener-1.2.2.tgz", + "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==", + "dependencies": { + "delegate": "^3.1.2" + } + }, + "node_modules/html-to-image": { + "version": "1.11.11", + "resolved": "https://registry.npmmirror.com/html-to-image/-/html-to-image-1.11.11.tgz", + "integrity": "sha512-9gux8QhvjRO/erSnDPv28noDZcPZmYE7e1vFsBLKLlRlKDSqNJYebj6Qz1TGd5lsRV+X+xYyjCKjuZdABinWjA==" + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==" + }, + "node_modules/qrcode": { + "version": "1.5.3", + "resolved": "https://registry.npmmirror.com/qrcode/-/qrcode-1.5.3.tgz", + "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "node_modules/select": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/select/-/select-1.1.2.tgz", + "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==" + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + } + }, + "node_modules/tiny-emitter": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz", + "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmmirror.com/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + }, "dependencies": { "ansi-regex": { "version": "5.0.1", diff --git a/yudao-ui-app/pages/index/index.vue b/yudao-ui-app/pages/index/index.vue index 40c7c78f6..a050f62f6 100644 --- a/yudao-ui-app/pages/index/index.vue +++ b/yudao-ui-app/pages/index/index.vue @@ -98,7 +98,8 @@ productPage, getSpuDetail, getBanner, - getTenant + getTenant, + getHeader } from '../../api/product.js' import { postCartAdd @@ -321,6 +322,9 @@ this.text = res.data.notice }) }) + getHeader().then(res=>{ + console.log(res,'会员') + }) this.getBanners() this.getIndexPage() this.getIndexConfig(); diff --git a/yudao-ui-app/pages/order_addcart/order_addcart.vue b/yudao-ui-app/pages/order_addcart/order_addcart.vue index 0417a0c30..44f2028ef 100644 --- a/yudao-ui-app/pages/order_addcart/order_addcart.vue +++ b/yudao-ui-app/pages/order_addcart/order_addcart.vue @@ -9,7 +9,7 @@ - + {{item.storeName}} @@ -28,18 +28,18 @@ {{item.storeName}} - ¥{{item.price}} + - + {{item.cartNum}} - + @@ -47,24 +47,27 @@ - + + + + - 全选 - 合计 ¥998.00 - 结算() + 合计 + + 结算({{allCountval}}) 全选 - 收藏 + 删除 @@ -165,6 +168,7 @@ loadendInvalid: false, loadTitleInvalid: '加载更多', //提示语 pageInvalid: 1, + priceAll: 0, limitInvalid: 20, attr: { cartAttr: false, @@ -190,16 +194,29 @@ }, allSelectval() { let count = 0 - this.cartList.forEach(item => { + this.cartList.valid.forEach(item => { if (item.checked) { count += 1 } }) - if(count == this.cartList.length){ + if (count == this.cartList.valid.length) { return true - }else { + } else { return false } + }, + allCountval() { + this.priceAll = 0 + let count = 0 + this.cartList.valid.forEach(item => { + let price = 0 + if (item.checked) { + count += 1 + price = item.price * item.cartNum + this.priceAll = this.priceAll + price + } + }) + return count } }, onLoad: function(options) { @@ -257,6 +274,7 @@ }) } else { this.cartList.valid.forEach((item, index) => { + this.priceAll = 0 item.checked = false Vue.set(this.cartList.valid, index, item) Vue.set(this.cartList, 'valid', this.cartList.valid) @@ -265,7 +283,7 @@ }, // 购物车重选 reelect(item, index) { - console.log(item,'item哇') + console.log(item, 'item哇') // let reCheck = { // id: item.id, // num: item.cartNum+2, @@ -275,28 +293,29 @@ // getResetCart(reCheck).then(res=> { // console.log('重选成功') // }) + this.allCountval item.checked = !item.checked + // this.priceAll -= item.price * item.cartNum Vue.set(this.cartList.valid, index, item) Vue.set(this.cartList, 'valid', this.cartList.valid) }, //购物车商品数量增加 - ChangeCartCountJia(id, num) { - let count = num + 1 - changeCartNum(id, count).then(res => { - console.log('++成功') - this.cartList.valid = [] - this.getCartList() + ChangeCartCountJia(item, index) { + item.cartNum += 1 + console.log(item, 'jiajiajia') + changeCartNum(item.id, item.cartNum).then(res => { + Vue.set(this.cartList.valid, index, item) + Vue.set(this.cartList, 'valid', this.cartList.valid) }) }, // 购物车商品数量减少 - ChangeCartCountJian(id, num) { - let count = num - 1 - changeCartNum(id, count).then(res => { - console.log('-成功') - this.cartList.valid = [] - this.getCartList() + ChangeCartCountJian(item, index) { + item.cartNum -= 1 + changeCartNum(item.id, item.cartNum).then(res => { + Vue.set(this.cartList.valid, index, item) + Vue.set(this.cartList, 'valid', this.cartList.valid) }) }, // 授权关闭 @@ -507,7 +526,7 @@ selectValue.push(item.id) } }) - console.log(selectValue,'000000') + console.log(selectValue, '000000') this.selectValue = selectValue let that = this if (selectValue.length > 0) @@ -539,7 +558,7 @@ }, subCollect: function(event) { let that = this - selectValue = that.selectValue; + selectValue = that.selectValue; if (selectValue.length > 0) { let selectValueProductId = that.getSelectValueProductId(); collectAll(that.getSelectValueProductId()).then(res => { @@ -772,16 +791,17 @@ }); }, async getCartList() { - uni.showLoading({ - title: '加载中', - mask: true - }); + // uni.showLoading({ + // title: '加载中', + // mask: true + // }); let that = this; let data = { page: that.page, limit: that.limit, isValid: true } + getCartCounts(true, 'sum').then(async c => { that.cartCount = c.data.count; if (c.data.count === 0) that.getHostProduct(); @@ -789,7 +809,8 @@ let cartList = await this.getCartData(data); console.log(cartList, 'cartlist'); let valid = cartList.list; - let validList = that.$util.SplitArray(valid, that.cartList.valid); + // let validList = that.$util.SplitArray(valid, that.cartList.valid); + console.log(valid, 'that.cartList0') let numSub = [{ numSub: true }, { @@ -801,42 +822,44 @@ numAdd: false }], selectValue = []; - if (validList.length > 0) { - for (let index in validList) { - if (validList[index].cartNum == 1) { - validList[index].numSub = true; - } else { - validList[index].numSub = false; - } - let productInfo = validList[index]; - let stock = validList[index].stock ? validList[index].stock : 0; - if (validList[index].cartNum == stock) { - validList[index].numAdd = true; - } else if (validList[index].cartNum == validList[index].stock) { - validList[index].numAdd = true; - } else { - validList[index].numAdd = false; - } - if (validList[index].attrStatus) { - validList[index].checked = true; - selectValue.push(validList[index].id); - } else { - validList[index].checked = false; - } - } - } - that.$set(that.cartList, 'valid', validList); + // if (validList.length > 0) { + // for (let index in validList) { + // if (validList[index].cartNum == 1) { + // validList[index].numSub = true; + // } else { + // validList[index].numSub = false; + // } + // let productInfo = validList[index]; + // let stock = validList[index].stock ? validList[index].stock : 0; + // if (validList[index].cartNum == stock) { + // validList[index].numAdd = true; + // } else if (validList[index].cartNum == validList[index].stock) { + // validList[index].numAdd = true; + // } else { + // validList[index].numAdd = false; + // } + // if (validList[index].attrStatus) { + // validList[index].checked = true; + // selectValue.push(validList[index].id); + // } else { + // validList[index].checked = false; + // } + // } + // } + // that.$set(that.cartList, 'valid', validList); + that.$set(that.cartList, 'valid', valid); data.page += 1; that.selectValue = selectValue; - console.log(that.cartList) - let newArr = validList.filter(item => item.attrStatus); + console.log(that.cartList, 'that.cartList') + let newArr = valid.filter(item => item.attrStatus); that.isAllSelect = newArr.length == selectValue.length && newArr.length; + that.loading = false; + that.canShow = true; + uni.hideLoading(); that.switchSelect(); } - that.loading = false; - that.canShow = true; - uni.hideLoading(); + }); }, getInvalidList: function() { @@ -1167,16 +1190,16 @@ position: absolute; right: 222rpx; top: 34rpx; + display: flex; font-size: 26rpx; font-family: PingFang SC; font-weight: 400; color: #000000; - text { + .text { font-size: 30rpx; font-family: PingFang SC; font-weight: 400; - color: #E94343; } } diff --git a/yudao-ui-app/pages/order_details/index.vue b/yudao-ui-app/pages/order_details/index.vue index de7f77e20..987474b1d 100644 --- a/yudao-ui-app/pages/order_details/index.vue +++ b/yudao-ui-app/pages/order_details/index.vue @@ -24,23 +24,23 @@ 古驰旗舰店> - + - + - GUCCI/古驰HADLEY 21号 + {{item.productName}} - Gucci Blondie小号托特包 + {{item.sku}} - + -
x1
+
x{{item.cartNum}}
@@ -48,15 +48,21 @@ 商品总价 - + + + 运费 - + + + 待付金额 - + + + @@ -79,27 +85,29 @@ 支付方式 - - - 微信支付 - - + + + 微信支付 + + - - - 支付宝支付 - - + + + 支付宝支付 + + - 待支付: ¥123 + 待支付: + + 取消订单 立即付款 - + @@ -143,7 +151,7 @@ qrcodeSize: 100, order_id: '', evaluate: 0, - + cartInfo: [], //购物车产品 orderInfo: { systemStore: {}, @@ -609,6 +617,10 @@ justify-content: space-between; .shopName { + width: 240rpx; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; font-size: 28rpx; font-family: PingFang SC; font-weight: 400; @@ -644,6 +656,10 @@ margin-right: 60rpx; .name { + width: 440rpx; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; font-size: 26rpx; font-family: PingFang SC; font-weight: 400; @@ -805,6 +821,7 @@ background-size: 100% 100%; margin-left: 400rpx; } + .radioNo { width: 34rpx; height: 34rpx; @@ -822,15 +839,19 @@ .zf { position: fixed; bottom: 0; + display: flex; + justify-content: space-around; + align-items: center; width: 100%; height: 176rpx; background: #fff; .zfNumber { - position: absolute; - left: 52rpx; - top: 58rpx; + // position: absolute; + // left: 52rpx; + // top: 58rpx; font-size: 28rpx; + display: flex; font-family: PingFang SC; font-weight: 400; color: #0C0C0C; @@ -843,12 +864,12 @@ } } - + .closeOrder { - position: absolute; - top: 48rpx; - right: 230rpx; + // position: absolute; + // top: 48rpx; + // right: 230rpx; width: 179rpx; height: 64rpx; text-align: center; @@ -862,9 +883,9 @@ } .orderPay { - position: absolute; - top: 48rpx; - right: 34rpx; + // position: absolute; + // top: 48rpx; + // right: 34rpx; width: 178rpx; height: 63rpx; line-height: 63rpx; diff --git a/yudao-ui-app/pages/users/order_confirm/index.vue b/yudao-ui-app/pages/users/order_confirm/index.vue index 7d667ebe0..98cf86838 100644 --- a/yudao-ui-app/pages/users/order_confirm/index.vue +++ b/yudao-ui-app/pages/users/order_confirm/index.vue @@ -952,7 +952,7 @@ payChannel: that.payChannel }; - console.log(that.system_store.phone,'data') + console.log(that.preOrderNo,'data') if (data.payType == 'yue' && parseFloat(that.userInfo.nowMoney) < parseFloat(that.totalPrice)) return that.$util .Tips({ diff --git a/yudao-ui-app/pages/users/order_list/index.vue b/yudao-ui-app/pages/users/order_list/index.vue index 86770e065..2c4024c99 100644 --- a/yudao-ui-app/pages/users/order_list/index.vue +++ b/yudao-ui-app/pages/users/order_list/index.vue @@ -1,26 +1,17 @@ @@ -122,17 +120,18 @@ name: '待发货', value: '1' }, { - name: '已完成', + name: '待收货', value: '2' }, { - name: '售后中', - value: '3' - }, { - name: '已关闭', + name: '已完成', value: '4' + }, { + name: '售后/退款', + value: '-3' }], limit: 20, itemList: [], + value: '', currentPage: 1, listTitle: '', pageSize: 10, @@ -217,7 +216,7 @@ } }, click(item) { - console.log(item.value,1) + console.log(item.value, 1) if (item.value == this.orderStatus) return; this.orderStatus = item.value console.log(this.orderStatus) @@ -227,7 +226,7 @@ this.$set(this, 'orderList', []); this.getOrderData(); this.getOrderList() - + }, onLoadFun() { this.getOrderData(); @@ -424,7 +423,64 @@ diff --git a/yudao-ui-app/static/images/shop/goback.png b/yudao-ui-app/static/images/shop/goback.png new file mode 100644 index 0000000000000000000000000000000000000000..04afdbd8a2328191a9ff4171ec535b1ded1583f7 GIT binary patch literal 2720 zcmd5;`CAiL7Y;b;uo#ml6fwX+7SIYxMKM)@ApsHrv8aeF27^`sSxgFQDF{;up<;}Q z5LOXUsImyO5d=l{B!W9iP!J12LCc4wiin`S>Gwx`-w!kQnYs78=RNN^&p9_^+g7hd zhUSJi9BvVZ&GHAUO83AEz`HWA>Ks_~1pZ#`xT?G4F&xe?h{Hm69NjZsctCFAK@g^| zLiwKEj03e>@GF;nDVen0OjFcWADJjTR`#QNZyUqX^?vO8ciZO*@*1nVvV~kiN^>c6 zt$BeyK~sRk;x;1HC&029NkRJc;Db;OV(#qEff2UUQ{Zz7haK!^)2vevj`YYpe;^g~Vd`lCX)ME@8=riJSl`afZ zblp{1|P#regrv9@Ji-pki$HTK!ze9?>S4#Gv;j$-YEgVNGE ziU?3Df3a4rbRRkX<=m|RYp-KZ3Xix+?yB79(bI1RjGL6}m_&!e53_g7HZ;00B$RW} zfgX?nv+weK3wb!Vtf#BP2Tu&?HN$?OJvn|;z4z+Q*k3M5m{3_efmK|3Am)?S4PW@j zc@DG;U#H$H3%^xQlQE%QTOpD(s<`)jQk_a3&-LZeu(Pp0gZ<%@dK0k!6_F`{f64Ey zALEmk)}g?|4rBBJJElU=#x0kWkcWq|h!>4{vbH_t_>7TU5c;SY##$1c_vT-Y<1b8z zRMYD^yz0PgwKev&2~)D6wl_pf;c-CFS((;siO}5+Tqce4_y8M*zR?ySo z7?BzFu4FbJ2tTSkTpIyB2o47lZlGs}0SSef)*{bOyX3?5rmqrJ9x*>F2^Tj`a%UBW zjE3LxL-o-H#lN{;GQj(C^`&A9Ly;%|BzUuhptaQuC`T1)VKnv`_J;=+WO^R&CO%* zea5bd->!mdi4E$#R;qiVIUT=JGp1x$Bfn+jsP`dL-M2YYA}>V6m!AVHBXm!*>x68$ zLSv*0^tB@tktg_^N@kQM2YVfD`V-3`Po>UApVrTnUPyCJi$_kQ9A(4H#(zD zZ`FTYS7n0Gy3F%s2t6&yHJx)|)*YV~G}&DM)dV=AQm&@>w5v0kxwr@wHqkOZ zIo*m+dUxHBS1>J*6vukE&b?eEQgnUJQxEz+dTTpouzG^vb*>SKl4^Fxb zW46|GV}V6?KQ6}Hq>O>5dPVCR5#h`YZ+?LGE|u7F$6AQ2Za6^|)K^kAQLq~)l3Q%m z!91%Rs!jb0B|-c6KRMK?mbpxg6FBUq3>p0J!--2(7V5t)Qj z4IG|T|LKUsRO0nTmP~@h$5I{b`)BYML?6oKMZv#kvGgtgb)UkVf zz6pU^O6v`gQg{r&y6OjGbO_F;PBp{_uF3$kq>fO=rNjXcV>{oX(j03qapoM7l1bic zIjlGu5BA3*AN9ZGVATE7_y801c5%~~6!f?-spy4GI85RQ!tG`4d+P9_XGjL@uu_P8 zM|Hj`=mL0W4_GwK!%k2_1MgF7IJMkh|PjAZ^!Ph`lFE z>+NMMsH~H~qLsb!Ateqxwas=T5erC6LR!$5?$9DC`(e@k2Zpf!(us#d^bB9=%^}Jf zz%i5uKTHdleVPc=pq`6ngLdDdDOXK6s4Z&@0c0;-h(z0Eal@sWH&0>?e+}gP?+|I5 z`)mbl_HB6i^$~YTmS{m}m{dbO#_Z1mJfE!+A}wz7ZqJR$AdY_6lzl3aWRR`Sr>^HD zfDR6X>jlw6wQjke9MoHD)&n`7C<#;?uZ6UDHr|M1=)Nbw9QD*6+#9TuC*cQG1@|^^ zz1tZ5v3dELnfpK>W7q;+ARG{El(o~<3B}@(L(;e96g@iID~z)GxK?`T&0DhSfu1S1 z(7H?P#A99gJ{FhcBsdHdy}WX|moORDu&xvW^bP_MM@sh&^EJ>ofe9 z$=de?4ti=Cr&e{S4- Y>xe5^<660}4_rBM9FMK6D)%t#A8L%a9RL6T literal 0 HcmV?d00001 From 877fe3d3aa9820567202d33ba3b3c831a67384f1 Mon Sep 17 00:00:00 2001 From: tangqian Date: Thu, 25 May 2023 15:55:27 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E5=85=85=E5=80=BC=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/shop/service/order/impl/StoreOrderServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java index 4e186ad42..cbbb3d003 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java @@ -1464,7 +1464,7 @@ public class StoreOrderServiceImpl extends ServiceImpl infoDOS = phoneRecordMapper.selectList(Wrappers.lambdaQuery() - .eq(PhoneRecordDO::getPhone, user.getMobile()) + .eq(PhoneRecordDO::getPhone, request.getUserPhone()) .eq(PhoneRecordDO::getDeleted, 0) .in(PhoneRecordDO::getRechargeGearId, collect));