1

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