...
|
...
|
@@ -124,6 +124,16 @@ |
|
|
detail: {}
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.reload();
|
|
|
|
|
|
document.addEventListener('visibilitychange', () => {
|
|
|
if (!document.hidden && yoho.store.get('refundStatus')) {
|
|
|
this.reload();
|
|
|
yoho.store.set('refundOrder', true);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
reload() {
|
|
|
this.id = '';
|
...
|
...
|
@@ -182,21 +192,13 @@ |
|
|
}).then(data => {
|
|
|
if (data.code === 200) {
|
|
|
_this.reload();
|
|
|
yoho.store.set('refundOrder', true);
|
|
|
} else {
|
|
|
tip(data.message);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.reload();
|
|
|
|
|
|
document.addEventListener('visibilitychange', () => {
|
|
|
if (!document.hidden && yoho.store.get('refundStatus')) {
|
|
|
this.reload();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|