Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ef78ad57
authored
Sep 02, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
d97e245a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
app/Http/Controllers/UserExchangesController.php
resources/views/web/userExchangeBillList.blade.php
resources/views/web/userIntegralList.blade.php
app/Http/Controllers/UserExchangesController.php
View file @
ef78ad57
...
...
@@ -50,11 +50,10 @@ class UserExchangesController extends Controller
public
function
userExchangeBillList
(
Request
$request
)
{
$this
->
data
[
'title'
]
=
'用户兑换详细'
;
//获取该用户的红包信息
$userIntegralService
=
new
UserIntegralService
();
$
userIntegral
=
$userIntegralService
->
getUserIntegral
(
$request
->
user_id
);
$this
->
data
[
'
user_integral'
]
=
array_get
(
$userIntegral
,
'data'
)
;
$
statistics
=
$userIntegralService
->
getUserIntegralStatistics
(
$request
->
user_id
);
$this
->
data
[
'
statistics'
]
=
$statistics
;
//获取红包列表做tab项
$this
->
data
[
'types'
]
=
[
1
=>
'话费充值'
,
2
=>
'微信转账'
];
...
...
resources/views/web/userExchangeBillList.blade.php
View file @
ef78ad57
...
...
@@ -8,7 +8,7 @@
用户已得红包
</div>
<div
class=
"layui-card-body layuiadmin-card-list"
>
<p
class=
"layuiadmin-big-font"
>
{{$
user_integral['integral
']}}
</p>
<p
class=
"layuiadmin-big-font"
>
{{$
statistics['total_amount
']}}
</p>
</div>
</div>
</div>
...
...
@@ -19,7 +19,7 @@
已提现红包
</div>
<div
class=
"layui-card-body layuiadmin-card-list"
>
<p
class=
"layuiadmin-big-font"
>
{{$
user_integral['exchanged_integral
']}}
</p>
<p
class=
"layuiadmin-big-font"
>
{{$
statistics['exchanged_amount
']}}
</p>
</div>
</div>
</div>
...
...
@@ -30,7 +30,7 @@
账户剩余红包
</div>
<div
class=
"layui-card-body layuiadmin-card-list"
>
<p
class=
"layuiadmin-big-font"
>
{{$
user_integral['integral']-$user_integral['exchanged_
integral']}}
</p>
<p
class=
"layuiadmin-big-font"
>
{{$
statistics['
integral']}}
</p>
</div>
</div>
</div>
...
...
resources/views/web/userIntegralList.blade.php
View file @
ef78ad57
...
...
@@ -5,7 +5,7 @@
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
注册手机号
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"mobile"
lay-verify=
"number"
value=
"{{request()->get('mobile')}}"
<input
type=
"text"
name=
"mobile"
value=
"{{request()->get('mobile')}}"
autocomplete=
"off"
class=
"layui-input"
>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment