1

parent db712729
......@@ -480,6 +480,10 @@ function formatDate(inputDate) {
return `${year}-${monthDay}`;
}
const payNow = async (data) => {
xma.showLoading({
title: '正在支付',
mask: true,
});
groupBuyConfirmFn(activeMeal.value.prodId, activeMeal.value.skuId).then((res) => {
groupBuyUpdateFnQg().then(() => {
const qgParams = {
......@@ -490,8 +494,10 @@ const payNow = async (data) => {
};
groupBuyCreate(qgParams).then((res) => {
if (res.code === 0) {
xma.hideLoading();
openUrl(res.data.result);
} else {
xma.hideLoading();
groupBuyConfirmFn(activeMeal.value.prodId, activeMeal.value.skuId);
}
});
......
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