bug修复

This commit is contained in:
2024-04-26 19:01:31 +08:00
parent 68cce822be
commit eb1abb69fd
5 changed files with 31 additions and 22 deletions

View File

@@ -46,7 +46,7 @@
<script lang='ts' setup>
import { pay, progress } from '@/api/groupbuy';
import { OrderBean } from '@/api/order/types';
import { parseParameter, sortASCII } from '@/utils';
import { parseParameter, showToast, sortASCII } from '@/utils';
import { hexMD5 } from '@/utils/common/md5';
import { useUserStore } from '@/store';
import { handlePayResult } from '@/utils/order';
@@ -82,11 +82,17 @@ const buildSqbParams = computed(() => {
const navigateTo = (e: any) => {
handlePayResult(orderBean.value?.id, e, {
onSuccess: () => {
pay({
'orderId': orderBean.value?.id,
'result': 'xxx'
}).then(res => {
uni.navigateBack();
showToast('支付成功', {
icon: 'success',
complete: () => {
pay({
'orderId': orderBean.value?.id,
'result': 'xxx'
}).then(res => {
uni.navigateBack();
});
uni.hideLoading();
}
});
}
});