see.php 21 KB

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