Commit a42a6cb5 authored by Xuguangxing's avatar Xuguangxing

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

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