From 6053e679158bbe0189471cd7908e0a8167c8425b Mon Sep 17 00:00:00 2001 From: sl <2436637291@qq.com> Date: Fri, 19 Aug 2022 18:03:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80=E8=AF=8D=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/lang/zh_cn/common.php | 1 + resources/lang/zh_cn/shop/account.php | 4 ++-- resources/lang/zh_cn/shop/products.php | 7 +++++++ themes/default/cart/mini.blade.php | 2 +- .../default/components/account/sidebar.blade.php | 12 ++++++------ themes/default/product.blade.php | 16 ++++++++++------ themes/default/shared/product.blade.php | 4 ++-- themes/default/shared/steps.blade.php | 8 ++++---- 8 files changed, 33 insertions(+), 21 deletions(-) diff --git a/resources/lang/zh_cn/common.php b/resources/lang/zh_cn/common.php index d47facf0..a65e50f2 100644 --- a/resources/lang/zh_cn/common.php +++ b/resources/lang/zh_cn/common.php @@ -26,6 +26,7 @@ return [ 'no' => '否', 'yes' => '是', 'delete' => '删除', + 'sign_out' => '退出登录', ]; diff --git a/resources/lang/zh_cn/shop/account.php b/resources/lang/zh_cn/shop/account.php index 00b5647a..7c695835 100644 --- a/resources/lang/zh_cn/shop/account.php +++ b/resources/lang/zh_cn/shop/account.php @@ -38,14 +38,14 @@ return [ ], 'wishlist' => [ - 'index' => '收藏列表', + 'index' => '我的收藏', 'product' => '产品', 'price' => '价格', 'check_details' => '查看详情', ], 'order' => [ - 'index' => '订单列表', + 'index' => '我的订单', 'completed' => '已确认收货', 'order_details' => '订单详情', 'amount' => '金额', diff --git a/resources/lang/zh_cn/shop/products.php b/resources/lang/zh_cn/shop/products.php index f5a60a09..450b53d8 100644 --- a/resources/lang/zh_cn/shop/products.php +++ b/resources/lang/zh_cn/shop/products.php @@ -11,4 +11,11 @@ return [ 'search' => '搜索', + 'add_to_favorites' => '加入收藏夹', + 'add_to_cart' => '加入购物车', + 'buy_now' => '立即购买', + 'product_details' => '商品详情', + 'in_stock' => '有货', + 'out_stock' => '缺货', + 'model' => '型号', ]; diff --git a/themes/default/cart/mini.blade.php b/themes/default/cart/mini.blade.php index 5884d2de..3b96c973 100644 --- a/themes/default/cart/mini.blade.php +++ b/themes/default/cart/mini.blade.php @@ -14,7 +14,7 @@
{{ $cart['price_format'] }} x {{ $cart['quantity'] }}
- {{ __('shop/carts.delete') }} + {{ __('common.delete') }} diff --git a/themes/default/components/account/sidebar.blade.php b/themes/default/components/account/sidebar.blade.php index 78bbe6b1..34e57f68 100644 --- a/themes/default/components/account/sidebar.blade.php +++ b/themes/default/components/account/sidebar.blade.php @@ -12,21 +12,21 @@ {{ __('shop/account.index') }} - 修改个人信息 + {{ __('shop/account.edit.index') }} - 我的订单 + {{ __('shop/account.order.index') }} - 我的地址 + {{ __('shop/account.addresses.index') }} - 我的收藏 + {{ __('shop/account.wishlist.index') }} - 我的售后 + {{ __('shop/account.rma.index') }} - 退出登录 + {{ __('common.sign_out') }} diff --git a/themes/default/product.blade.php b/themes/default/product.blade.php index 53ad673b..857d430f 100644 --- a/themes/default/product.blade.php +++ b/themes/default/product.blade.php @@ -44,9 +44,13 @@

{{ $product['name'] }}

- @{{ product.quantity > 0 ? 'In Stock' : 'Out Stock' }} + + {{-- @{{ product.quantity > 0 ? 'In Stock' : 'Out Stock' }} --}} + + + SKU: @{{ product.sku }} - MODEL: @{{ product.model }} + {{ __('shop/products.model') }}: @{{ product.model }}
@if (0)
@@ -90,18 +94,18 @@ class="btn btn-outline-dark ms-3 add-cart" :disabled="!product.quantity" @click="addCart(false, this)" - >加入购物车 + >{{ __('shop/products.add_to_cart') }}
@@ -111,7 +115,7 @@
diff --git a/themes/default/shared/product.blade.php b/themes/default/shared/product.blade.php index b739fa79..77d81237 100644 --- a/themes/default/shared/product.blade.php +++ b/themes/default/shared/product.blade.php @@ -13,7 +13,7 @@ class="btn btn-dark text-light mx-1 rounded-3" data-bs-toggle="tooltip" data-bs-placement="top" - title="加入收藏" + title="{{ __('shop/products.add_to_favorites') }}" data-in-wishlist="{{ $product['in_wishlist'] }}" onclick="bk.addWishlist('{{ $product['id'] }}', this)"> @@ -22,7 +22,7 @@ class="btn btn-dark text-light mx-1 rounded-3" data-bs-toggle="tooltip" data-bs-placement="top" - title="加入购物车" + title="{{ __('shop/products.add_to_cart') }}" onclick="bk.addCart({sku_id: '{{ $product['sku_id'] }}'}, this)"> diff --git a/themes/default/shared/steps.blade.php b/themes/default/shared/steps.blade.php index 63b65ad5..ae88ad92 100644 --- a/themes/default/shared/steps.blade.php +++ b/themes/default/shared/steps.blade.php @@ -1,18 +1,18 @@
1
- 购物车 + {{ __('shop/steps.cart') }}
2
- 结账 + {{ __('shop/steps.checkout') }}
3
- 提交成功 + {{ __('shop/steps.submitted_successfully') }}
4
- 付款 + {{ __('shop/steps.payment') }}
\ No newline at end of file