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">