Commit cd18a063 authored by Xuguangxing's avatar Xuguangxing

feat: 确认订单连点

parent ee40dfe8
...@@ -42,7 +42,6 @@ export default { ...@@ -42,7 +42,6 @@ export default {
}, },
orderSubmit(data) { orderSubmit(data) {
console.log(encryption(data), JSON.stringify(encryption(data)));
return http.post(`${talosHost}/api/kdsp/order-info/e/hundredGroupSubmit`, encryption(data)); return http.post(`${talosHost}/api/kdsp/order-info/e/hundredGroupSubmit`, encryption(data));
}, },
// 物流公司列表 // 物流公司列表
......
...@@ -192,7 +192,8 @@ export default { ...@@ -192,7 +192,8 @@ export default {
}, },
// 点击立即下单 // 点击立即下单
async handleBuy() { handleBuy() {
this.$store.dispatch('change_loading', true);
if (!this.orderInfo.addrReceiverInfo?.addrReceiverId) { if (!this.orderInfo.addrReceiverInfo?.addrReceiverId) {
this.$dialog({ this.$dialog({
closeOnClickOverlay: true, closeOnClickOverlay: true,
...@@ -203,11 +204,13 @@ export default { ...@@ -203,11 +204,13 @@ export default {
this.handleToAddress(); this.handleToAddress();
} }
}); });
this.$store.dispatch('change_loading', false);
return; return;
} }
saTrackEvent('H5_UserClickOrderConfirmPageSubmitOrderBtnClick', { saTrackEvent('H5_UserClickOrderConfirmPageSubmitOrderBtnClick', {
order_type: '0元购' order_type: '0元购'
}); });
try {
const { const {
addrReceiverInfo: { addrReceiverId: receiverId }, addrReceiverInfo: { addrReceiverId: receiverId },
calcFeeInfo: { totalFreightFee, totalPayFee: totalFee }, calcFeeInfo: { totalFreightFee, totalPayFee: totalFee },
...@@ -225,6 +228,9 @@ export default { ...@@ -225,6 +228,9 @@ export default {
}) })
}; };
this.orderSubmit(params); this.orderSubmit(params);
} catch (e) {
this.$store.dispatch('change_loading', false);
}
}, },
async orderSubmit(params) { async orderSubmit(params) {
console.log(params); console.log(params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment