From 32556723bb2b067837f803d76a31bd88e8bdf5d2 Mon Sep 17 00:00:00 2001 From: Xulinchuan <2026734208@qq.com> Date: Tue, 26 Aug 2025 10:20:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=A1=B9=E7=9B=AE=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E8=BF=9B=E5=8E=BB=E9=BB=98=E8=AE=A4=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=99=BB=E5=BD=95=E8=80=8C=E4=B8=8D=E6=98=AF=E5=8E=BB?= =?UTF-8?q?=E5=BE=80=E4=B8=BB=E7=A8=8B=E5=BA=8F=E9=A6=96=E9=A1=B5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/src/utils/permission.js | 13 ++++--- .../src/utils/permission.js | 15 ++++---- .../src/layouts/component/Header/index.vue | 2 +- sub-operation-service/src/utils/permission.js | 3 +- .../views/ecommerce/agriculturalDetail.vue | 34 +++++++++++++++++-- .../views/ecommerce/components/goodsItem.vue | 4 +-- 6 files changed, 53 insertions(+), 18 deletions(-) diff --git a/main/src/utils/permission.js b/main/src/utils/permission.js index 8880f74..1d1b323 100644 --- a/main/src/utils/permission.js +++ b/main/src/utils/permission.js @@ -48,11 +48,14 @@ router.beforeEach(async (to, from, next) => { } } } else { - if (whiteList.indexOf(to.path) !== -1) { - next(); - } else { - next(`/login?redirect=${to.path}`); - } + + next(); + + // if (whiteList.indexOf(to.path) !== -1) { + // next(); + // } else { + // next(`/login?redirect=${to.path}`); + // } } }); diff --git a/sub-government-affairs-service/src/utils/permission.js b/sub-government-affairs-service/src/utils/permission.js index 2abbd21..7a41171 100644 --- a/sub-government-affairs-service/src/utils/permission.js +++ b/sub-government-affairs-service/src/utils/permission.js @@ -42,14 +42,17 @@ router.beforeEach(async (to, from, next) => { } else { NProgress.done(); if (whiteList.indexOf(to.path) !== -1) { - next(); + // next(); + window.location.href = `/login?redirect=${encodeURIComponent(to.fullPath)}`; } else { - if (qiankunWindow.__POWERED_BY_QIANKUN__) { - window.location.href = VITE_APP_MIAN_URL; - return; - } - next(`/login?redirect=${to.path}`); + // if (qiankunWindow.__POWERED_BY_QIANKUN__) { + // window.location.href = VITE_APP_MIAN_URL; + // return; + // } + // next(`/login?redirect=${to.path}`); + window.location.href = `/login?redirect=${encodeURIComponent(to.fullPath)}`; } + } }); diff --git a/sub-operation-service/src/layouts/component/Header/index.vue b/sub-operation-service/src/layouts/component/Header/index.vue index 834ba95..f964112 100644 --- a/sub-operation-service/src/layouts/component/Header/index.vue +++ b/sub-operation-service/src/layouts/component/Header/index.vue @@ -17,7 +17,7 @@
-
购物车
+
采购车
diff --git a/sub-operation-service/src/utils/permission.js b/sub-operation-service/src/utils/permission.js index 68d91ec..ea14692 100644 --- a/sub-operation-service/src/utils/permission.js +++ b/sub-operation-service/src/utils/permission.js @@ -48,7 +48,8 @@ router.beforeEach(async (to, from, next) => { } } else { if (whiteList.indexOf(to.path) !== -1) { - next(); + // next(); + window.location.href = `/login?redirect=${encodeURIComponent(to.fullPath)}`; } else { next(`/login?redirect=${to.path}`); } diff --git a/sub-operation-service/src/views/ecommerce/agriculturalDetail.vue b/sub-operation-service/src/views/ecommerce/agriculturalDetail.vue index 3f62a63..65dde73 100644 --- a/sub-operation-service/src/views/ecommerce/agriculturalDetail.vue +++ b/sub-operation-service/src/views/ecommerce/agriculturalDetail.vue @@ -26,6 +26,34 @@
+ +
+
价       格:
+
+
+

+ + {{ currentGood.priceRange?.[0] }} +

+

{{ currentGood.numberRange?.[0] }}

+
+
+

+ + {{ currentGood.priceRange?.[1] }} +

+

{{ currentGood.numberRange?.[1] }}

+
+
+

+ + {{ currentGood.priceRange?.[2] }} +

+

{{ currentGood.numberRange?.[2] }}

+
+
+
+
发货地址:{{ currentGood.detailAddress }} 保       障:{{ @@ -35,7 +63,7 @@
-
规格:
+
规       格:
- 立即购买 + 立即订购
- 加入购物车 + 加采购车
diff --git a/sub-operation-service/src/views/ecommerce/components/goodsItem.vue b/sub-operation-service/src/views/ecommerce/components/goodsItem.vue index 29f7ef6..20b9663 100644 --- a/sub-operation-service/src/views/ecommerce/components/goodsItem.vue +++ b/sub-operation-service/src/views/ecommerce/components/goodsItem.vue @@ -8,9 +8,9 @@
{{ data.goodName }}
{{ data.goodPrice }}
-
+