see.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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-tab layui-tab-card">
  63. <ul class="layui-tab-title">
  64. <li class="layui-this">消费能力</li>
  65. <li>积分明细</li>
  66. <li>签到记录</li>
  67. <li>持有优惠劵</li>
  68. <li>余额变动记录</li>
  69. <li>推广下线明细</li>
  70. </ul>
  71. <div class="layui-tab-content" id="content">
  72. {volist name='headerList' id='vo'}
  73. <div class="layui-col-xs3" style="margin-bottom: 10px ">
  74. <div class="layui-card">
  75. <div class="layui-card-header">
  76. {$vo.title}
  77. <span class="layui-badge layuiadmin-badge {if isset($vo.class) && $vo.class}{$vo.class}{else}layui-bg-blue{/if}">{$vo.key}</span>
  78. </div>
  79. <div class="layui-card-body">
  80. <p class="layuiadmin-big-font">{$vo.value}</p>
  81. </div>
  82. </div>
  83. </div>
  84. {/volist}
  85. <div class="layui-tab-item layui-show">
  86. <table class="layui-table" lay-skin="line" v-cloak="">
  87. <thead>
  88. <tr>
  89. <th>订单编号</th>
  90. <th>收货人</th>
  91. <th>商品数量</th>
  92. <th>商品总价</th>
  93. <th>实付金额</th>
  94. <th>交易完成时间</th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. <tr v-for="item in orderList">
  99. <td class="text-center">{{item.order_id}}
  100. <p>
  101. <span class="layui-badge" :class="{'layui-bg-green':item.paid==1}" v-text="item.paid==1 ? '已支付': '未支付' ">正在加载</span>
  102. <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>
  103. <span class="layui-badge layui-bg-black" v-show="item.pink_id!=0">拼团</span>
  104. <span class="layui-badge layui-bg-blue" v-show="item.seckill_id!=0">秒杀</span>
  105. <span class="layui-badge layui-bg-gray" v-show="item.bargain_id!=0">砍价</span>
  106. </p>
  107. </td>
  108. <td>{{item.real_name}}</td>
  109. <td>{{item.total_num}}</td>
  110. <td>{{item.total_price}}</td>
  111. <td>{{item.pay_price}}</td>
  112. <td>{{item.pay_time}}</td>
  113. </tr>
  114. <tr v-show="orderList.length<=0" style="text-align: center">
  115. <td colspan="6">暂无数据</td>
  116. </tr>
  117. </tbody>
  118. </table>
  119. <div ref="page_order" v-show="count.order_count > limit" style="text-align: right;"></div>
  120. </div>
  121. <div class="layui-tab-item">
  122. <table class="layui-table" lay-skin="line" v-cloak="">
  123. <thead>
  124. <tr>
  125. <th>来源/用途</th>
  126. <th>积分变化</th>
  127. <th>变化后积分</th>
  128. <th>日期</th>
  129. <th>备注</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr v-for="item in integralList">
  134. <td>{{item.title}}</td>
  135. <td>{{item.number}}</td>
  136. <td>{{item.balance}}</td>
  137. <td>{{item.add_time}}</td>
  138. <td>{{item.mark}}</td>
  139. </tr>
  140. <tr v-show="integralList.length<=0" style="text-align: center">
  141. <td colspan="5">暂无数据</td>
  142. </tr>
  143. </tbody>
  144. </table>
  145. <div ref="integral_page" v-show="count.integral_count > limit" style="text-align: right;"></div>
  146. </div>
  147. <div class="layui-tab-item">
  148. <table class="layui-table" lay-skin="line" v-cloak="">
  149. <thead>
  150. <tr>
  151. <th>动作</th>
  152. <th>获得积分</th>
  153. <th>签到时间</th>
  154. <th>备注</th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. <tr v-for="item in SignList">
  159. <td>{{item.title}}</td>
  160. <td>{{item.number}}</td>
  161. <td>{{item.add_time}}</td>
  162. <td>{{item.mark}}</td>
  163. </tr>
  164. <tr v-show="SignList.length<=0" style="text-align: center">
  165. <td colspan="4">暂无数据</td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. <div ref="Sign_page" v-show="count.sign_count > limit" style="text-align: right;"></div>
  170. </div>
  171. <div class="layui-tab-item">
  172. <table class="layui-table" v-cloak="">
  173. <thead>
  174. <tr>
  175. <th>优惠券名称</th>
  176. <th>面值</th>
  177. <th>有效期</th>
  178. <th>所需积分</th>
  179. <th>兑换时间</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <tr v-for="item in CouponsList">
  184. <td>{{item.coupon_title}}
  185. <p>
  186. <span class="layui-badge" :class="{'layui-bg-green':item._type>=1}" v-text="item._type>=1 ? '可使用': '已过期' ">正在加载</span>
  187. </p>
  188. </td>
  189. <td>{{item.coupon_price}}</td>
  190. <td>{{item._add_time}}-{{item._end_time}}</td>
  191. <td>{{item.integral}}</td>
  192. <td>{{item._add_time}}</td>
  193. </tr>
  194. <tr v-show="CouponsList.length<=0" style="text-align: center">
  195. <td colspan="5">暂无数据</td>
  196. </tr>
  197. </tbody>
  198. </table>
  199. <div ref="copons_page" v-show="count.coupon_count > limit" style="text-align: right;"></div>
  200. </div>
  201. <div class="layui-tab-item">
  202. <table class="layui-table" v-cloak="">
  203. <thead>
  204. <tr>
  205. <th>变动金额</th>
  206. <th>变动后</th>
  207. <th>类型</th>
  208. <th>创建时间</th>
  209. <th>备注</th>
  210. </tr>
  211. </thead>
  212. <tbody>
  213. <tr v-for="item in balanceChangList">
  214. <td>{{item.number}}
  215. <p v-show="item.pm==1">
  216. <span class="layui-badge layui-bg-green" v-show="item.status==1">有效</span>
  217. <span class="layui-badge layui-bg-orange" v-show="item.status==0">带确定</span>
  218. <span class="layui-badge layui-bg-gray" v-show="item.status==-1">无效</span>
  219. </p>
  220. </td>
  221. <td>{{item.balance}}</td>
  222. <td>{{item._type}}</td>
  223. <td>{{item.add_time}}</td>
  224. <td>{{item.mark}}</td>
  225. </tr>
  226. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  227. <td colspan="5">暂无数据</td>
  228. </tr>
  229. </tbody>
  230. </table>
  231. <div ref="balancechang_page" v-show="count.balanceChang_count > limit" style="text-align: right;"></div>
  232. </div>
  233. <!--推广人-->
  234. <div class="layui-tab-item">
  235. <table class="layui-table" v-cloak="">
  236. <thead>
  237. <tr>
  238. <th>昵称</th>
  239. <th>余额</th>
  240. <th>积分</th>
  241. <th>加入时间</th>
  242. </tr>
  243. </thead>
  244. <tbody>
  245. <tr v-for="item in SpreadList">
  246. <td>
  247. {{item.nickname}}
  248. <p v-show="item.is_vip">
  249. <span class="layui-badge layui-bg-orange" v-text="item.vip_name"></span>
  250. </p>
  251. </td>
  252. <td>{{item.now_money}}</td>
  253. <td>{{item.integral}}</td>
  254. <td>{{item.add_time}}</td>
  255. </tr>
  256. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  257. <td colspan="4">暂无数据</td>
  258. </tr>
  259. </tbody>
  260. </table>
  261. <div ref="spread_page" v-show="count.spread_page > limit" style="text-align: right;"></div>
  262. </div>
  263. <!--end-->
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  272. <script>
  273. var count=<?=json_encode($count)?>,
  274. $uid=<?=$uid?>;
  275. require(['vue'],function(Vue) {
  276. new Vue({
  277. el: "#content",
  278. data: {
  279. limit:10,
  280. uid:$uid,
  281. orderList:[],
  282. integralList:[],
  283. SignList:[],
  284. CouponsList:[],
  285. balanceChangList:[],
  286. SpreadList:[],
  287. count:count,
  288. page:{
  289. order_page:1,
  290. integral_page:1,
  291. sign_page:1,
  292. copons_page:1,
  293. balancechang_page:1,
  294. spread_page:1,
  295. },
  296. },
  297. watch:{
  298. 'page.order_page':function () {
  299. this.getOneorderList();
  300. },
  301. 'page.integral_page':function () {
  302. this.getOneIntegralList();
  303. },
  304. 'page.sign_page':function () {
  305. this.getOneSignList();
  306. },
  307. 'page.copons_page':function () {
  308. this.getOneCouponsList();
  309. },
  310. 'page.balancechang_page':function () {
  311. this.getOneBalanceChangList();
  312. },
  313. 'page.spread_page':function () {
  314. this.getSpreadList();
  315. }
  316. },
  317. methods:{
  318. getSpreadList:function(){
  319. this.request('getSpreadList',this.page.spread_page,'SpreadList');
  320. },
  321. getOneorderList:function () {
  322. this.request('getOneorderList',this.page.order_page,'orderList');
  323. },
  324. getOneIntegralList:function () {
  325. this.request('getOneIntegralList',this.page.integral_page,'integralList');
  326. },
  327. getOneSignList:function () {
  328. this.request('getOneSignList',this.page.sign_page,'SignList');
  329. },
  330. getOneCouponsList:function () {
  331. this.request('getOneCouponsList',this.page.copons_page,'CouponsList');
  332. },
  333. getOneBalanceChangList:function () {
  334. this.request('getOneBalanceChangList',this.page.balancechang_page,'balanceChangList');
  335. },
  336. request:function (action,page,name) {
  337. var that=this;
  338. layList.baseGet(layList.U({a:action,p:{page:page,limit:this.limit,uid:this.uid}}),function (res) {
  339. that.$set(that,name,res.data)
  340. });
  341. }
  342. },
  343. mounted:function () {
  344. this.getOneorderList();
  345. this.getOneIntegralList();
  346. this.getOneSignList();
  347. this.getOneCouponsList();
  348. this.getOneBalanceChangList();
  349. this.getSpreadList();
  350. var that=this;
  351. layList.laypage.render({
  352. elem: that.$refs.page_order
  353. ,count:that.count.order_count
  354. ,limit:that.limit
  355. ,theme: '#1E9FFF',
  356. jump:function(obj){
  357. that.page.order_page=obj.curr;
  358. }
  359. });
  360. layList.laypage.render({
  361. elem: that.$refs.integral_page
  362. ,count:that.count.integral_count
  363. ,limit:that.limit
  364. ,theme: '#1E9FFF',
  365. jump:function(obj){
  366. that.page.integral_page=obj.curr;
  367. }
  368. });
  369. layList.laypage.render({
  370. elem: that.$refs.Sign_page
  371. ,count:that.count.sign_count
  372. ,limit:that.limit
  373. ,theme: '#1E9FFF',
  374. jump:function(obj){
  375. that.page.sign_page=obj.curr;
  376. }
  377. });
  378. layList.laypage.render({
  379. elem: that.$refs.copons_page
  380. ,count:that.count.coupon_count
  381. ,limit:that.limit
  382. ,theme: '#1E9FFF',
  383. jump:function(obj){
  384. that.page.copons_page=obj.curr;
  385. }
  386. });
  387. layList.laypage.render({
  388. elem: that.$refs.balancechang_page
  389. ,count:that.count.balanceChang_count
  390. ,limit:that.limit
  391. ,theme: '#1E9FFF',
  392. jump:function(obj){
  393. that.page.balancechang_page=obj.curr;
  394. }
  395. });
  396. layList.laypage.render({
  397. elem: that.$refs.spread_page
  398. ,count:that.count.spread_count
  399. ,limit:that.limit
  400. ,theme: '#1E9FFF',
  401. jump:function(obj){
  402. that.page.spread_page=obj.curr;
  403. }
  404. });
  405. }
  406. });
  407. });
  408. </script>
  409. {/block}