ac8cdde27fc053dc46496071d3e9e892.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. <?php /*a:5:{s:58:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\user\user\see.php";i:1595820902;s:61:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\container.php";i:1595820902;s:62:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_head.php";i:1595820902;s:57:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\style.php";i:1595820902;s:64:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_footer.php";i:1595820902;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <?php if(empty($is_layui) || (($is_layui instanceof \think\Collection || $is_layui instanceof \think\Paginator ) && $is_layui->isEmpty())): ?>
  8. <link href="/system/frame/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
  9. <?php endif; ?>
  10. <link href="/static/plug/layui/css/layui.css" rel="stylesheet">
  11. <link href="/system/css/layui-admin.css" rel="stylesheet">
  12. <link href="/system/frame/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
  13. <link href="/system/frame/css/animate.min.css" rel="stylesheet">
  14. <link href="/system/frame/css/style.min.css?v=3.0.0" rel="stylesheet">
  15. <script src="/system/frame/js/jquery.min.js"></script>
  16. <script src="/system/frame/js/bootstrap.min.js"></script>
  17. <script src="/static/plug/layui/layui.all.js"></script>
  18. <script>
  19. $eb = parent._mpApi;
  20. window.controlle="<?php echo strtolower(trim(preg_replace("/[A-Z]/", "_\\0", app('request')->controller()), "_"));?>";
  21. window.module="<?php echo app('http')->getName();?>";
  22. </script>
  23. <title></title>
  24. <!--<script type="text/javascript" src="/static/plug/basket.js"></script>-->
  25. <script type="text/javascript" src="/static/plug/requirejs/require.js"></script>
  26. <?php /* <script type="text/javascript" src="/static/plug/requirejs/require-basket-load.js"></script> */ ?>
  27. <script>
  28. var hostname = location.hostname;
  29. if(location.port) hostname += ':' + location.port;
  30. requirejs.config({
  31. map: {
  32. '*': {
  33. 'css': '/static/plug/requirejs/require-css.js'
  34. }
  35. },
  36. shim:{
  37. 'iview':{
  38. deps:['css!iviewcss']
  39. },
  40. 'layer':{
  41. deps:['css!layercss']
  42. }
  43. },
  44. baseUrl:'//'+hostname+'/',
  45. paths: {
  46. 'static':'static',
  47. 'system':'system',
  48. 'vue':'static/plug/vue/dist/vue.min',
  49. 'axios':'static/plug/axios.min',
  50. 'iview':'static/plug/iview/dist/iview.min',
  51. 'iviewcss':'static/plug/iview/dist/styles/iview',
  52. 'lodash':'static/plug/lodash',
  53. 'layer':'static/plug/layer/layer',
  54. 'layercss':'static/plug/layer/theme/default/layer',
  55. 'jquery':'static/plug/jquery/jquery.min',
  56. 'moment':'static/plug/moment',
  57. 'sweetalert':'static/plug/sweetalert2/sweetalert2.all.min',
  58. 'formCreate':'/static/plug/form-create/form-create.min',
  59. },
  60. basket: {
  61. excludes:['system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  62. // excludes:['system/util/mpFormBuilder','system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  63. }
  64. });
  65. </script>
  66. <script type="text/javascript" src="/system/util/mpFrame.js"></script>
  67. </head>
  68. <body class="gray-bg">
  69. <div class="wrapper wrapper-content">
  70. <style>
  71. .backlog-body{
  72. padding: 10px 15px;
  73. background-color: #f8f8f8;
  74. color: #999;
  75. border-radius: 2px;
  76. transition: all .3s;
  77. -webkit-transition: all .3s;
  78. overflow: hidden;
  79. max-height: 84px;
  80. }
  81. .backlog-body h3{
  82. margin-bottom: 10px;
  83. }
  84. .right-icon{
  85. position: absolute;
  86. right: 10px;
  87. }
  88. .backlog-body p cite {
  89. font-style: normal;
  90. font-size: 17px;
  91. font-weight: 300;
  92. color: #009688;
  93. }
  94. .layuiadmin-badge, .layuiadmin-btn-group, .layuiadmin-span-color {
  95. position: absolute;
  96. right: 15px;
  97. }
  98. .layuiadmin-badge {
  99. top: 50%;
  100. margin-top: -9px;
  101. color: #01AAED;
  102. }
  103. </style>
  104. <div class="layui-fluid">
  105. <div class="layui-row layui-col-space15">
  106. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  107. <div class="layui-card">
  108. <div class="layui-card-header">会员详情</div>
  109. <div class="layui-card-body">
  110. <ul class="layui-row layui-col-space10 layui-this">
  111. <?php if(is_array($userinfo) || $userinfo instanceof \think\Collection || $userinfo instanceof \think\Paginator): $i = 0; $__LIST__ = $userinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(trim($vo['value'])): ?>
  112. <li class="layui-col-xs<?=isset($vo['col']) ? $vo['col'] :4?>">
  113. <div class="backlog-body">
  114. <h3><?php echo htmlentities($vo['name']); ?></h3>
  115. <p><cite <?php if(isset($vo['color'])): ?> style="color: <?php echo htmlentities($vo['color']); ?>" <?php endif; ?>><?php echo htmlentities($vo['value']); ?></cite></p>
  116. </div>
  117. </li>
  118. <?php endif; ?>
  119. <?php endforeach; endif; else: echo "" ;endif; ?>
  120. </ul>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  125. <div class="layui-card">
  126. <div class="layui-card-header">其他详情</div>
  127. <div class="layui-card-body">
  128. <div class="layui-row layui-col-space15">
  129. <?php if(is_array($headerList) || $headerList instanceof \think\Collection || $headerList instanceof \think\Paginator): $i = 0; $__LIST__ = $headerList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  130. <div class="layui-col-xs3" style="margin-bottom: 10px ">
  131. <div class="layui-card">
  132. <div class="layui-card-header">
  133. <?php echo htmlentities($vo['title']); ?>
  134. <span class="layui-badge layuiadmin-badge <?php if(isset($vo['class']) && $vo['class']): ?><?php echo htmlentities($vo['class']); else: ?>layui-bg-blue<?php endif; ?>"><?php echo htmlentities($vo['key']); ?></span>
  135. </div>
  136. <div class="layui-card-body">
  137. <p class="layuiadmin-big-font"><?php echo htmlentities($vo['value']); ?></p>
  138. </div>
  139. </div>
  140. </div>
  141. <?php endforeach; endif; else: echo "" ;endif; ?>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  147. <div class="layui-card">
  148. <div class="layui-card-header">其他记录</div>
  149. <div class="layui-card-body">
  150. <div class="layui-tab layui-tab-card">
  151. <ul class="layui-tab-title">
  152. <li class="layui-this">消费能力</li>
  153. <li>积分明细</li>
  154. <li>签到记录</li>
  155. <li>持有优惠劵</li>
  156. <li>余额变动记录</li>
  157. <li>推广下线明细</li>
  158. </ul>
  159. <div class="layui-tab-content" id="content">
  160. <div class="layui-tab-item layui-show">
  161. <table class="layui-table" lay-skin="line" v-cloak="">
  162. <thead>
  163. <tr>
  164. <th>订单编号</th>
  165. <th>收货人</th>
  166. <th>商品数量</th>
  167. <th>商品总价</th>
  168. <th>实付金额</th>
  169. <th>交易完成时间</th>
  170. </tr>
  171. </thead>
  172. <tbody>
  173. <tr v-for="item in orderList">
  174. <td class="text-center">{{item.order_id}}
  175. <p>
  176. <span class="layui-badge" :class="{'layui-bg-green':item.paid==1}" v-text="item.paid==1 ? '已支付': '未支付' ">正在加载</span>
  177. <span class="layui-badge" :class="{'layui-bg-cyan':item.pay_type=='yue','layui-bg-blue':item.pay_type=='weixin'}" v-text="item.pay_type=='weixin' ? '微信支付': '余额支付' ">正在加载</span>
  178. <span class="layui-badge layui-bg-black" v-show="item.pink_id!=0">拼团</span>
  179. <span class="layui-badge layui-bg-blue" v-show="item.seckill_id!=0">秒杀</span>
  180. <span class="layui-badge layui-bg-gray" v-show="item.bargain_id!=0">砍价</span>
  181. </p>
  182. </td>
  183. <td>{{item.real_name}}</td>
  184. <td>{{item.total_num}}</td>
  185. <td>{{item.total_price}}</td>
  186. <td>{{item.pay_price}}</td>
  187. <td>{{item.pay_time}}</td>
  188. </tr>
  189. <tr v-show="orderList.length<=0" style="text-align: center">
  190. <td colspan="6">暂无数据</td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <div ref="page_order" v-show="count.order_count > limit" style="text-align: right;"></div>
  195. </div>
  196. <div class="layui-tab-item">
  197. <table class="layui-table" lay-skin="line" v-cloak="">
  198. <thead>
  199. <tr>
  200. <th>来源/用途</th>
  201. <th>积分变化</th>
  202. <th>变化后积分</th>
  203. <th>日期</th>
  204. <th>备注</th>
  205. </tr>
  206. </thead>
  207. <tbody>
  208. <tr v-for="item in integralList">
  209. <td>{{item.title}}</td>
  210. <td>{{item.number}}</td>
  211. <td>{{item.balance}}</td>
  212. <td>{{item.add_time}}</td>
  213. <td>{{item.mark}}</td>
  214. </tr>
  215. <tr v-show="integralList.length<=0" style="text-align: center">
  216. <td colspan="5">暂无数据</td>
  217. </tr>
  218. </tbody>
  219. </table>
  220. <div ref="integral_page" v-show="count.integral_count > limit" style="text-align: right;"></div>
  221. </div>
  222. <div class="layui-tab-item">
  223. <table class="layui-table" lay-skin="line" v-cloak="">
  224. <thead>
  225. <tr>
  226. <th>动作</th>
  227. <th>获得积分</th>
  228. <th>签到时间</th>
  229. <th>备注</th>
  230. </tr>
  231. </thead>
  232. <tbody>
  233. <tr v-for="item in SignList">
  234. <td>{{item.title}}</td>
  235. <td>{{item.number}}</td>
  236. <td>{{item.add_time}}</td>
  237. <td>{{item.mark}}</td>
  238. </tr>
  239. <tr v-show="SignList.length<=0" style="text-align: center">
  240. <td colspan="4">暂无数据</td>
  241. </tr>
  242. </tbody>
  243. </table>
  244. <div ref="Sign_page" v-show="count.sign_count > limit" style="text-align: right;"></div>
  245. </div>
  246. <div class="layui-tab-item">
  247. <table class="layui-table" v-cloak="">
  248. <thead>
  249. <tr>
  250. <th>优惠券名称</th>
  251. <th>面值</th>
  252. <th>有效期</th>
  253. <th>所需积分</th>
  254. <th>兑换时间</th>
  255. </tr>
  256. </thead>
  257. <tbody>
  258. <tr v-for="item in CouponsList">
  259. <td>{{item.coupon_title}}
  260. <p>
  261. <span class="layui-badge" :class="{'layui-bg-green':item._type>=1}" v-text="item._type>=1 ? '可使用': '已过期' ">正在加载</span>
  262. </p>
  263. </td>
  264. <td>{{item.coupon_price}}</td>
  265. <td>{{item._add_time}}-{{item._end_time}}</td>
  266. <td>{{item.integral}}</td>
  267. <td>{{item._add_time}}</td>
  268. </tr>
  269. <tr v-show="CouponsList.length<=0" style="text-align: center">
  270. <td colspan="5">暂无数据</td>
  271. </tr>
  272. </tbody>
  273. </table>
  274. <div ref="copons_page" v-show="count.coupon_count > limit" style="text-align: right;"></div>
  275. </div>
  276. <div class="layui-tab-item">
  277. <table class="layui-table" v-cloak="">
  278. <thead>
  279. <tr>
  280. <th>变动金额</th>
  281. <th>变动后</th>
  282. <th>类型</th>
  283. <th>创建时间</th>
  284. <th>备注</th>
  285. </tr>
  286. </thead>
  287. <tbody>
  288. <tr v-for="item in balanceChangList">
  289. <td>{{item.number}}
  290. <p v-show="item.pm==1">
  291. <span class="layui-badge layui-bg-green" v-show="item.status==1">有效</span>
  292. <span class="layui-badge layui-bg-orange" v-show="item.status==0">带确定</span>
  293. <span class="layui-badge layui-bg-gray" v-show="item.status==-1">无效</span>
  294. </p>
  295. </td>
  296. <td>{{item.balance}}</td>
  297. <td>{{item._type}}</td>
  298. <td>{{item.add_time}}</td>
  299. <td>{{item.mark}}</td>
  300. </tr>
  301. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  302. <td colspan="5">暂无数据</td>
  303. </tr>
  304. </tbody>
  305. </table>
  306. <div ref="balancechang_page" v-show="count.balanceChang_count > limit" style="text-align: right;"></div>
  307. </div>
  308. <!--推广人-->
  309. <div class="layui-tab-item">
  310. <table class="layui-table" v-cloak="">
  311. <thead>
  312. <tr>
  313. <th>昵称</th>
  314. <th>余额</th>
  315. <th>积分</th>
  316. <th>加入时间</th>
  317. </tr>
  318. </thead>
  319. <tbody>
  320. <tr v-for="item in SpreadList">
  321. <td>
  322. {{item.nickname}}
  323. <p v-show="item.is_vip">
  324. <span class="layui-badge layui-bg-orange" v-text="item.vip_name"></span>
  325. </p>
  326. </td>
  327. <td>{{item.now_money}}</td>
  328. <td>{{item.integral}}</td>
  329. <td>{{item.add_time}}</td>
  330. </tr>
  331. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  332. <td colspan="4">暂无数据</td>
  333. </tr>
  334. </tbody>
  335. </table>
  336. <div ref="spread_page" v-show="count.spread_count > limit" style="text-align: right;"></div>
  337. </div>
  338. <!--end-->
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. <script src="/system/js/layuiList.js"></script>
  347. <script>
  348. var count=<?=json_encode($count)?>,
  349. $uid=<?=$uid?>;
  350. require(['vue'],function(Vue) {
  351. new Vue({
  352. el: "#content",
  353. data: {
  354. limit:10,
  355. uid:$uid,
  356. orderList:[],
  357. integralList:[],
  358. SignList:[],
  359. CouponsList:[],
  360. balanceChangList:[],
  361. SpreadList:[],
  362. count:count,
  363. page:{
  364. order_page:1,
  365. integral_page:1,
  366. sign_page:1,
  367. copons_page:1,
  368. balancechang_page:1,
  369. spread_page:1,
  370. },
  371. },
  372. watch:{
  373. 'page.order_page':function () {
  374. this.getOneorderList();
  375. },
  376. 'page.integral_page':function () {
  377. this.getOneIntegralList();
  378. },
  379. 'page.sign_page':function () {
  380. this.getOneSignList();
  381. },
  382. 'page.copons_page':function () {
  383. this.getOneCouponsList();
  384. },
  385. 'page.balancechang_page':function () {
  386. this.getOneBalanceChangList();
  387. },
  388. 'page.spread_page':function () {
  389. this.getSpreadList();
  390. }
  391. },
  392. methods:{
  393. getSpreadList:function(){
  394. this.request('getSpreadList',this.page.spread_page,'SpreadList');
  395. },
  396. getOneorderList:function () {
  397. this.request('getOneorderList',this.page.order_page,'orderList');
  398. },
  399. getOneIntegralList:function () {
  400. this.request('getOneIntegralList',this.page.integral_page,'integralList');
  401. },
  402. getOneSignList:function () {
  403. this.request('getOneSignList',this.page.sign_page,'SignList');
  404. },
  405. getOneCouponsList:function () {
  406. this.request('getOneCouponsList',this.page.copons_page,'CouponsList');
  407. },
  408. getOneBalanceChangList:function () {
  409. this.request('getOneBalanceChangList',this.page.balancechang_page,'balanceChangList');
  410. },
  411. request:function (action,page,name) {
  412. var that=this;
  413. layList.baseGet(layList.U({a:action,p:{page:page,limit:this.limit,uid:this.uid}}),function (res) {
  414. that.$set(that,name,res.data)
  415. });
  416. }
  417. },
  418. mounted:function () {
  419. this.getOneorderList();
  420. this.getOneIntegralList();
  421. this.getOneSignList();
  422. this.getOneCouponsList();
  423. this.getOneBalanceChangList();
  424. this.getSpreadList();
  425. var that=this;
  426. layList.laypage.render({
  427. elem: that.$refs.page_order
  428. ,count:that.count.order_count
  429. ,limit:that.limit
  430. ,theme: '#1E9FFF',
  431. jump:function(obj){
  432. that.page.order_page=obj.curr;
  433. }
  434. });
  435. layList.laypage.render({
  436. elem: that.$refs.integral_page
  437. ,count:that.count.integral_count
  438. ,limit:that.limit
  439. ,theme: '#1E9FFF',
  440. jump:function(obj){
  441. that.page.integral_page=obj.curr;
  442. }
  443. });
  444. layList.laypage.render({
  445. elem: that.$refs.Sign_page
  446. ,count:that.count.sign_count
  447. ,limit:that.limit
  448. ,theme: '#1E9FFF',
  449. jump:function(obj){
  450. that.page.sign_page=obj.curr;
  451. }
  452. });
  453. layList.laypage.render({
  454. elem: that.$refs.copons_page
  455. ,count:that.count.coupon_count
  456. ,limit:that.limit
  457. ,theme: '#1E9FFF',
  458. jump:function(obj){
  459. that.page.copons_page=obj.curr;
  460. }
  461. });
  462. layList.laypage.render({
  463. elem: that.$refs.balancechang_page
  464. ,count:that.count.balanceChang_count
  465. ,limit:that.limit
  466. ,theme: '#1E9FFF',
  467. jump:function(obj){
  468. that.page.balancechang_page=obj.curr;
  469. }
  470. });
  471. layList.laypage.render({
  472. elem: that.$refs.spread_page
  473. ,count:that.count.spread_count
  474. ,limit:that.limit
  475. ,theme: '#1E9FFF',
  476. jump:function(obj){
  477. that.page.spread_page=obj.curr;
  478. }
  479. });
  480. }
  481. });
  482. });
  483. </script>
  484. </div>
  485. </body>
  486. </html>