|
@@ -154,23 +154,6 @@
|
|
await getOrderInfo()
|
|
await getOrderInfo()
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- // ========== 积分 ==========
|
|
|
|
- /**
|
|
|
|
- * 使用积分抵扣
|
|
|
|
- */
|
|
|
|
- const changeIntegral = async () => {
|
|
|
|
- state.pointStatus = !state.pointStatus;
|
|
|
|
- await getOrderInfo();
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- // 选择优惠券
|
|
|
|
- async function onSelectCoupon(couponId) {
|
|
|
|
- state.orderPayload.couponId = couponId;
|
|
|
|
- await getOrderInfo();
|
|
|
|
- state.showCoupon = false;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// 提交订单
|
|
// 提交订单
|
|
function onConfirm() {
|
|
function onConfirm() {
|
|
if (addressState.value.deliveryType === 1 && !addressState.value.addressInfo.id) {
|
|
if (addressState.value.deliveryType === 1 && !addressState.value.addressInfo.id) {
|
|
@@ -215,7 +198,7 @@
|
|
};
|
|
};
|
|
const res = await payOrderSubmit(obj)
|
|
const res = await payOrderSubmit(obj)
|
|
console.log('提交支付订单payOrderSubmit:', res)
|
|
console.log('提交支付订单payOrderSubmit:', res)
|
|
- Snackbar.warning('支付成功!')
|
|
|
|
|
|
+ Snackbar.warning('支付成功,请前往我的订单查看!')
|
|
emit('paySuccess')
|
|
emit('paySuccess')
|
|
userStore.getUserInfos()
|
|
userStore.getUserInfos()
|
|
}
|
|
}
|
|
@@ -277,7 +260,6 @@
|
|
// id: data.id,
|
|
// id: data.id,
|
|
// });
|
|
// });
|
|
// }
|
|
// }
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// 检查库存 & 计算订单价格
|
|
// 检查库存 & 计算订单价格
|