diff --git a/resources/lang/zh_cn/common.php b/resources/lang/zh_cn/common.php index 24c4a6f7..d47facf0 100644 --- a/resources/lang/zh_cn/common.php +++ b/resources/lang/zh_cn/common.php @@ -25,6 +25,7 @@ return [ 'confirm' => '确定', 'no' => '否', 'yes' => '是', + 'delete' => '删除', ]; diff --git a/themes/default/cart/cart.blade.php b/themes/default/cart/cart.blade.php index da236935..92756f3c 100644 --- a/themes/default/cart/cart.blade.php +++ b/themes/default/cart/cart.blade.php @@ -23,13 +23,13 @@ - 商品 - 数量 - 小计 - 操作 + {{ __('shop/cart.index') }} + {{ __('shop/cart.commodity') }} + {{ __('shop/cart.subtotal') }} + {{ __('shop/cart.operate') }} @@ -57,7 +57,7 @@ @{{ product.subtotal_format }} @@ -67,15 +67,15 @@
-
商品总计
+
{{ __('shop/cart.product_total') }}
    -
  • 全部@{{ products.length }}
  • -
  • 已选@{{ total_quantity }}
  • -
  • 总价@{{ amount_format }}
  • +
  • {{ __('shop/cart.all') }}@{{ products.length }}
  • +
  • {{ __('shop/cart.selected') }}@{{ total_quantity }}
  • +
  • {{ __('shop/cart.total_price') }}@{{ amount_format }}
  • {{-- 去结账 --}} - +
@@ -88,11 +88,11 @@
-
您的购物车是空的
-

您可以去看看有哪些想买的

+
{{ __('shop/cart.cart_empty') }}
+

{{ __('shop/cart.go_buy') }}

- 去逛逛 + {{ __('shop/cart.go_shopping') }}
@@ -130,7 +130,7 @@ methods: { checkedBtnToCheckout() { if (!this.products.some(e => e.selected)) { - layer.msg('请选择至少一个商品', ()=>{}) + layer.msg('{{ __('shop/cart.nust_select') }}', ()=>{}) return }