Commit 330d972fef38ce9f2430d0788925d92d6417fc03
1 parent
390f9296
商品详情页优化
Showing
1 changed file
with
7 additions
and
0 deletions
src/pages/goodDetails/goodDetails.vue
| ... | ... | @@ -610,6 +610,13 @@ export default { |
| 610 | 610 | window["appSelectAddressCallback"] = function (result) { |
| 611 | 611 | that.appSelectAddressCallback(result); |
| 612 | 612 | }; |
| 613 | + // 页面显示监听 | |
| 614 | + document.addEventListener('visibilitychange', () => { | |
| 615 | + // 页面显示出来隐藏底部支付模块 | |
| 616 | + if (document.hidden === false) { | |
| 617 | + this.show = false; | |
| 618 | + } | |
| 619 | + }); | |
| 613 | 620 | // 原生支付完成回调隐藏底部弹窗 |
| 614 | 621 | // window["appPaymentCallback"] = function (result) { |
| 615 | 622 | // that.show = false; | ... | ... |