Skip to content

Commit 05381d5

Browse files
committedDec 22, 2022
更新:个人主页财富信息只能本人可见
·
v2.7.7v2.1.7
1 parent b9bb965 commit 05381d5

File tree

1 file changed

+103
-90
lines changed

1 file changed

+103
-90
lines changed
 

‎app/Plugins/User/resources/views/home/overview.blade.php

Lines changed: 103 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,81 @@
11
<div class="row row-cards">
22

33
@if($user->options->qq && $user->options->wx && $user->options->website && $user->options->email)
4-
<div class="col-12">
5-
<div class="border-0 card card-body">
6-
<dl class="row">
7-
@if($user->options->qq)
8-
<dt class="col-sm-3">{{ __('user.QQ') }}:</dt>
9-
<dd class="col-sm-9">{{ $user->options->qq }}</dd>
10-
@endif
11-
@if($user->options->wx)
12-
<dt class="col-sm-3">{{ __('user.wechat') }}:</dt>
13-
<dd class="col-sm-9">{{ $user->options->wx }}</dd>
14-
@endif
15-
@if($user->options->website)
16-
<dt class="col-sm-3">{{ __('user.website') }}:</dt>
17-
<dd class="col-sm-9"><a href="{{ $user->options->website }}">{{ $user->options->website }}</a></dd>
18-
@endif
19-
@if($user->options->email)
20-
<dt class="col-sm-3">{{ __('user.email') }}:</dt>
21-
<dd class="col-sm-9"><a href="mailto:{{ $user->options->email }}">{{ $user->options->email }}</a>
22-
</dd>
23-
@endif
24-
</dl>
4+
<div class="col-12">
5+
<div class="border-0 card card-body">
6+
<dl class="row">
7+
@if($user->options->qq)
8+
<dt class="col-sm-3">{{ __('user.QQ') }}:</dt>
9+
<dd class="col-sm-9">{{ $user->options->qq }}</dd>
10+
@endif
11+
@if($user->options->wx)
12+
<dt class="col-sm-3">{{ __('user.wechat') }}:</dt>
13+
<dd class="col-sm-9">{{ $user->options->wx }}</dd>
14+
@endif
15+
@if($user->options->website)
16+
<dt class="col-sm-3">{{ __('user.website') }}:</dt>
17+
<dd class="col-sm-9"><a href="{{ $user->options->website }}">{{ $user->options->website }}</a>
18+
</dd>
19+
@endif
20+
@if($user->options->email)
21+
<dt class="col-sm-3">{{ __('user.email') }}:</dt>
22+
<dd class="col-sm-9"><a
23+
href="mailto:{{ $user->options->email }}">{{ $user->options->email }}</a>
24+
</dd>
25+
@endif
26+
</dl>
27+
</div>
2528
</div>
26-
</div>
2729
@endif
2830

29-
<div class="col-12">
31+
@if(auth()->id() ===(int)$user->id)
32+
<div class="col-12">
3033

31-
<div class="border-0 card card-body">
32-
<h3 class="card-title">{{__("user.wealth")}}</h3>
33-
<div class="row row-cards">
34+
<div class="border-0 card card-body">
35+
<h3 class="card-title">{{__("user.wealth")}}</h3>
36+
<div class="row row-cards">
3437

35-
<div class="col-12 col-md-6 col-lg-3">
36-
<a href="/user/asset/money" class="card card-sm">
37-
<div class="card-body">
38-
<div class="row align-items-center">
39-
<div class="col-auto">
38+
<div class="col-12 col-md-6 col-lg-3">
39+
<a href="/user/asset/money" class="card card-sm">
40+
<div class="card-body">
41+
<div class="row align-items-center">
42+
<div class="col-auto">
4043
<span class="bg-orange-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
41-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-currency-dollar" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
44+
<svg xmlns="http://www.w3.org/2000/svg"
45+
class="icon icon-tabler icon-tabler-currency-dollar" width="24" height="24"
46+
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
47+
stroke-linecap="round" stroke-linejoin="round">
4248
<desc>Download more icon variants from https://tabler-icons.io/i/currency-dollar</desc>
4349
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
4450
<path d="M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2"></path>
4551
<path d="M12 3v3m0 12v3"></path>
4652
</svg>
4753
</span>
48-
</div>
49-
<div class="col">
50-
<div class="font-weight-medium">
51-
<span>{{$user->options->money}}</span>
5254
</div>
53-
<div class="text-muted">
54-
{{get_options('wealth_money_name','余额')}}
55+
<div class="col">
56+
<div class="font-weight-medium">
57+
<span>{{$user->options->money}}</span>
58+
</div>
59+
<div class="text-muted">
60+
{{get_options('wealth_money_name','余额')}}
61+
</div>
62+
</div>
63+
<div class="col-auto">
5564
</div>
56-
</div>
57-
<div class="col-auto">
5865
</div>
5966
</div>
60-
</div>
61-
</a>
62-
</div>
67+
</a>
68+
</div>
6369

