Commit 63ad8660 authored by 袁玲利's avatar 袁玲利

'销毁事件'

parent 6f9f1713
...@@ -20,6 +20,7 @@ var gHost = "https://" + window.location.host; ...@@ -20,6 +20,7 @@ var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") { if (window.location.protocol != "https:") {
gHost = "https://uat-pay.xiaopay.net"; gHost = "https://uat-pay.xiaopay.net";
} }
window.postMessage()
export default { export default {
data() { data() {
return { return {
...@@ -228,7 +229,7 @@ export default { ...@@ -228,7 +229,7 @@ export default {
}); });
}, },
}, },
onHide() { onbeforeunload() {
console.log('111111111') console.log('111111111')
this.params.behavior = "viewPage"; this.params.behavior = "viewPage";
this.params.data = "closePage"; this.params.data = "closePage";
...@@ -238,16 +239,6 @@ export default { ...@@ -238,16 +239,6 @@ export default {
this.timer = null; this.timer = null;
} }
}, },
beforeRouteLeave(to,from,next){
console.log('222222222222')
wx.miniProgram.postMessage({
data: {
cardId: 0,
title: '电子名片'
}
})
next()
},
}; };
</script> </script>
......
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