diff --git a/plugins/Stripe/Static/css/demo.css b/plugins/Stripe/Static/css/demo.css index 30fdbc42..04cd16f6 100644 --- a/plugins/Stripe/Static/css/demo.css +++ b/plugins/Stripe/Static/css/demo.css @@ -4,5 +4,5 @@ */ #bk-stripe-app .form-wrap { - max-width: 400px; + /* max-width: 500px; */ } \ No newline at end of file diff --git a/plugins/Stripe/Views/checkout/payment.blade.php b/plugins/Stripe/Views/checkout/payment.blade.php index 549f597f..dbacb32b 100644 --- a/plugins/Stripe/Views/checkout/payment.blade.php +++ b/plugins/Stripe/Views/checkout/payment.blade.php @@ -18,13 +18,13 @@
- - + - - + diff --git a/themes/default/layout/master.blade.php b/themes/default/layout/master.blade.php index 630ac543..3568f15e 100644 --- a/themes/default/layout/master.blade.php +++ b/themes/default/layout/master.blade.php @@ -38,6 +38,20 @@ isLogin: !!{{ current_customer()->id ?? 'null' }}, guestCheckout: !!{{ system_setting('base.guest_checkout', 1) }} } + + // 如果页面使用了ElementUI,且当前语言不是中文,则加载对应的语言包 + @if (locale() != 'zh_cn') + if (typeof ELEMENT !== 'undefined') { + const elLocale = '{{ asset('vendor/element-ui/language/'.locale().'.js') }}'; + document.write(" @stack('add-scripts')