Commit f6a05fdf authored by 袁玲利's avatar 袁玲利

支付宝消费报告返回事件

parent 7f934cbc
...@@ -1521,21 +1521,6 @@ ...@@ -1521,21 +1521,6 @@
</template> </template>
<script> <script>
// 在H5页面中
if (window.AlipayJSBridge) {
AlipayJSBridge.call("onBackPressed", {
// 回调函数
onBackPressed: function () {
// 处理返回事件
console.log("用户点击了返回按钮");
my.navigateTo({
url: "/pages/home/home",
});
// 可以选择直接关闭当前页面
// AlipayJSBridge.call('closeWebview');
},
});
}
import { requestPost } from "../ApplyConsumption/common/request.js"; import { requestPost } from "../ApplyConsumption/common/request.js";
var gHost = "https://" + window.location.host; var gHost = "https://" + window.location.host;
var envVersion = "release"; var envVersion = "release";
...@@ -4616,6 +4601,13 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4616,6 +4601,13 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
this.imageDialogShow = true; this.imageDialogShow = true;
}, },
}, },
onUnload(){
if(this.from == 'alipay'){
my.navigateTo({
url: "/pages/home/home",
});
}
}
}; };
</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