see.php 20 KB

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