see.php 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. {extend name="public/container"}
  2. {block name="content"}
  3. <style>
  4. .backlog-body{
  5. padding: 10px 15px;
  6. background-color: #f8f8f8;
  7. color: #999;
  8. border-radius: 2px;
  9. transition: all .3s;
  10. -webkit-transition: all .3s;
  11. overflow: hidden;
  12. max-height: 84px;
  13. }
  14. .backlog-body h3{
  15. margin-bottom: 10px;
  16. }
  17. .right-icon{
  18. position: absolute;
  19. right: 10px;
  20. }
  21. .backlog-body p cite {
  22. font-style: normal;
  23. font-size: 17px;
  24. font-weight: 300;
  25. color: #009688;
  26. }
  27. .layuiadmin-badge, .layuiadmin-btn-group, .layuiadmin-span-color {
  28. position: absolute;
  29. right: 15px;
  30. }
  31. .layuiadmin-badge {
  32. top: 50%;
  33. margin-top: -9px;
  34. color: #01AAED;
  35. }
  36. </style>
  37. <div class="layui-fluid">
  38. <div class="layui-row layui-col-space15">
  39. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  40. <div class="layui-card">
  41. <div class="layui-card-header">会员详情</div>
  42. <div class="layui-card-body">
  43. <ul class="layui-row layui-col-space10 layui-this">
  44. {volist name='userinfo' id='vo'}
  45. {if trim($vo.value)}
  46. <li class="layui-col-xs<?=isset($vo['col']) ? $vo['col'] :4?>">
  47. <div class="backlog-body">
  48. <h3>{$vo.name}</h3>
  49. <p><cite {if isset($vo['color'])} style="color: {$vo['color']}" {/if}>{$vo.value}</cite></p>
  50. </div>
  51. </li>
  52. {/if}
  53. {/volist}
  54. </ul>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  59. <div class="layui-card">
  60. <div class="layui-card-header">其他详情</div>
  61. <div class="layui-card-body">
  62. <div class="layui-row layui-col-space15">
  63. {volist name='headerList' id='vo'}
  64. <div class="layui-col-xs3" style="margin-bottom: 10px ">
  65. <div class="layui-card">
  66. <div class="layui-card-header">
  67. {$vo.title}
  68. <span class="layui-badge layuiadmin-badge {if isset($vo.class) && $vo.class}{$vo.class}{else}layui-bg-blue{/if}">{$vo.key}</span>
  69. </div>
  70. <div class="layui-card-body">
  71. <p class="layuiadmin-big-font">{$vo.value}</p>
  72. </div>
  73. </div>
  74. </div>
  75. {/volist}
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  81. <div class="layui-card">
  82. <div class="layui-card-header">其他记录</div>
  83. <div class="layui-card-body">
  84. <div class="layui-tab layui-tab-card">
  85. <ul class="layui-tab-title">
  86. <li class="layui-this">消费能力</li>
  87. <li>阳光明细</li>
  88. <li>签到记录</li>
  89. <li>持有优惠劵</li>
  90. <li>余额变动记录</li>
  91. <li>推广下线明细</li>
  92. <li>二级下线</li>
  93. <li>伞下会员</li>
  94. </ul>
  95. <div class="layui-tab-content" id="content">
  96. <div class="layui-tab-item layui-show">
  97. <table class="layui-table" lay-skin="line" v-cloak="">
  98. <thead>
  99. <tr>
  100. <th>订单编号</th>
  101. <th>收货人</th>
  102. <th>商品数量</th>
  103. <th>商品总价</th>
  104. <th>实付金额</th>
  105. <th>交易完成时间</th>
  106. </tr>
  107. </thead>
  108. <tbody>
  109. <tr v-for="item in orderList">
  110. <td class="text-center">{{item.order_id}}
  111. <p>
  112. <span class="layui-badge" :class="{'layui-bg-green':item.paid==1}" v-text="item.paid==1 ? '已支付': '未支付' ">正在加载</span>
  113. <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>
  114. <span class="layui-badge layui-bg-black" v-show="item.pink_id!=0">拼团</span>
  115. <span class="layui-badge layui-bg-blue" v-show="item.seckill_id!=0">秒杀</span>
  116. <span class="layui-badge layui-bg-gray" v-show="item.bargain_id!=0">砍价</span>
  117. </p>
  118. </td>
  119. <td>{{item.real_name}}</td>
  120. <td>{{item.total_num}}</td>
  121. <td>{{item.total_price}}</td>
  122. <td>{{item.pay_price}}</td>
  123. <td>{{item.pay_time}}</td>
  124. </tr>
  125. <tr v-show="orderList.length<=0" style="text-align: center">
  126. <td colspan="6">暂无数据</td>
  127. </tr>
  128. </tbody>
  129. </table>
  130. <div ref="page_order" v-show="count.order_count > limit" style="text-align: right;"></div>
  131. </div>
  132. <div class="layui-tab-item">
  133. <table class="layui-table" lay-skin="line" v-cloak="">
  134. <thead>
  135. <tr>
  136. <th>来源/用途</th>
  137. <th>积分变化</th>
  138. <th>变化后积分</th>
  139. <th>日期</th>
  140. <th>备注</th>
  141. </tr>
  142. </thead>
  143. <tbody>
  144. <tr v-for="item in integralList">
  145. <td>{{item.title}}</td>
  146. <td>{{item.number}}</td>
  147. <td>{{item.balance}}</td>
  148. <td>{{item.add_time}}</td>
  149. <td>{{item.mark}}</td>
  150. </tr>
  151. <tr v-show="integralList.length<=0" style="text-align: center">
  152. <td colspan="5">暂无数据</td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <div ref="integral_page" v-show="count.integral_count > limit" style="text-align: right;"></div>
  157. </div>
  158. <div class="layui-tab-item">
  159. <table class="layui-table" lay-skin="line" v-cloak="">
  160. <thead>
  161. <tr>
  162. <th>动作</th>
  163. <th>获得积分</th>
  164. <th>签到时间</th>
  165. <th>备注</th>
  166. </tr>
  167. </thead>
  168. <tbody>
  169. <tr v-for="item in SignList">
  170. <td>{{item.title}}</td>
  171. <td>{{item.number}}</td>
  172. <td>{{item.add_time}}</td>
  173. <td>{{item.mark}}</td>
  174. </tr>
  175. <tr v-show="SignList.length<=0" style="text-align: center">
  176. <td colspan="4">暂无数据</td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. <div ref="Sign_page" v-show="count.sign_count > limit" style="text-align: right;"></div>
  181. </div>
  182. <div class="layui-tab-item">
  183. <table class="layui-table" v-cloak="">
  184. <thead>
  185. <tr>
  186. <th>优惠券名称</th>
  187. <th>面值</th>
  188. <th>有效期</th>
  189. <th>所需积分</th>
  190. <th>兑换时间</th>
  191. </tr>
  192. </thead>
  193. <tbody>
  194. <tr v-for="item in CouponsList">
  195. <td>{{item.coupon_title}}
  196. <p>
  197. <span class="layui-badge" :class="{'layui-bg-green':item._type>=1}" v-text="item._type>=1 ? '可使用': '已过期' ">正在加载</span>
  198. </p>
  199. </td>
  200. <td>{{item.coupon_price}}</td>
  201. <td>{{item._add_time}}-{{item._end_time}}</td>
  202. <td>{{item.integral}}</td>
  203. <td>{{item._add_time}}</td>
  204. </tr>
  205. <tr v-show="CouponsList.length<=0" style="text-align: center">
  206. <td colspan="5">暂无数据</td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. <div ref="copons_page" v-show="count.coupon_count > limit" style="text-align: right;"></div>
  211. </div>
  212. <div class="layui-tab-item">
  213. <table class="layui-table" v-cloak="">
  214. <thead>
  215. <tr>
  216. <th>变动金额</th>
  217. <th>变动后</th>
  218. <th>类型</th>
  219. <th>创建时间</th>
  220. <th>备注</th>
  221. </tr>
  222. </thead>
  223. <tbody>
  224. <tr v-for="item in balanceChangList">
  225. <td>{{item.number}}
  226. <p v-show="item.pm==1">
  227. <span class="layui-badge layui-bg-green" v-show="item.status==1">有效</span>
  228. <span class="layui-badge layui-bg-orange" v-show="item.status==0">带确定</span>
  229. <span class="layui-badge layui-bg-gray" v-show="item.status==-1">无效</span>
  230. </p>
  231. </td>
  232. <td>{{item.balance}}</td>
  233. <td>{{item._type}}</td>
  234. <td>{{item.add_time}}</td>
  235. <td>{{item.mark}}</td>
  236. </tr>
  237. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  238. <td colspan="5">暂无数据</td>
  239. </tr>
  240. </tbody>
  241. </table>
  242. <div ref="balancechang_page" v-show="count.balanceChang_count > limit" style="text-align: right;"></div>
  243. </div>
  244. <!--推广人-->
  245. <div class="layui-tab-item">
  246. <table class="layui-table" v-cloak="">
  247. <thead>
  248. <tr>
  249. <th>uid</th>
  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 SpreadList">
  259. <td>{{item.uid}}</td>
  260. <td>
  261. {{item.nickname}}
  262. <p v-show="item.is_vip">
  263. <span class="layui-badge layui-bg-orange" v-text="item.vip_name"></span>
  264. </p>
  265. </td>
  266. <td>{{item.now_money}}</td>
  267. <td>{{item.integral}}</td>
  268. <td>{{item.white_integral}}</td>
  269. <td>{{item.add_time}}</td>
  270. </tr>
  271. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  272. <td colspan="4">暂无数据</td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. <div ref="spread_page" v-show="count.spread_count > limit" style="text-align: right;"></div>
  277. </div>
  278. <!--end-->
  279. <!--二级-->
  280. <div class="layui-tab-item">
  281. <table class="layui-table" v-cloak="">
  282. <thead>
  283. <tr>
  284. <th>uid</th>
  285. <th>昵称</th>
  286. <th>余额</th>
  287. <th>阳光</th>
  288. <th>肥料</th>
  289. <th>加入时间</th>
  290. </tr>
  291. </thead>
  292. <tbody>
  293. <tr v-for="item in Spread_list">
  294. <td>{{item.uid}}</td>
  295. <td>
  296. {{item.nickname}}
  297. <p v-show="item.is_vip">
  298. <span class="layui-badge layui-bg-orange" v-text="item.vip_name"></span>
  299. </p>
  300. </td>
  301. <td>{{item.now_money}}</td>
  302. <td>{{item.integral}}</td>
  303. <td>{{item.white_integral}}</td>
  304. <td>{{item.add_time}}</td>
  305. </tr>
  306. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  307. <td colspan="4">暂无数据</td>
  308. </tr>
  309. </tbody>
  310. </table>
  311. <div ref="spread" v-show="count.spreadCount > limit" style="text-align: right;"></div>
  312. </div>
  313. <!--end-->
  314. <!--全部-->
  315. <div class="layui-tab-item">
  316. <table class="layui-table" v-cloak="">
  317. <thead>
  318. <tr>
  319. <th>uid</th>
  320. <th>昵称</th>
  321. <th>余额</th>
  322. <th>阳光</th>
  323. <th>肥料</th>
  324. <th>加入时间</th>
  325. </tr>
  326. </thead>
  327. <tbody>
  328. <tr v-for="item in Spread_list_sx">
  329. <td>{{item.uid}}</td>
  330. <td>
  331. {{item.nickname}}
  332. <p v-show="item.is_vip">
  333. <span class="layui-badge layui-bg-orange" v-text="item.vip_name"></span>
  334. </p>
  335. </td>
  336. <td>{{item.now_money}}</td>
  337. <td>{{item.integral}}</td>
  338. <td>{{item.white_integral}}</td>
  339. <td>{{item.add_time}}</td>
  340. </tr>
  341. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  342. <td colspan="4">暂无数据</td>
  343. </tr>
  344. </tbody>
  345. </table>
  346. <div ref="sxhy" v-show="count.sxhyCount > limit" style="text-align: right;"></div>
  347. </div>
  348. <!--end-->
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  357. <script>
  358. var count=<?=json_encode($count)?>,
  359. $uid=<?=$uid?>;
  360. require(['vue'],function(Vue) {
  361. new Vue({
  362. el: "#content",
  363. data: {
  364. limit:100,
  365. uid:$uid,
  366. orderList:[],
  367. integralList:[],
  368. SignList:[],
  369. CouponsList:[],
  370. balanceChangList:[],
  371. SpreadList:[],
  372. Spread_list:[],
  373. Spread_list_sx:[],
  374. count:count,
  375. page:{
  376. order_page:1,
  377. integral_page:1,
  378. sign_page:1,
  379. copons_page:1,
  380. balancechang_page:1,
  381. spread_page:1,
  382. spread:1,
  383. sxhy:1,
  384. },
  385. },
  386. watch:{
  387. 'page.order_page':function () {
  388. this.getOneorderList();
  389. },
  390. 'page.integral_page':function () {
  391. this.getOneIntegralList();
  392. },
  393. 'page.sign_page':function () {
  394. this.getOneSignList();
  395. },
  396. 'page.copons_page':function () {
  397. this.getOneCouponsList();
  398. },
  399. 'page.balancechang_page':function () {
  400. this.getOneBalanceChangList();
  401. },
  402. 'page.spread_page':function () {
  403. this.getSpreadList();
  404. },
  405. 'page.spread':function () {
  406. this.getSpread();
  407. },
  408. 'page.sxhy':function () {
  409. this.getSpreadSx();
  410. }
  411. },
  412. methods:{
  413. getSpreadList:function(){
  414. this.request('getSpreadList',this.page.spread_page,'SpreadList');
  415. },
  416. getSpread:function(){
  417. this.request('getSpread',this.page.spread,'Spread_list');
  418. },
  419. getSpreadSx:function(){
  420. this.request('getSpreadSx',this.page.spread,'Spread_list_sx');
  421. },
  422. getOneorderList:function () {
  423. this.request('getOneorderList',this.page.order_page,'orderList');
  424. },
  425. getOneIntegralList:function () {
  426. this.request('getOneIntegralList',this.page.integral_page,'integralList');
  427. },
  428. getOneSignList:function () {
  429. this.request('getOneSignList',this.page.sign_page,'SignList');
  430. },
  431. getOneCouponsList:function () {
  432. this.request('getOneCouponsList',this.page.copons_page,'CouponsList');
  433. },
  434. getOneBalanceChangList:function () {
  435. this.request('getOneBalanceChangList',this.page.balancechang_page,'balanceChangList');
  436. },
  437. request:function (action,page,name) {
  438. var that=this;
  439. layList.baseGet(layList.U({a:action,p:{page:page,limit:this.limit,uid:this.uid}}),function (res) {
  440. that.$set(that,name,res.data)
  441. });
  442. }
  443. },
  444. mounted:function () {
  445. this.getOneorderList();
  446. this.getOneIntegralList();
  447. this.getOneSignList();
  448. this.getOneCouponsList();
  449. this.getOneBalanceChangList();
  450. this.getSpreadList();
  451. this.getSpread();
  452. this.getSpreadSx();
  453. var that=this;
  454. layList.laypage.render({
  455. elem: that.$refs.page_order
  456. ,count:that.count.order_count
  457. ,limit:that.limit
  458. ,theme: '#1E9FFF',
  459. jump:function(obj){
  460. that.page.order_page=obj.curr;
  461. }
  462. });
  463. layList.laypage.render({
  464. elem: that.$refs.integral_page
  465. ,count:that.count.integral_count
  466. ,limit:that.limit
  467. ,theme: '#1E9FFF',
  468. jump:function(obj){
  469. that.page.integral_page=obj.curr;
  470. }
  471. });
  472. layList.laypage.render({
  473. elem: that.$refs.Sign_page
  474. ,count:that.count.sign_count
  475. ,limit:that.limit
  476. ,theme: '#1E9FFF',
  477. jump:function(obj){
  478. that.page.sign_page=obj.curr;
  479. }
  480. });
  481. layList.laypage.render({
  482. elem: that.$refs.copons_page
  483. ,count:that.count.coupon_count
  484. ,limit:that.limit
  485. ,theme: '#1E9FFF',
  486. jump:function(obj){
  487. that.page.copons_page=obj.curr;
  488. }
  489. });
  490. layList.laypage.render({
  491. elem: that.$refs.balancechang_page
  492. ,count:that.count.balanceChang_count
  493. ,limit:that.limit
  494. ,theme: '#1E9FFF',
  495. jump:function(obj){
  496. that.page.balancechang_page=obj.curr;
  497. }
  498. });
  499. layList.laypage.render({
  500. elem: that.$refs.spread_page
  501. ,count:that.count.spread_count
  502. ,limit:that.limit
  503. ,theme: '#1E9FFF',
  504. jump:function(obj){
  505. that.page.spread_page=obj.curr;
  506. }
  507. });
  508. layList.laypage.render({
  509. elem: that.$refs.spread
  510. ,count:that.count.spreadCount
  511. ,limit:that.limit
  512. ,theme: '#1E9FFF',
  513. jump:function(obj){
  514. that.page.spread=obj.curr;
  515. }
  516. });
  517. layList.laypage.render({
  518. elem: that.$refs.sxhy
  519. ,count:that.count.sxhyCount
  520. ,limit:that.limit
  521. ,theme: '#1E9FFF',
  522. jump:function(obj){
  523. that.page.sxhy=obj.curr;
  524. }
  525. });
  526. }
  527. });
  528. });
  529. </script>
  530. {/block}