From af85493863a408afdcaf5b776dca377b15e454c6 Mon Sep 17 00:00:00 2001 From: Ryan Ran <1410277647@qq.com> Date: Tue, 30 Sep 2025 13:33:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(buyer=E7=AB=AF=E5=8D=87=E7=BA=A7node?= =?UTF-8?q?=E7=89=88=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0=20.npmrc=20=E5=92=8C?= =?UTF-8?q?=20.yarnrc=20=E6=96=87=E4=BB=B6=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=BC=95=E6=93=8E=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20package.json=20=E4=B8=AD=E7=9A=84=20NODE=5FOPTIONS=20?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=EF=BC=8C=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84=20/deep/?= =?UTF-8?q?=20=E9=80=89=E6=8B=A9=E5=99=A8=E4=B8=BA=20::v-deep=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BE=9D=E8=B5=96=E7=AE=A1=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E5=85=BC=E5=AE=B9=E6=80=A7=EF=BC=8C=E5=85=BC?= =?UTF-8?q?=E5=AE=B9node16=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/.npmrc | 1 + buyer/.yarnrc | 1 + buyer/package.json | 20 +++++++++++-------- buyer/src/components/Search.vue | 4 ++-- buyer/src/components/card/index.vue | 6 +++--- buyer/src/components/drawer/Main.vue | 4 ++-- .../goodsDetail/ShowGoodsDetail.vue | 4 ++-- .../indexDecorate/modelList/forYour.vue | 4 ++-- .../pages/home/memberCenter/AccountSafe.vue | 4 ++-- .../pages/home/memberCenter/Distribution.vue | 2 +- .../pages/home/orderCenter/OrderDetail.vue | 6 +++--- buyer/vue.config.js | 2 +- 12 files changed, 32 insertions(+), 26 deletions(-) create mode 100644 buyer/.npmrc create mode 100644 buyer/.yarnrc diff --git a/buyer/.npmrc b/buyer/.npmrc new file mode 100644 index 00000000..c0c80ba4 --- /dev/null +++ b/buyer/.npmrc @@ -0,0 +1 @@ +engine-strict=false diff --git a/buyer/.yarnrc b/buyer/.yarnrc new file mode 100644 index 00000000..4f14322d --- /dev/null +++ b/buyer/.yarnrc @@ -0,0 +1 @@ +--ignore-engines true diff --git a/buyer/package.json b/buyer/package.json index b11b6b94..7e15fa3d 100644 --- a/buyer/package.json +++ b/buyer/package.json @@ -3,9 +3,12 @@ "version": "1.0.0", "private": true, "scripts": { - "dev": "vue-cli-service serve", - "serve": "vue-cli-service serve", - "build": "vue-cli-service build" + "serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve", + "build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build", + "dev": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve" + }, + "engines": { + "node": ">=14" }, "dependencies": { "@amap/amap-jsapi-loader": "0.0.7", @@ -15,11 +18,10 @@ "less": "^2.7.0", "less-loader": "^5.0.0", "mv-count-down": "^0.1.15", - "node-sass": "^4.14.1", - "postcss-loader": "^7.0.1", + "sass": "^1.63.6", + "postcss-loader": "^4.3.0", "psl": "^1.8.0", "qs": "^6.9.4", - "sass-loader": "^7.3.1", "uuid": "^8.3.2", "view-design": "^4.3.2", "vue": "^2.6.11", @@ -32,7 +34,7 @@ "devDependencies": { "@vue/cli-service": "~4.5.0", "compression-webpack-plugin": "^5.0.0", - "sass-loader": "^7.3.1", + "sass-loader": "^10.4.1", "uglifyjs-webpack-plugin": "^2.2.0", "vue-template-compiler": "^2.6.11" }, @@ -42,6 +44,8 @@ "not dead" ], "resolutions": { - "minimatch": "^3.1.2" + "minimatch": "^3.1.2", + "node-sass": "npm:sass@^1.63.6", + "@achrinza/node-ipc": "9.2.2" } } diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue index 5e9dcfdd..3e7e73bd 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -173,7 +173,7 @@ export default { border-radius: 18.9px; - /deep/ .ivu-input.ivu-input-large { + ::v-deep .ivu-input.ivu-input-large { border: 1.4px solid $theme_color; box-sizing: border-box; border-radius: 19.6px; @@ -188,7 +188,7 @@ export default { } } - /deep/ .ivu-input-group-append { + ::v-deep .ivu-input-group-append { border-radius: 19.6px !important; cursor: pointer; box-sizing: border-box; diff --git a/buyer/src/components/card/index.vue b/buyer/src/components/card/index.vue index 9dfbc055..9aca6831 100644 --- a/buyer/src/components/card/index.vue +++ b/buyer/src/components/card/index.vue @@ -113,12 +113,12 @@ export default { } } - /deep/ .ivu-card, .ivu-card-head, ._Card { + ::v-deep .ivu-card, .ivu-card-head, ._Card { margin-bottom: 20px; @include white_background_color(); } - /deep/ .ivu-card-head { + ::v-deep .ivu-card-head { position: relative; padding: 0 14px; height: 50px; @@ -140,7 +140,7 @@ export default { cursor: pointer; } - /deep/ .ivu-card-body { + ::v-deep .ivu-card-body { padding: 0 !important; display: none; } diff --git a/buyer/src/components/drawer/Main.vue b/buyer/src/components/drawer/Main.vue index 4b5e3436..2e0b6644 100644 --- a/buyer/src/components/drawer/Main.vue +++ b/buyer/src/components/drawer/Main.vue @@ -147,11 +147,11 @@ export default { justify-content: center; flex-direction: column; } - /deep/.popup .ivu-drawer-body{ + ::v-deep.popup .ivu-drawer-body{ padding: 0!important; background-color: #eee; } - /deep/.popup .ivu-drawer-wrap{ + ::v-deep.popup .ivu-drawer-wrap{ z-index: 3001; } diff --git a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue index 39824e41..c4a1a6d3 100644 --- a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue +++ b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue @@ -326,7 +326,7 @@ export default { .item-intro-img { width: 100%; min-height: 300px; - /deep/ img{ + ::v-deep img{ margin:0 auto; } } @@ -472,7 +472,7 @@ export default { .ivu-tabs-ink-bar { background-color: $theme_color !important; } -/deep/.ivu-tabs-bar{ +::v-deep.ivu-tabs-bar{ border: none; } .item-tabs > .ivu-tabs > .ivu-tabs-bar .ivu-tabs-tab{ diff --git a/buyer/src/components/indexDecorate/modelList/forYour.vue b/buyer/src/components/indexDecorate/modelList/forYour.vue index 9daefb6e..7f4c938c 100644 --- a/buyer/src/components/indexDecorate/modelList/forYour.vue +++ b/buyer/src/components/indexDecorate/modelList/forYour.vue @@ -84,10 +84,10 @@ export default { border-top: 1.4px solid #e2e2e2; } &:hover { - /deep/ .goods-name { + ::v-deep .goods-name { color: $theme_color; } - /deep/ .goods-desc { + ::v-deep .goods-desc { color: $theme_color; } } diff --git a/buyer/src/pages/home/memberCenter/AccountSafe.vue b/buyer/src/pages/home/memberCenter/AccountSafe.vue index fdcceaa0..240fc117 100644 --- a/buyer/src/pages/home/memberCenter/AccountSafe.vue +++ b/buyer/src/pages/home/memberCenter/AccountSafe.vue @@ -54,7 +54,7 @@ export default {