Commit ef78ad57 by 杨树贤

修复bug

parent d97e245a
...@@ -50,11 +50,10 @@ class UserExchangesController extends Controller ...@@ -50,11 +50,10 @@ class UserExchangesController extends Controller
public function userExchangeBillList(Request $request) public function userExchangeBillList(Request $request)
{ {
$this->data['title'] = '用户兑换详细'; $this->data['title'] = '用户兑换详细';
//获取该用户的红包信息 //获取该用户的红包信息
$userIntegralService = new UserIntegralService(); $userIntegralService = new UserIntegralService();
$userIntegral = $userIntegralService->getUserIntegral($request->user_id); $statistics = $userIntegralService->getUserIntegralStatistics($request->user_id);
$this->data['user_integral'] = array_get($userIntegral, 'data'); $this->data['statistics'] = $statistics;
//获取红包列表做tab项 //获取红包列表做tab项
$this->data['types'] = [1 => '话费充值', 2 => '微信转账']; $this->data['types'] = [1 => '话费充值', 2 => '微信转账'];
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
用户已得红包 用户已得红包
</div> </div>
<div class="layui-card-body layuiadmin-card-list"> <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> </div>
</div> </div>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
已提现红包 已提现红包
</div> </div>
<div class="layui-card-body layuiadmin-card-list"> <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> </div>
</div> </div>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
账户剩余红包 账户剩余红包
</div> </div>
<div class="layui-card-body layuiadmin-card-list"> <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> </div>
</div> </div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">注册手机号</label> <label class="layui-form-label">注册手机号</label>
<div class="layui-input-inline"> <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"> autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment