1 个管道
的构建
通过
耗费
3 秒
Merge branch 'master' of http://114.215.101.231:8099/lihan/integral into lilijuan
正在显示
3 个修改的文件
包含
12 行增加
和
4 行删除
@@ -18,12 +18,13 @@ class FriendController extends HomeBaseController | @@ -18,12 +18,13 @@ class FriendController extends HomeBaseController | ||
18 | public function friendGiveLog() | 18 | public function friendGiveLog() |
19 | { | 19 | { |
20 | $data = Db::name('friendship')->alias('f') | 20 | $data = Db::name('friendship')->alias('f') |
21 | - ->field('f.total,u.user_nickname,u.avatar') | 21 | + ->field('f.friend_uid as friend_id,f.total,u.user_nickname,u.avatar') |
22 | ->join('user u', 'u.id=f.friend_uid') | 22 | ->join('user u', 'u.id=f.friend_uid') |
23 | ->where(['f.uid' => session('user.id')]) | 23 | ->where(['f.uid' => session('user.id')]) |
24 | ->select()->toArray(); | 24 | ->select()->toArray(); |
25 | return $this->fetch(':friend_give_log', [ | 25 | return $this->fetch(':friend_give_log', [ |
26 | - 'list' => $data | 26 | + 'list' => $data, |
27 | + 'balance' => Db::name('user')->where(['id' => session('user.id')])->value('balance') | ||
27 | ]); | 28 | ]); |
28 | } | 29 | } |
29 | 30 |
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | <meta charset="UTF-8"> | 5 | <meta charset="UTF-8"> |
6 | <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> | 6 | <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> |
7 | <link rel="stylesheet" href="https://at.alicdn.com/t/font_834805_0ml90wdq5hzm.css"> | 7 | <link rel="stylesheet" href="https://at.alicdn.com/t/font_834805_0ml90wdq5hzm.css"> |
8 | + <link rel="stylesheet" href="https://at.alicdn.com/t/font_750594_itt4qc4xfcg.css"> | ||
8 | <link rel="stylesheet" href="__INDEX__/css/base.css"> | 9 | <link rel="stylesheet" href="__INDEX__/css/base.css"> |
9 | <link rel="stylesheet" href="__INDEX__/css/swiper.min.css"> | 10 | <link rel="stylesheet" href="__INDEX__/css/swiper.min.css"> |
10 | <script type="text/javascript" src="__INDEX__/js/base.js"></script> | 11 | <script type="text/javascript" src="__INDEX__/js/base.js"></script> |
@@ -246,7 +247,7 @@ | @@ -246,7 +247,7 @@ | ||
246 | <div class="container"> | 247 | <div class="container"> |
247 | <div class="friendlist"> | 248 | <div class="friendlist"> |
248 | <volist name="list" id="vo"> | 249 | <volist name="list" id="vo"> |
249 | - <div class="fri_list"> | 250 | + <div class="fri_list" data-id="{$vo.friend_id}"> |
250 | <p class="friend_img"> | 251 | <p class="friend_img"> |
251 | <img src="{$vo.avatar}" alt=""> | 252 | <img src="{$vo.avatar}" alt=""> |
252 | </p> | 253 | </p> |
@@ -263,10 +264,15 @@ | @@ -263,10 +264,15 @@ | ||
263 | 搜索添加好友 | 264 | 搜索添加好友 |
264 | </div> | 265 | </div> |
265 | </div> | 266 | </div> |
267 | +<input type="tel" id="pwd" maxlength="6" style="display: block;" pattern="[0-9]*" onkeyup="this.value = this.value.replace(/[^\d]/g, '')"/> | ||
268 | + | ||
266 | </body> | 269 | </body> |
267 | <script type="text/javascript" src="__INDEX__/js/jquery.min.js"></script> | 270 | <script type="text/javascript" src="__INDEX__/js/jquery.min.js"></script> |
268 | <script> | 271 | <script> |
272 | + | ||
273 | + var friend_id = ''; | ||
269 | $(".fri_list").click(function(){ | 274 | $(".fri_list").click(function(){ |
275 | + friend_id=$(this).attr('data-id'); | ||
270 | $(".sendwrapper").css("display","block"); | 276 | $(".sendwrapper").css("display","block"); |
271 | }) | 277 | }) |
272 | 278 | ||
@@ -342,6 +348,7 @@ | @@ -342,6 +348,7 @@ | ||
342 | $(".pleaseenter").val(""); | 348 | $(".pleaseenter").val(""); |
343 | $('#pwd').val("") | 349 | $('#pwd').val("") |
344 | alert(data.msg); | 350 | alert(data.msg); |
351 | + window.location.reload(); | ||
345 | }else { | 352 | }else { |
346 | alert(data.msg); | 353 | alert(data.msg); |
347 | } | 354 | } |
-
请 注册 或 登录 后发表评论