多语言

This commit is contained in:
sl 2022-08-18 16:27:39 +08:00
parent 02dd913ec1
commit 0bd3580af5
3 changed files with 68 additions and 28 deletions

View File

@ -50,6 +50,40 @@ return [
'operate' => '操作',
'order_number' => '订单号',
'check' => '查看',
'order_info' => [
'index' => '订单详情',
'order_details' => '订单详情',
'to_pay' => '去支付',
'confirm_receipt' => '确认收货',
'order_number' => '订单号',
'order_date' => '下单日期',
'state' => '状态',
'order_amount' => '订单金额',
'order_items' => '订购商品',
'apply_after_sales' => '申请售后',
'order_total' => '合计订单',
'logistics_status' => '物流状态',
'order_status' => '订单状态',
'remark' => '备注',
'update_time' => '更新时间',
],
'order_success' => [
'order_success' => '恭喜您,订单生成成功!',
'order_number' => '订单编号',
'amounts_payable' => '应付金额 ',
'payment_method' => '支付方式 ',
'view_order' => '查看订单详情 ',
'pay_now' => '立即支付 ',
'kind_tips' => '温馨提示:您的订单已生成成功,请尽快完成支付哦~ ',
'also' => '您还可以',
'continue_purchase' => '继续采购',
'contact_customer_service' => '如果您在订单过程中有任何问题,可以随时联系我们客服人员',
'emaill' => '邮箱',
'service_hotline' => '服务热线',
],
],
'addresses' => [

View File

@ -4,12 +4,15 @@
@section('content')
<div class="container">
<nav aria-label="breadcrumb">
<x-shop-breadcrumb type="static" value="account.order.index" />
{{-- <nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Library</li>
</ol>
</nav>
</nav> --}}
<div class="row">
<x-shop-sidebar />
@ -17,13 +20,13 @@
<div class="col-12 col-md-9">
<div class="card mb-4 order-head">
<div class="card-header d-flex align-items-center justify-content-between">
<h6 class="card-title">订单详情</h6>
<h6 class="card-title">{{ __('shop/account.order.order_info.order_details') }}</h6>
<div>
@if ($order->status == 'unpaid')
<a href="{{ shop_route('orders.pay', $order->number) }}" class="btn btn-primary btn-sm nowrap">去支付</a>
<a href="{{ shop_route('orders.pay', $order->number) }}" class="btn btn-primary btn-sm nowrap">{{ __('shop/account.order.order_info.to_pay') }}</a>
@endif
@if ($order->status == 'shipped')
<button class="btn btn-primary btn-sm shipped-ed" type="button">确认收货</button>
<button class="btn btn-primary btn-sm shipped-ed" type="button">{{ __('shop/account.order.order_info.confirm_receipt') }}</button>
@endif
</div>
</div>
@ -33,10 +36,10 @@
<table class="table table-borderless mb-0">
<thead>
<tr>
<th>订单号</th>
<th class="nowrap">下单日期</th>
<th>状态</th>
<th>订单金额</th>
<th>{{ __('shop/account.order.order_info.order_number') }}</th>
<th class="nowrap">{{ __('shop/account.order.order_info.order_date') }}</th>
<th>{{ __('shop/account.order.order_info.state') }}</th>
<th>{{ __('shop/account.order.order_info.order_amount') }}</th>
</tr>
</thead>
<tbody>
@ -56,7 +59,7 @@
<div class="card mb-4">
<div class="card-header">
<h6 class="card-title">订购商品</h6>
<h6 class="card-title">{{ __('shop/account.order.order_info.order_items') }}</h6>
</div>
<div class="card-body">
@foreach ($order->orderProducts as $product)
@ -70,7 +73,7 @@
</div>
@if ($order->status == 'completed')
<a href="{{ shop_route('account.rma.create', [$product->id]) }}"
class="btn btn-outline-primary btn-sm">申请售后</a>
class="btn btn-outline-primary btn-sm">{{ __('shop/account.order.order_info.apply_after_sales') }}</a>
@endif
</div>
@endforeach
@ -79,7 +82,7 @@
<div class="card mb-4">
<div class="card-header">
<h6 class="card-title">Order Total</h6>
<h6 class="card-title">{{ __('shop/account.order.order_info.order_total') }}</h6>
</div>
<div class="card-body">
<table class="table table-bordered border">
@ -100,7 +103,7 @@
@if (0)
<div class="card mb-4">
<div class="card-header">
<h6 class="card-title">物流状态</h6>
<h6 class="card-title">{{ __('shop/account.order.order_info.logistics_status') }}</h6>
</div>
<div class="card-body">
@ -111,15 +114,15 @@
@if ($order->orderHistories->count())
<div class="card mb-4">
<div class="card-header">
<h6 class="card-title">订单状态</h6>
<h6 class="card-title">{{ __('shop/account.order.order_info.order_status') }}</h6>
</div>
<div class="card-body">
<table class="table ">
<thead class="">
<tr>
<th>状态</th>
<th>备注</th>
<th>更新时间</th>
<th>{{ __('shop/account.order.order_info.state') }}</th>
<th>{{ __('shop/account.order.order_info.remark') }}</th>
<th>{{ __('shop/account.order.order_info.update_time') }}</th>
</tr>
</thead>
<tbody>

View File

@ -4,6 +4,9 @@
@section('content')
<div class="container">
<x-shop-breadcrumb type="static" value="account.order.index" />
<div class="row mt-5 justify-content-center mb-5">
<div class="col-12 col-md-9">@include('shared.steps', ['steps' => 3])</div>
</div>
@ -15,33 +18,33 @@
<i class="bi bi-check2-circle"></i>
</div>
<div class="right">
<h3 class="order-title">恭喜您,订单生成成功!</h3>
<h3 class="order-title">{{ __('shop/account.order.order_success.order_success') }}</h3>
<div class="order-info">
<table class="table table-borderless">
<tbody>
<tr>
<td>订单编号<span class="fw-bold">{{ $order['number'] }}</span></td>
<td>应付金额<span class="fw-bold">{{ $order['total'] }}</span></td>
<td>{{ __('shop/account.order.order_success.order_number') }}<span class="fw-bold">{{ $order['number'] }}</span></td>
<td>{{ __('shop/account.order.order_success.amounts_payable') }}<span class="fw-bold">{{ $order['total'] }}</span></td>
</tr>
<tr>
<td>支付方式<span class="fw-bold">{{ $order['payment_method_name'] }}</span></td>
<td><a href="{{ shop_route('account.order.show', ['number' => $order->number]) }}">查看订单详情</a></td>
<td>{{ __('shop/account.order.order_success.payment_method') }}<span class="fw-bold">{{ $order['payment_method_name'] }}</span></td>
<td><a href="{{ shop_route('account.order.show', ['number' => $order->number]) }}">{{ __('shop/account.order.order_success.view_order') }}</a></td>
</tr>
<tr>
<td><a href="{{ shop_route('orders.pay', [$order['number']]) }}" class="btn btn-primary btn-sm">立即支付</a></td>
<td><a href="{{ shop_route('orders.pay', [$order['number']]) }}" class="btn btn-primary btn-sm">{{ __('shop/account.order.order_success.pay_now') }}</a></td>
</tr>
</tbody>
</table>
</div>
<div class="text-muted mt-4">温馨提示:您的订单已生成成功,请尽快完成支付哦~</div>
<div class="mt-3">您还可以:<a href="/">继续采购</a></div>
<div class="text-muted mt-4">{{ __('shop/account.order.order_success.kind_tips') }}</div>
<div class="mt-3">{{ __('shop/account.order.order_success.also') }}<a href="/">{{ __('shop/account.order.order_success.continue_purchase') }}</a></div>
</div>
</div>
<div class="order-bottom">
<div class="text-muted">如果您在订单过程中有任何问题,可以随时联系我们客服人员</div>
<div>Emaill: {{ system_setting('base.email', '') }}</div>
<div>服务热线: {{ system_setting('base.telephone', '') }}</div>
<div class="text-muted">{{ __('shop/account.order.order_success.contact_customer_service') }}</div>
<div>{{ __('shop/account.order.order_success.emaill') }}: {{ system_setting('base.email', '') }}</div>
<div>{{ __('shop/account.order.order_success.service_hotline') }}: {{ system_setting('base.telephone', '') }}</div>
</div>
</div>
</div>