优化 paypal 支付 ui
This commit is contained in:
parent
940b82cdeb
commit
fc663f6c14
|
|
@ -26,8 +26,14 @@
|
||||||
return res.json();
|
return res.json();
|
||||||
}).then(function (orderData) {
|
}).then(function (orderData) {
|
||||||
if (orderData.error) {
|
if (orderData.error) {
|
||||||
layer.alert(orderData.error.details[0].description, function(index){
|
layer.alert(orderData.error.details[0].description, {
|
||||||
window.location.reload();
|
title: '{{ __('common.text_hint') }}',
|
||||||
|
closeBtn: 0,
|
||||||
|
area: ['400px', '240px'],
|
||||||
|
btn: ['{{ __('common.confirm') }}']
|
||||||
|
}, function(index) {
|
||||||
|
window.location.reload();
|
||||||
|
layer.close(index);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return orderData.id;
|
return orderData.id;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue