From a224e7e57a6a9b3fdc3021406f58291a89d6ceda Mon Sep 17 00:00:00 2001 From: "ZLW-PC\\Administrator" <374861669@qq.com> Date: Thu, 12 Oct 2017 17:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83-=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E6=98=8E=E7=BB=86=E3=80=81=E7=A7=AF=E5=88=86=E6=98=8E?= =?UTF-8?q?=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Weixin/UserController.php | 107 + public/css/font-awesome.min.css | 4 + public/css/weixin/style.css | 16 +- public/fonts/FontAwesome.otf | Bin 0 -> 134808 bytes public/fonts/fontawesome-webfont.eot | Bin 0 -> 165742 bytes public/fonts/fontawesome-webfont.svg | 2671 +++++++++++++++++ public/fonts/fontawesome-webfont.ttf | Bin 0 -> 165548 bytes public/fonts/fontawesome-webfont.woff | Bin 0 -> 98024 bytes public/fonts/fontawesome-webfont.woff2 | Bin 0 -> 77160 bytes .../views/weixin/common/footer.blade.php | 5 +- resources/views/weixin/user/index.blade.php | 12 +- .../views/weixin/user/userAccount.blade.php | 30 + .../views/weixin/user/userMoneyList.blade.php | 92 + .../views/weixin/user/userPointList.blade.php | 92 + routes/web.php | 4 + 15 files changed, 3012 insertions(+), 21 deletions(-) create mode 100644 public/css/font-awesome.min.css create mode 100644 public/fonts/FontAwesome.otf create mode 100644 public/fonts/fontawesome-webfont.eot create mode 100644 public/fonts/fontawesome-webfont.svg create mode 100644 public/fonts/fontawesome-webfont.ttf create mode 100644 public/fonts/fontawesome-webfont.woff create mode 100644 public/fonts/fontawesome-webfont.woff2 create mode 100644 resources/views/weixin/user/userAccount.blade.php create mode 100644 resources/views/weixin/user/userMoneyList.blade.php create mode 100644 resources/views/weixin/user/userPointList.blade.php diff --git a/app/Http/Controllers/Weixin/UserController.php b/app/Http/Controllers/Weixin/UserController.php index 1f3c36e..b98cc62 100644 --- a/app/Http/Controllers/Weixin/UserController.php +++ b/app/Http/Controllers/Weixin/UserController.php @@ -28,6 +28,113 @@ class UserController extends CommonController return view('weixin.user.index', $data); } + //资金管理 + public function userAccount(Request $request) + { + $postdata = array( + 'access_token' => $_SESSION['weixin_user_info']['access_token'] + ); + $url = env('APP_API_URL')."/user_info"; + $res = curl_request($url,$postdata,'GET'); + $data['user_info'] = $res['data']; + + return view('weixin.user.userAccount', $data); + } + + //余额明细 + public function userMoneyList(Request $request) + { + $pagesize = 10; + $offset = 0; + if(isset($_REQUEST['page'])){$offset = ($_REQUEST['page']-1)*$pagesize;} + + $postdata = array( + 'limit' => $pagesize, + 'offset' => $offset, + 'access_token' => $_SESSION['weixin_user_info']['access_token'] + ); + $url = env('APP_API_URL')."/user_money_list"; + $res = curl_request($url,$postdata,'GET'); + $data['list'] = $res['data']['list']; + + $data['totalpage'] = ceil($res['data']['count']/$pagesize); + + if(isset($_REQUEST['page_ajax']) && $_REQUEST['page_ajax']==1) + { + $html = ''; + + if($res['data']['list']) + { + foreach($res['data']['list'] as $k => $v) + { + $html .= '
'.$v['des'].'
'; + $html .= ''.date('Y-m-d H:i:s',$v['add_time']).'
'.$v['des'].'
'; + $html .= ''.date('Y-m-d H:i:s',$v['add_time']).'
J)(lYyQ1kItoa2CREud1?qW}t
zM4Dkg^u(WZ_eR(ZM4m(7XDhLZ?W2K;DP&7Sv38K>`~~8??IrDMDYinNha}2FiOrT>
z8fWDINp)=E?=H;RV^ycIj%P?dzqq-zv{ikudG9{VMbCj6I~)g<*PUTb3Et$Cl1&4S
zF!BbzQPAALhcANgend4zG<$b1djlMPRjCH?SE
zxUM|3v~V+buR}bV$`%F9=jpee08vsxGU&dmkL&kwU4VNL*{Lh%c=D|fAS$aUt*cYf
zJIK_e$vkau$TD*fK(;%`P5gN0I(hyYc}(r@5Cc>|cyDY4;B0o{eVYFY)!cJI9_Igu
z&R`fve7qW#2C#(wl0FFfV0VS&Dttg#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