bug修复
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user