|
@@ -9,7 +9,6 @@ import {
|
|
|
getOrderDetail
|
|
getOrderDetail
|
|
|
} from '@/api/payment';
|
|
} from '@/api/payment';
|
|
|
import { useUserStore } from '@/store/modules/users';
|
|
import { useUserStore } from '@/store/modules/users';
|
|
|
-import { getHttpOrigin } from '/src/helpers/utils';
|
|
|
|
|
|
|
|
|
|
// API返回的套餐类型
|
|
// API返回的套餐类型
|
|
|
interface VipPackageApiItem {
|
|
interface VipPackageApiItem {
|
|
@@ -176,7 +175,11 @@ export default defineComponent({
|
|
|
await userStore.getInfo();
|
|
await userStore.getInfo();
|
|
|
emit('success');
|
|
emit('success');
|
|
|
emit('close');
|
|
emit('close');
|
|
|
- } else if (data.status === 'FAILED' || data.status === 'FAIL' || data.status === 'CLOSED') {
|
|
|
|
|
|
|
+ } else if (
|
|
|
|
|
+ data.status === 'FAILED' ||
|
|
|
|
|
+ data.status === 'FAIL' ||
|
|
|
|
|
+ data.status === 'CLOSED'
|
|
|
|
|
+ ) {
|
|
|
stopPolling();
|
|
stopPolling();
|
|
|
paymentStatus.value = 'failed';
|
|
paymentStatus.value = 'failed';
|
|
|
window.$message.error('支付失败');
|
|
window.$message.error('支付失败');
|
|
@@ -323,9 +326,6 @@ export default defineComponent({
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class={styles.btnGroup}>
|
|
<div class={styles.btnGroup}>
|
|
|
- <NButton round size="large" onClick={() => emit('close')}>
|
|
|
|
|
- 取消
|
|
|
|
|
- </NButton>
|
|
|
|
|
<NButton
|
|
<NButton
|
|
|
round
|
|
round
|
|
|
size="large"
|
|
size="large"
|