|
@@ -140,19 +140,19 @@ export default defineComponent({
|
|
// const orderNo = state.orderNo
|
|
// const orderNo = state.orderNo
|
|
const orderTimer = setInterval(async () => {
|
|
const orderTimer = setInterval(async () => {
|
|
// 判断是否在当前路由,如果不是则清除定时器
|
|
// 判断是否在当前路由,如果不是则清除定时器
|
|
- if (route.name != 'orderDetail') {
|
|
|
|
|
|
+ if (route.name != 'order-detail') {
|
|
clearInterval(orderTimer);
|
|
clearInterval(orderTimer);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
state.orderTimer = orderTimer;
|
|
state.orderTimer = orderTimer;
|
|
try {
|
|
try {
|
|
const { data } = await request.post(
|
|
const { data } = await request.post(
|
|
- '/api-student/open/userOrder/paymentStatus/' + state.orderNo,
|
|
|
|
|
|
+ '/edu-app/open/userOrder/paymentStatus/' + state.orderNo,
|
|
{
|
|
{
|
|
hideLoading: true
|
|
hideLoading: true
|
|
}
|
|
}
|
|
);
|
|
);
|
|
- // console.log(data)
|
|
|
|
|
|
+
|
|
if (data.status !== 'WAIT_PAY' && data.status !== 'PAYING') {
|
|
if (data.status !== 'WAIT_PAY' && data.status !== 'PAYING') {
|
|
// 默认关闭支付二维码弹窗
|
|
// 默认关闭支付二维码弹窗
|
|
state.showQrcode = false;
|
|
state.showQrcode = false;
|
|
@@ -236,7 +236,7 @@ export default defineComponent({
|
|
};
|
|
};
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @description 学生注册 - 汇付
|
|
|
|
|
|
+ * @description 学生登记 - 汇付
|
|
* @param callback 回调方式
|
|
* @param callback 回调方式
|
|
*/
|
|
*/
|
|
const buyOrchestra = async (callback: any) => {
|
|
const buyOrchestra = async (callback: any) => {
|
|
@@ -270,7 +270,6 @@ export default defineComponent({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
);
|
|
);
|
|
- // console.log(data)
|
|
|
|
state.pay_channel = data.paymentChannel;
|
|
state.pay_channel = data.paymentChannel;
|
|
if (data.status !== 'WAIT_PAY' && data.status !== 'PAYING') {
|
|
if (data.status !== 'WAIT_PAY' && data.status !== 'PAYING') {
|
|
checkOrderTypeJump();
|
|
checkOrderTypeJump();
|
|
@@ -452,8 +451,9 @@ export default defineComponent({
|
|
/>
|
|
/>
|
|
</Popup>
|
|
</Popup>
|
|
|
|
|
|
- <OPopup
|
|
|
|
- v-model:modelValue={state.showQrcode}
|
|
|
|
|
|
+ <Popup
|
|
|
|
+ v-model:show={state.showQrcode}
|
|
|
|
+ round
|
|
onClose={() => {
|
|
onClose={() => {
|
|
// 二维码关闭时清除定时器
|
|
// 二维码关闭时清除定时器
|
|
clearInterval(state.orderTimer);
|
|
clearInterval(state.orderTimer);
|
|
@@ -463,7 +463,7 @@ export default defineComponent({
|
|
pay_channel={state.pay_channel}
|
|
pay_channel={state.pay_channel}
|
|
orderType={orderType.value}
|
|
orderType={orderType.value}
|
|
/>
|
|
/>
|
|
- </OPopup>
|
|
|
|
|
|
+ </Popup>
|
|
|
|
|
|
<OPopup v-model:modelValue={state.authShow}>
|
|
<OPopup v-model:modelValue={state.authShow}>
|
|
<UserAuth onSuccess={onAuthSuccess} hideHeader={!browser().isApp} />
|
|
<UserAuth onSuccess={onAuthSuccess} hideHeader={!browser().isApp} />
|