From 1aea60d64276ab2b960e21ca3fc5716ff89dc7fe Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Thu, 30 Mar 2023 18:00:41 +0800 Subject: [PATCH] 优化跨端通讯协议,支持超时自动释放资源,支持异常通讯拦截 --- common/WxH5Pay.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/common/WxH5Pay.js b/common/WxH5Pay.js index be9fd8a..70256a4 100644 --- a/common/WxH5Pay.js +++ b/common/WxH5Pay.js @@ -14,7 +14,7 @@ this._callback = callback; const that = this; Taro.showModal({ - title: type === 'ask' ? '微信支付未响应?' : '微信支付仍未响应?', + content: type === 'ask' ? '微信支付未响应?' : '微信支付仍未响应?', confirmColor: '#4a8aff', confirmText: type === 'ask' ? '点击重试' : '重载页面', success: res => { @@ -29,6 +29,7 @@ }); setTimeout(() => { this.$modal = $('.taro__modal'); + this.$modal.find('>div>div').css('textAlign', 'center'); }, 10); }, cancel() { -- Gitblit v1.9.1