From 3b9fd30846c2c43130dec826cb6b7b861f10f4d8 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Sat, 04 Feb 2023 15:19:36 +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