Commit a42a6cb5 authored by Xuguangxing's avatar Xuguangxing

fix: 解决收银台支付完成回调

parent 5b4297e3
......@@ -53,12 +53,14 @@ export default {
}
}
},
$route() {
$route(v) {
this.$nextTick(() => {
this.$refs.gdShare.shareCloseChange(); //切换页面隐藏分享弹窗
document
.querySelectorAll('.cr-overlay')
.forEach(e => !e.parentNode.className.includes('share') && e.parentNode.removeChild(e));
document.querySelectorAll('.cr-overlay').forEach(e => {
!e.parentNode.className.includes('share') &&
!v.name == 'payWaiting' &&
e.parentNode.removeChild(e);
});
store.dispatch('change_show_mini_app_guide', {
bool: !isApp && !isWxMp && !isWechat ? true : false,
pointer: this
......
......@@ -28,7 +28,6 @@ import { queryPayStatus } from '@/api/pay.api';
import cookies from '@/service/cookieStorage.service';
import { goUrlExtends } from './extends';
import { isApp } from '@/service/validation.service';
import localStorage from '@/service/localStorage.service';
export default {
components: {},
extends: goUrlExtends,
......@@ -52,7 +51,6 @@ export default {
}
},
mounted() {
this.getQuery();
this.$dialog({
message: '请确认订单已完成支付',
confirmButtonText: '已完成支付',
......@@ -74,12 +72,6 @@ export default {
navigateBack() {
this.$router.replace({ name: 'orderList', params: { status: 0 } });
},
getQuery() {
this.returnUrl = cookies.get('returnUrl') || '';
if (localStorage.get('hideOrder')) {
this.isOrder = false;
}
},
loop() {
this.query();
this.timer = setInterval(() => {
......
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