Skip to content

Commit

Permalink
更新:优化余额明细页面在移动端的显示效果
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Dec 22, 2022
1 parent 72f8388 commit b9bb965
Showing 1 changed file with 44 additions and 42 deletions.
86 changes: 44 additions & 42 deletions app/Plugins/User/resources/views/assets/money.blade.php
Expand Up @@ -3,53 +3,55 @@
@section('content')

<div class="row row-cards">
<div class="card">
<div class="card-header">
<h3 class="card-title">账单明细</h3>
<div class="card-actions">
<a href="/users/{{auth()->data()->username}}.html?m=users_home_menu_8">充值</a>
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">账单明细</h3>
<div class="card-actions">
<a href="/users/{{auth()->data()->username}}.html?m=users_home_menu_8">充值</a>
</div>
</div>
</div>
<div class="card-body">
<table class="table table-responsive">
<thead>
<tr>
<th>#</th>
<th class="text-nowrap">变更前余额</th>
<th class="text-nowrap">变更后余额</th>
<th class="text-nowrap">绑定订单</th>
<th class="text-nowrap">备注</th>
<th class="text-nowrap">创建时间</th>
</tr>
</thead>
<tbody>
@if(!$page->count())
<div class="card-body table-responsive">
<table class="table table-vcenter">
<thead>
<tr>
<th>暂无结果</th>
<td>暂无结果</td>
<td>暂无结果</td>
<td>暂无结果</td>
<td>暂无结果</td>
<td>暂无结果</td>
<th>#</th>
<th class="text-nowrap">变更前余额</th>
<th class="text-nowrap">变更后余额</th>
<th class="text-nowrap">绑定订单</th>
<th class="text-nowrap">备注</th>
<th class="text-nowrap">创建时间</th>
</tr>
@else
@foreach($page as $data)
</thead>
<tbody>
@if(!$page->count())
<tr>
<th>{{$data->id}}</th>
<td>{{$data->original}} {{get_options('wealth_money_unit_name','元')}}</td>
<td>{{$data->cash}} {{get_options('wealth_money_unit_name','元')}}</td>
<td>@if($data->order_id) <a href="/user/order/{{$data->order_id}}.order">{{$data->order_id}}</a> @else 未绑定订单 @endif</td>
<td>@if($data->remark) {{$data->remark}} @else 无备注 @endif</td>
<td>{{$data->created_at}}</td>
<th>暂无结果</th>
<td>暂无结果</td>
<td>暂无结果</td>
<td>暂无结果</td>
<td>暂无结果</td>
<td>暂无结果</td>
</tr>
@endforeach
@endif
</tbody>
</table>
<div class="mt-2">
@if($page->count())
{!! make_page($page) !!}
@endif
@else
@foreach($page as $data)
<tr>
<th>{{$data->id}}</th>
<td>{{$data->original}} {{get_options('wealth_money_unit_name','元')}}</td>
<td>{{$data->cash}} {{get_options('wealth_money_unit_name','元')}}</td>
<td>@if($data->order_id) <a href="/user/order/{{$data->order_id}}.order">{{$data->order_id}}</a> @else 未绑定订单 @endif</td>
<td>@if($data->remark) {{$data->remark}} @else 无备注 @endif</td>
<td>{{$data->created_at}}</td>
</tr>
@endforeach
@endif
</tbody>
</table>
<div class="mt-2">
@if($page->count())
{!! make_page($page) !!}
@endif
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit b9bb965

Please sign in to comment.