Commit 8ff02282 authored by 袁玲利's avatar 袁玲利

Merge branch 'v_req_11.2' into uat

parents 2d45a297 7c5b634b
......@@ -20,6 +20,12 @@ var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") {
gHost = "https://uat-pay.xiaopay.net";
}
window.addEventListener('beforeunload', function(e) {
// 在此处添加需要执行的代码
// 例如:发送请求、保存数据等
// 注意:在有些浏览器上,这里不能弹出提示框,只能做些无感知操作
console.log('zzzzzzzzzzzzzzzzzzzzzzz')
});
export default {
data() {
return {
......@@ -228,7 +234,7 @@ export default {
});
},
},
onHide() {
beforeDestroy() {
console.log('111111111')
this.params.behavior = "viewPage";
this.params.data = "closePage";
......@@ -238,16 +244,6 @@ export default {
this.timer = null;
}
},
beforeRouteLeave(to,from,next){
console.log('222222222222')
wx.miniProgram.postMessage({
data: {
cardId: 0,
title: '电子名片'
}
})
next()
},
};
</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