64-
<div class="col-12 col-md-6 col-lg-3">
65-
<div class="card card-sm">
66-
<div class="card-body">
67-
<div class="row align-items-center">
68-
<div class="col-auto">
70+
<div class="col-12 col-md-6 col-lg-3">
71+
<div class="card card-sm">
72+
<div class="card-body">
73+
<div class="row align-items-center">
74+
<div class="col-auto">
6975
<span class="bg-yellow-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
70-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-credit-card" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
76+
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-credit-card"
77+
width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"
78+
fill="none" stroke-linecap="round" stroke-linejoin="round">
7179
<desc>Download more icon variants from https://tabler-icons.io/i/credit-card</desc>
7280
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
7381
<rect x="3" y="5" width="18" height="14" rx="3"></rect>
@@ -76,86 +84,91 @@
7684
<line x1="11" y1="15" x2="13" y2="15"></line>
7785
</svg>
7886
</span>
79-
</div>
80-
<div class="col">
81-
<div class="font-weight-medium">
82-
<span>{{$user->options->credits}}</span>
8387
</div>
84-
<div class="text-muted">
85-
{{get_options('wealth_credit_name','积分')}}
88+
<div class="col">
89+
<div class="font-weight-medium">
90+
<span>{{$user->options->credits}}</span>
91+
</div>
92+
<div class="text-muted">
93+
{{get_options('wealth_credit_name','积分')}}
94+
</div>
95+
</div>
96+
<div class="col-auto">
8697
</div>
87-
</div>
88-
<div class="col-auto">
8998
</div>
9099
</div>
91100
</div>
92101
</div>
93-
</div>
94102

95-
<div class="col-12 col-md-6 col-lg-3">
96-
<div class="card card-sm">
97-
<div class="card-body">
98-
<div class="row align-items-center">
99-
<div class="col-auto">
103+
<div class="col-12 col-md-6 col-lg-3">
104+
<div class="card card-sm">
105+
<div class="card-body">
106+
<div class="row align-items-center">
107+
<div class="col-auto">
100108
<span class="bg-cyan-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
101-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-coin" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
109+
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-coin"
110+
width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"
111+
fill="none" stroke-linecap="round" stroke-linejoin="round">
102112
<desc>Download more icon variants from https://tabler-icons.io/i/coin</desc>
103113
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
104114
<circle cx="12" cy="12" r="9"></circle>
105115
<path d="M14.8 9a2 2 0 0 0 -1.8 -1h-2a2 2 0 0 0 0 4h2a2 2 0 0 1 0 4h-2a2 2 0 0 1 -1.8 -1"></path>
106116
<path d="M12 6v2m0 8v2"></path>
107117
</svg>
108118
</span>
109-
</div>
110-
<div class="col">
111-
<div class="font-weight-medium">
112-
<span>{{$user->options->golds}}</span>
113119
</div>
114-
<div class="text-muted">
115-
{{get_options('wealth_golds_name','金币')}}
120+
<div class="col">
121+
<div class="font-weight-medium">
122+
<span>{{$user->options->golds}}</span>
123+
</div>
124+
<div class="text-muted">
125+
{{get_options('wealth_golds_name','金币')}}
126+
</div>
127+
</div>
128+
<div class="col-auto">
116129
</div>
117-
</div>
118-
<div class="col-auto">
119130
</div>
120131
</div>
121132
</div>
122133
</div>
123-
</div>
124134

125135

126-
<div class="col-12 col-md-6 col-lg-3">
127-
<div class="card card-sm">
128-
<div class="card-body">
129-
<div class="row align-items-center">
130-
<div class="col-auto">
136+
<div class="col-12 col-md-6 col-lg-3">
137+
<div class="card card-sm">
138+
<div class="card-body">
139+
<div class="row align-items-center">
140+
<div class="col-auto">
131141
<span class="bg-azure-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
132-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-activity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
142+
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-activity"
143+
width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"
144+
fill="none" stroke-linecap="round" stroke-linejoin="round">
133145
<desc>Download more icon variants from https://tabler-icons.io/i/activity</desc>
134146
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
135147
<path d="M3 12h4l3 8l4 -16l3 8h4"></path>
136148
</svg>
137149
</span>
138-
</div>
139-
<div class="col">
140-
<div class="font-weight-medium">
141-
<span>{{$user->options->exp}}</span>
142150
</div>
143-
<div class="text-muted">
144-
{{get_options('wealth_exp_name','经验')}}
151+
<div class="col">
152+
<div class="font-weight-medium">
153+
<span>{{$user->options->exp}}</span>
154+
</div>
155+
<div class="text-muted">
156+
{{get_options('wealth_exp_name','经验')}}
157+
</div>
158+
</div>
159+
<div class="col-auto">
145160
</div>
146-
</div>
147-
<div class="col-auto">
148161
</div>
149162
</div>
150163
</div>
151164
</div>
152-
</div>
153165

154166

167+
</div>
155168
</div>
156-
</div>
157169

158-
</div>
170+
</div>
171+
@endif
159172

160173
<div class="col-12">
161174
<div class="border-0 card card-body">

0 commit comments

Comments
 (0)
Please sign in to comment.