see.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  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>
  50. </p>
  51. </div>
  52. </li>
  53. {/if}
  54. {/volist}
  55. </ul>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  60. <div class="layui-card">
  61. <div class="layui-card-header">其他详情</div>
  62. <div class="layui-card-body">
  63. <div class="layui-row layui-col-space15">
  64. {volist name='headerList' id='vo'}
  65. <div class="layui-col-xs3" style="margin-bottom: 10px ">
  66. <div class="layui-card">
  67. <div class="layui-card-header">
  68. {$vo.title}
  69. <span class="layui-badge layuiadmin-badge {if isset($vo.class) && $vo.class}{$vo.class}{else}layui-bg-blue{/if}">{$vo.key}</span>
  70. </div>
  71. <div class="layui-card-body">
  72. <p class="layuiadmin-big-font">{$vo.value}</p>
  73. </div>
  74. </div>
  75. </div>
  76. {/volist}
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  82. <div class="layui-card">
  83. <div class="layui-card-header">其他记录</div>
  84. <div class="layui-card-body">
  85. <div class="layui-tab layui-tab-card">
  86. <ul class="layui-tab-title">
  87. <li class="layui-this">消费能力</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}"
  113. v-text="item.paid==1 ? '已支付': '未支付' ">正在加载</span>
  114. <span class="layui-badge"
  115. :class="{'layui-bg-cyan':item.pay_type=='yue','layui-bg-blue':item.pay_type=='weixin'}"
  116. v-text="item.pay_type=='weixin' ? '微信支付': '余额支付' ">正在加载</span>
  117. <span class="layui-badge layui-bg-black"
  118. v-show="item.pink_id!=0">拼团</span>
  119. <span class="layui-badge layui-bg-blue"
  120. v-show="item.seckill_id!=0">秒杀</span>
  121. <span class="layui-badge layui-bg-gray"
  122. v-show="item.bargain_id!=0">砍价</span>
  123. </p>
  124. </td>
  125. <td>{{item.real_name}}</td>
  126. <td>{{item.total_num}}</td>
  127. <td>{{item.total_price}}</td>
  128. <td>{{item.pay_price}}</td>
  129. <td>{{item.pay_time}}</td>
  130. </tr>
  131. <tr v-show="orderList.length<=0" style="text-align: center">
  132. <td colspan="6">暂无数据</td>
  133. </tr>
  134. </tbody>
  135. </table>
  136. <div ref="page_order" v-show="count.order_count > limit"
  137. style="text-align: right;"></div>
  138. </div>
  139. <div class="layui-tab-item">
  140. <table class="layui-table" lay-skin="line" v-cloak="">
  141. <thead>
  142. <tr>
  143. <th>来源/用途</th>
  144. <th>积分变化</th>
  145. <th>变化后积分</th>
  146. <th>日期</th>
  147. <th>备注</th>
  148. </tr>
  149. </thead>
  150. <tbody>
  151. <tr v-for="item in integralList">
  152. <td>{{item.title}}</td>
  153. <td>{{item.number}}</td>
  154. <td>{{item.balance}}</td>
  155. <td>{{item.add_time}}</td>
  156. <td>{{item.mark}}</td>
  157. </tr>
  158. <tr v-show="integralList.length<=0" style="text-align: center">
  159. <td colspan="5">暂无数据</td>
  160. </tr>
  161. </tbody>
  162. </table>
  163. <div ref="integral_page" v-show="count.integral_count > limit"
  164. style="text-align: right;"></div>
  165. </div>
  166. <div class="layui-tab-item">
  167. <table class="layui-table" lay-skin="line" v-cloak="">
  168. <thead>
  169. <tr>
  170. <th>动作</th>
  171. <th>获得积分</th>
  172. <th>签到时间</th>
  173. <th>备注</th>
  174. </tr>
  175. </thead>
  176. <tbody>
  177. <tr v-for="item in SignList">
  178. <td>{{item.title}}</td>
  179. <td>{{item.number}}</td>
  180. <td>{{item.add_time}}</td>
  181. <td>{{item.mark}}</td>
  182. </tr>
  183. <tr v-show="SignList.length<=0" style="text-align: center">
  184. <td colspan="4">暂无数据</td>
  185. </tr>
  186. </tbody>
  187. </table>
  188. <div ref="Sign_page" v-show="count.sign_count > limit" style="text-align: right;"></div>
  189. </div>
  190. <div class="layui-tab-item">
  191. <table class="layui-table" v-cloak="">
  192. <thead>
  193. <tr>
  194. <th>优惠券名称</th>
  195. <th>面值</th>
  196. <th>有效期</th>
  197. <th>所需积分</th>
  198. <th>兑换时间</th>
  199. </tr>
  200. </thead>
  201. <tbody>
  202. <tr v-for="item in CouponsList">
  203. <td>{{item.coupon_title}}
  204. <p>
  205. <span class="layui-badge" :class="{'layui-bg-green':item._type>=1}"
  206. v-text="item._type>=1 ? '可使用': '已过期' ">正在加载</span>
  207. </p>
  208. </td>
  209. <td>{{item.coupon_price}}</td>
  210. <td>{{item._add_time}}-{{item._end_time}}</td>
  211. <td>{{item.integral}}</td>
  212. <td>{{item._add_time}}</td>
  213. </tr>
  214. <tr v-show="CouponsList.length<=0" style="text-align: center">
  215. <td colspan="5">暂无数据</td>
  216. </tr>
  217. </tbody>
  218. </table>
  219. <div ref="copons_page" v-show="count.coupon_count > limit"
  220. style="text-align: right;"></div>
  221. </div>
  222. <div class="layui-tab-item">
  223. <table class="layui-table" v-cloak="">
  224. <thead>
  225. <tr>
  226. <th>变动金额</th>
  227. <th>变动后</th>
  228. <th>货币</th>
  229. <th>类型</th>
  230. <th>创建时间</th>
  231. <th>备注</th>
  232. </tr>
  233. </thead>
  234. <tbody>
  235. <tr v-for="item in balanceChangList">
  236. <td><font v-if="item.pm==1">+</font><font v-else>-</font>{{item.number}}
  237. <!-- <p v-show="item.pm==1">-->
  238. <span class="layui-badge layui-bg-green"
  239. v-show="item.status==1">有效</span>
  240. <span class="layui-badge layui-bg-orange"
  241. v-show="item.status==0">待确定</span>
  242. <span class="layui-badge layui-bg-gray"
  243. v-show="item.status==-1">无效</span>
  244. <!-- </p>-->
  245. </td>
  246. <td v-if="item.status==0">--</td>
  247. <td v-else>{{item.balance}}</td>
  248. <td v-if="item.type=='brokerage'">佣金</td>
  249. <td v-else>余额</td>
  250. <td>{{item.title}}</td>
  251. <td>{{item.add_time}}</td>
  252. <td>{{item.mark}}</td>
  253. </tr>
  254. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  255. <td colspan="5">暂无数据</td>
  256. </tr>
  257. </tbody>
  258. </table>
  259. <div ref="balancechang_page" v-show="count.balanceChang_count > limit"
  260. style="text-align: right;"></div>
  261. </div>
  262. <div class="layui-tab-item">
  263. <table class="layui-table" v-cloak="">
  264. <thead>
  265. <tr>
  266. <th>变动额度</th>
  267. <th>变动后</th>
  268. <th>类型</th>
  269. <th>创建时间</th>
  270. <th>备注</th>
  271. </tr>
  272. </thead>
  273. <tbody>
  274. <tr v-for="item in consumeChangList">
  275. <td>{{item.number}}
  276. <p v-show="item.pm==1">
  277. <span class="layui-badge layui-bg-green"
  278. v-show="item.status==1">有效</span>
  279. <span class="layui-badge layui-bg-orange"
  280. v-show="item.status==0">带确定</span>
  281. <span class="layui-badge layui-bg-gray"
  282. v-show="item.status==-1">无效</span>
  283. </p>
  284. </td>
  285. <td>{{item.balance}}</td>
  286. <td>{{item._type}}</td>
  287. <td>{{item.add_time}}</td>
  288. <td>{{item.mark}}</td>
  289. </tr>
  290. <tr v-show="consumeChangList.length<=0" style="text-align: center">
  291. <td colspan="5">暂无数据</td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. <div ref="consumechang_page" v-show="count.consumeChang_count > limit"
  296. style="text-align: right;"></div>
  297. </div>
  298. <!--推广人-->
  299. <div class="layui-tab-item">
  300. <table class="layui-table" v-cloak="">
  301. <thead>
  302. <tr>
  303. <th>昵称</th>
  304. <th></th>
  305. <th>积分</th>
  306. <th>加入时间</th>
  307. </tr>
  308. </thead>
  309. <tbody>
  310. <tr v-for="item in SpreadList">
  311. <td>
  312. {{item.nickname}}
  313. <p v-show="item.is_vip">
  314. <span class="layui-badge layui-bg-orange" v-text="item.vip_name"></span>
  315. </p>
  316. </td>
  317. <td>{{item.now_money}}</td>
  318. <td>{{item.integral}}</td>
  319. <td>{{item.add_time}}</td>
  320. </tr>
  321. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  322. <td colspan="4">暂无数据</td>
  323. </tr>
  324. </tbody>
  325. </table>
  326. <div ref="spread_page" v-show="count.spread_count > limit"
  327. style="text-align: right;"></div>
  328. </div>
  329. <!--end-->
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  338. <script>
  339. var count = <?=json_encode($count)?>,
  340. $uid = <?=$uid?>;
  341. require(['vue'], function (Vue) {
  342. new Vue({
  343. el: "#content",
  344. data: {
  345. limit: 10,
  346. uid: $uid,
  347. orderList: [],
  348. integralList: [],
  349. SignList: [],
  350. CouponsList: [],
  351. balanceChangList: [],
  352. consumeChangList: [],
  353. SpreadList: [],
  354. count: count,
  355. page: {
  356. order_page: 1,
  357. integral_page: 1,
  358. sign_page: 1,
  359. copons_page: 1,
  360. balancechang_page: 1,
  361. consumechang_page: 1,
  362. spread_page: 1,
  363. },
  364. },
  365. watch: {
  366. 'page.order_page': function () {
  367. this.getOneorderList();
  368. },
  369. 'page.integral_page': function () {
  370. this.getOneIntegralList();
  371. },
  372. 'page.sign_page': function () {
  373. this.getOneSignList();
  374. },
  375. 'page.copons_page': function () {
  376. this.getOneCouponsList();
  377. },
  378. 'page.balancechang_page': function () {
  379. this.getOneBalanceChangList();
  380. },
  381. 'page.consumechang_page': function () {
  382. this.getOneConsumeChangList();
  383. },
  384. 'page.spread_page': function () {
  385. this.getSpreadList();
  386. }
  387. },
  388. methods: {
  389. getSpreadList: function () {
  390. this.request('getSpreadList', this.page.spread_page, 'SpreadList');
  391. },
  392. getOneorderList: function () {
  393. this.request('getOneorderList', this.page.order_page, 'orderList');
  394. },
  395. getOneIntegralList: function () {
  396. this.request('getOneIntegralList', this.page.integral_page, 'integralList');
  397. },
  398. getOneSignList: function () {
  399. this.request('getOneSignList', this.page.sign_page, 'SignList');
  400. },
  401. getOneCouponsList: function () {
  402. this.request('getOneCouponsList', this.page.copons_page, 'CouponsList');
  403. },
  404. getOneBalanceChangList: function () {
  405. this.request('getOneBalanceChangList', this.page.balancechang_page, 'balanceChangList');
  406. },
  407. getOneConsumeChangList: function () {
  408. this.request('getOneConsumeChangList', this.page.consumechang_page, 'consumeChangList');
  409. },
  410. request: function (action, page, name) {
  411. var that = this;
  412. layList.baseGet(layList.U({
  413. a: action,
  414. p: {page: page, limit: this.limit, uid: this.uid}
  415. }), function (res) {
  416. that.$set(that, name, res.data)
  417. });
  418. }
  419. },
  420. mounted: function () {
  421. this.getOneorderList();
  422. this.getOneIntegralList();
  423. this.getOneSignList();
  424. this.getOneCouponsList();
  425. this.getOneBalanceChangList();
  426. this.getOneConsumeChangList();
  427. this.getSpreadList();
  428. var that = this;
  429. layList.laypage.render({
  430. elem: that.$refs.page_order
  431. , count: that.count.order_count
  432. , limit: that.limit
  433. , theme: '#1E9FFF',
  434. jump: function (obj) {
  435. that.page.order_page = obj.curr;
  436. }
  437. });
  438. layList.laypage.render({
  439. elem: that.$refs.integral_page
  440. , count: that.count.integral_count
  441. , limit: that.limit
  442. , theme: '#1E9FFF',
  443. jump: function (obj) {
  444. that.page.integral_page = obj.curr;
  445. }
  446. });
  447. layList.laypage.render({
  448. elem: that.$refs.Sign_page
  449. , count: that.count.sign_count
  450. , limit: that.limit
  451. , theme: '#1E9FFF',
  452. jump: function (obj) {
  453. that.page.sign_page = obj.curr;
  454. }
  455. });
  456. layList.laypage.render({
  457. elem: that.$refs.copons_page
  458. , count: that.count.coupon_count
  459. , limit: that.limit
  460. , theme: '#1E9FFF',
  461. jump: function (obj) {
  462. that.page.copons_page = obj.curr;
  463. }
  464. });
  465. layList.laypage.render({
  466. elem: that.$refs.balancechang_page
  467. , count: that.count.balanceChang_count
  468. , limit: that.limit
  469. , theme: '#1E9FFF',
  470. jump: function (obj) {
  471. that.page.balancechang_page = obj.curr;
  472. }
  473. });
  474. layList.laypage.render({
  475. elem: that.$refs.consumechang_page
  476. , count: that.count.consumeChang_count
  477. , limit: that.limit
  478. , theme: '#1E9FFF',
  479. jump: function (obj) {
  480. that.page.consumechang_page = obj.curr;
  481. }
  482. });
  483. layList.laypage.render({
  484. elem: that.$refs.spread_page
  485. , count: that.count.spread_count
  486. , limit: that.limit
  487. , theme: '#1E9FFF',
  488. jump: function (obj) {
  489. that.page.spread_page = obj.curr;
  490. }
  491. });
  492. }
  493. });
  494. });
  495. </script>
  496. {/block}