feat: 修复商品下单节流
This commit is contained in:
@@ -70,6 +70,7 @@ import {
|
||||
commodityDailyPriceList,
|
||||
orderPay,
|
||||
} from "@/request/api/GoodsApi";
|
||||
import { ThrottleUtils } from "@/utils";
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import ImageSwiper from "@/components/ImageSwiper/index.vue";
|
||||
import GoodInfo from "./components/GoodInfo/index.vue";
|
||||
@@ -164,7 +165,7 @@ const showConfirmPopup = () => {
|
||||
};
|
||||
|
||||
// 处理确认订单
|
||||
const handleConfirmOrder = async (orderData) => {
|
||||
const handleConfirmOrder = ThrottleUtils.createThrottle(async (orderData) => {
|
||||
console.log("确认订单---1:", orderData);
|
||||
const { goodsData } = orderData;
|
||||
// 购买的商品id
|
||||
@@ -260,7 +261,7 @@ const handleConfirmOrder = async (orderData) => {
|
||||
});
|
||||
},
|
||||
});
|
||||
};
|
||||
}, 1000);
|
||||
|
||||
// 处理关闭弹窗
|
||||
const handleCloseConfirm = () => {
|
||||
|
||||
Reference in New Issue
Block a user