Skip to content

Commit b9bb965

Browse files
committedDec 22, 2022
更新:优化余额明细页面在移动端的显示效果
·
v2.7.7v2.1.7
1 parent 72f8388 commit b9bb965

File tree

1 file changed

+44
-42
lines changed

1 file changed

+44
-42
lines changed
 

‎app/Plugins/User/resources/views/assets/money.blade.php

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,55 @@
33
@section('content')
44

55
<div class="row row-cards">
6-
<div class="card">
7-
<div class="card-header">
8-
<h3 class="card-title">账单明细</h3>
9-
<div class="card-actions">
10-
<a href="/users/{{auth()->data()->username}}.html?m=users_home_menu_8">充值</a>
6+
<div class="col-12">
7+
<div class="card">
8+
<div class="card-header">
9+
<h3 class="card-title">账单明细</h3>
10+
<div class="card-actions">
11+
<a href="/users/{{auth()->data()->username}}.html?m=users_home_menu_8">充值</a>
12+
</div>
1113
</div>
12-
</div>
13-
<div class="card-body">
14-
<table class="table table-responsive">
15-
<thead>
16-
<tr>
17-
<th>#</th>
18-
<th class="text-nowrap">变更前余额</th>
19-
<th class="text-nowrap">变更后余额</th>
20-
<th class="text-nowrap">绑定订单</th>
21-
<th class="text-nowrap">备注</th>
22-
<th class="text-nowrap">创建时间</th>
23-
</tr>
24-
</thead>
25-
<tbody>
26-
@if(!$page->count())
14+
<div class="card-body table-responsive">
15+
<table class="table table-vcenter">
16+
<thead>
2717
<tr>
28-
<th>暂无结果</th>
29-
<td>暂无结果</td>
30-
<td>暂无结果</td>
31-
<td>暂无结果</td>
32-
<td>暂无结果</td>
33-
<td>暂无结果</td>
18+
<th>#</th>
19+
<th class="text-nowrap">变更前余额</th>
20+
<th class="text-nowrap">变更后余额</th>
21+
<th class="text-nowrap">绑定订单</th>
22+
<th class="text-nowrap">备注</th>
23+
<th class="text-nowrap">创建时间</th>
3424
</tr>
35-
@else
36-
@foreach($page as $data)
25+
</thead>
26+
<tbody>
27+
@if(!$page->count())
3728
<tr>
38-
<th>{{$data->id}}</th>
39-
<td>{{$data->original}} {{get_options('wealth_money_unit_name','')}}</td>
40-
<td>{{$data->cash}} {{get_options('wealth_money_unit_name','')}}</td>
41-
<td>@if($data->order_id) <a href="/user/order/{{$data->order_id}}.order">{{$data->order_id}}</a> @else 未绑定订单 @endif</td>
42-
<td>@if($data->remark) {{$data->remark}} @else 无备注 @endif</td>
43-
<td>{{$data->created_at}}</td>
29+
<th>暂无结果</th>
30+
<td>暂无结果</td>
31+
<td>暂无结果</td>
32+
<td>暂无结果</td>
33+
<td>暂无结果</td>
34+
<td>暂无结果</td>
4435
</tr>
45-
@endforeach
46-
@endif
47-
</tbody>
48-
</table>
49-
<div class="mt-2">
50-
@if($page->count())
51-
{!! make_page($page) !!}
52-
@endif
36+
@else
37+
@foreach($page as $data)
38+
<tr>
39+
<th>{{$data->id}}</th>
40+
<td>{{$data->original}} {{get_options('wealth_money_unit_name','')}}</td>
41+
<td>{{$data->cash}} {{get_options('wealth_money_unit_name','')}}</td>
42+
<td>@if($data->order_id) <a href="/user/order/{{$data->order_id}}.order">{{$data->order_id}}</a> @else 未绑定订单 @endif</td>
43+
<td>@if($data->remark) {{$data->remark}} @else 无备注 @endif</td>
44+
<td>{{$data->created_at}}</td>
45+
</tr>
46+
@endforeach
47+
@endif
48+
</tbody>
49+
</table>
50+
<div class="mt-2">
51+
@if($page->count())
52+
{!! make_page($page) !!}
53+
@endif
54+
</div>
5355
</div>
5456
</div>
5557
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.