From 52c856b9804415920efcc2147c9d812cdd8f50cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?21=E4=B8=96=E7=BA=AA=E5=B0=8F=E5=85=AB=E8=B7=AF?= <2529156631@qq.com> Date: Sat, 19 Oct 2024 23:05:56 +0800 Subject: [PATCH 1/3] =?UTF-8?q?uniapp=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91?= =?UTF-8?q?=EF=BC=9A=20=E6=96=B0=E5=A2=9E=E6=B7=BB=E5=8A=A0=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6=EF=BC=8C=E6=8F=90=E4=BA=A4=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E7=AB=8B=E5=8D=B3=E8=B4=AD=E4=B9=B0=EF=BC=8C=E4=BB=A3?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E5=88=86=E9=94=80=E5=BA=97=E9=93=BA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0loading=20=E7=A6=81=E7=94=A8=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coreshop-button/coreshop-button.vue | 29 ++++++----- .../CoreShop/pages/cart/cart.vue | 11 +--- .../classify-four/classify-four.vue | 16 ++++-- .../goods-detail-sku/goods-detail-sku.scss | 11 ++++ .../goods-detail-sku/goods-detail-sku.vue | 52 ++++++++++++++++--- .../pages/components/pay-method/index.vue | 27 ++++++---- .../CoreShop/pages/order/pay/pay.vue | 15 +++--- .../CoreShop/pages/order/submit/submit.vue | 13 +++-- .../subpackage/agency/store-set/index.vue | 13 +++-- .../distribution/store-set/index.vue | 13 +++-- 10 files changed, 138 insertions(+), 62 deletions(-) diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue index dde49887..371e8807 100644 --- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue +++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/cart/cart.vue b/CoreCms.Net.Uni-App/CoreShop/pages/cart/cart.vue index dc720aa7..4a9e7d1f 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/cart/cart.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/cart/cart.vue @@ -101,9 +101,6 @@ - - - @@ -313,12 +310,8 @@ /** 去购买 */ const handleGoToBuy = () => { - let ids : Array = []; - state.cartList.forEach((item : CartListType) => { - if (item.select) { - ids.push(item.id) - } - }) + const ids : Array= state.cartList.filter(x=>x.select).map(x=>x.id); + if (ids.length > 0) { handleRouteNavigateTo(`/pages/order/submit/submit?cartIds=${ids.join(',')}`) } else { diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify-page/classify-four/classify-four.vue b/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify-page/classify-four/classify-four.vue index 10c26825..8f6a3884 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify-page/classify-four/classify-four.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify-page/classify-four/classify-four.vue @@ -67,15 +67,15 @@ + :safeAreaInsetBottom="false" :buyNowNowloading="buyNowLoading" :addCartloading="addCartLoading" + @handleChangePopup="handleChangePopup" @handleAddCart="handleAddCart" @handleBuyNow="handleBuyNow">