see.php 28 KB

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