From fc663f6c14f558273fe96051ed705e462d8b01e0 Mon Sep 17 00:00:00 2001 From: pushuo Date: Tue, 22 Nov 2022 14:20:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20paypal=20=E6=94=AF?= =?UTF-8?q?=E4=BB=98=20ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/Paypal/Views/checkout/payment.blade.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/Paypal/Views/checkout/payment.blade.php b/plugins/Paypal/Views/checkout/payment.blade.php index 5c1cf7a7..ef01ed7c 100644 --- a/plugins/Paypal/Views/checkout/payment.blade.php +++ b/plugins/Paypal/Views/checkout/payment.blade.php @@ -26,8 +26,14 @@ return res.json(); }).then(function (orderData) { if (orderData.error) { - layer.alert(orderData.error.details[0].description, function(index){ - window.location.reload(); + layer.alert(orderData.error.details[0].description, { + title: '{{ __('common.text_hint') }}', + closeBtn: 0, + area: ['400px', '240px'], + btn: ['{{ __('common.confirm') }}'] + }, function(index) { + window.location.reload(); + layer.close(index); }); } return orderData.id;