see.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  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. </tr>
  232. </thead>
  233. <tbody>
  234. <tr v-for="item in balanceChangList">
  235. <td>{{item.number}}
  236. <p v-show="item.pm==1">
  237. <span class="layui-badge layui-bg-green"
  238. v-show="item.status==1">有效</span>
  239. <span class="layui-badge layui-bg-orange"
  240. v-show="item.status==0">带确定</span>
  241. <span class="layui-badge layui-bg-gray"
  242. v-show="item.status==-1">无效</span>
  243. </p>
  244. </td>
  245. <td>{{item.balance}}</td>
  246. <td>{{item._type}}</td>
  247. <td>{{item.add_time}}</td>
  248. <td>{{item.mark}}</td>
  249. </tr>
  250. <tr v-show="balanceChangList.length<=0" style="text-align: center">
  251. <td colspan="5">暂无数据</td>
  252. </tr>
  253. </tbody>
  254. </table>
  255. <div ref="balancechang_page" v-show="count.balanceChang_count > limit"
  256. style="text-align: right;"></div>
  257. </div>
  258. <!--推广人-->
  259. <div class="layui-tab-item">
  260. <table class="layui-table" v-cloak="">
  261. <thead>
  262. <tr>
  263. <th>昵称</th>
  264. <th>余额</th>
  265. <th>积分</th>
  266. <th>加入时间</th>
  267. </tr>
  268. </thead>
  269. <tbody>
  270. <tr v-for="item in SpreadList">
  271. <td>
  272. {{item.nickname}}
  273. <p v-show="item.is_vip">
  274. <span class="layui-badge layui-bg-orange" v-text="item.vip_name"></span>
  275. </p>
  276. </td>
  277. <td>{{item.now_money}}</td>
  278. <td>{{item.integral}}</td>
  279. <td>{{item.add_time}}</td>
  280. </tr>
  281. <tr v-show="SpreadList.length<=0" style="text-align: center">
  282. <td colspan="4">暂无数据</td>
  283. </tr>
  284. </tbody>
  285. </table>
  286. <div ref="spread_page" v-show="count.spread_count > limit"
  287. style="text-align: right;"></div>
  288. </div>
  289. <!--end-->
  290. <div class="layui-tab-item">
  291. <table class="layui-table" v-cloak="">
  292. <thead>
  293. <tr>
  294. <th>代理门店</th>
  295. <th>奖励比值</th>
  296. <th>操作</th>
  297. </tr>
  298. </thead>
  299. <tbody>
  300. <tr v-for="item in SpreadStoreList">
  301. <td>{{item.store}}</td>
  302. <td>{{item.ratio}}%</td>
  303. <td>
  304. <button class="btn btn-warning" @click="deleteStore(item.id)">删除</button>
  305. </td>
  306. </tr>
  307. <tr v-show="SpreadStoreList.length<=0" style="text-align: center">
  308. <td colspan="4">暂无数据</td>
  309. </tr>
  310. </tbody>
  311. </table>
  312. <div ref="spread_store_page" v-show="count.spread_store_count > limit"
  313. style="text-align: right;"></div>
  314. </div>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  323. <script>
  324. var count = <?=json_encode($count)?>,
  325. $uid = <?=$uid?>;
  326. require(['vue'], function (Vue) {
  327. new Vue({
  328. el: "#content",
  329. data: {
  330. limit: 10,
  331. uid: $uid,
  332. orderList: [],
  333. integralList: [],
  334. SignList: [],
  335. CouponsList: [],
  336. balanceChangList: [],
  337. SpreadList: [],
  338. SpreadStoreList: [],
  339. count: count,
  340. page: {
  341. order_page: 1,
  342. integral_page: 1,
  343. sign_page: 1,
  344. copons_page: 1,
  345. balancechang_page: 1,
  346. spread_page: 1,
  347. spread_store_page: 1,
  348. },
  349. },
  350. watch: {
  351. 'page.order_page': function () {
  352. this.getOneorderList();
  353. },
  354. 'page.integral_page': function () {
  355. this.getOneIntegralList();
  356. },
  357. 'page.sign_page': function () {
  358. this.getOneSignList();
  359. },
  360. 'page.copons_page': function () {
  361. this.getOneCouponsList();
  362. },
  363. 'page.balancechang_page': function () {
  364. this.getOneBalanceChangList();
  365. },
  366. 'page.spread_page': function () {
  367. this.getSpreadList();
  368. },
  369. 'page.spread_store_page': function () {
  370. this.getSpreadStoreList();
  371. }
  372. },
  373. methods: {
  374. getSpreadList: function () {
  375. this.request('getSpreadList', this.page.spread_page, 'SpreadList');
  376. },
  377. getSpreadStoreList: function () {
  378. this.request('getSpreadStoreList', this.page.spread_store_page, 'SpreadStoreList');
  379. },
  380. getOneorderList: function () {
  381. this.request('getOneorderList', this.page.order_page, 'orderList');
  382. },
  383. getOneIntegralList: function () {
  384. this.request('getOneIntegralList', this.page.integral_page, 'integralList');
  385. },
  386. getOneSignList: function () {
  387. this.request('getOneSignList', this.page.sign_page, 'SignList');
  388. },
  389. getOneCouponsList: function () {
  390. this.request('getOneCouponsList', this.page.copons_page, 'CouponsList');
  391. },
  392. getOneBalanceChangList: function () {
  393. this.request('getOneBalanceChangList', this.page.balancechang_page, 'balanceChangList');
  394. },
  395. request: function (action, page, name) {
  396. var that = this;
  397. layList.baseGet(layList.U({
  398. a: action,
  399. p: {page: page, limit: this.limit, uid: this.uid}
  400. }), function (res) {
  401. that.$set(that, name, res.data)
  402. });
  403. },
  404. deleteStore: function (id) {
  405. $eb.$swal('delete', function () {
  406. $eb.axios.get(layList.U({a: 'del_store', q: {id: id}})).then(function (res) {
  407. console.log(res)
  408. if (res.data.code == 200) {
  409. console.log(res.data)
  410. layList.alert(res.data.msg);
  411. layList.reload();
  412. } else {
  413. }
  414. }).catch(function (err) {
  415. });
  416. }, {
  417. title: '您确定要清除该代理门店吗?',
  418. text: '清除后无法恢复请谨慎操作',
  419. confirm: '是的我要清除'
  420. })
  421. }
  422. },
  423. mounted: function () {
  424. this.getOneorderList();
  425. this.getOneIntegralList();
  426. this.getOneSignList();
  427. this.getOneCouponsList();
  428. this.getOneBalanceChangList();
  429. this.getSpreadList();
  430. this.getSpreadStoreList();
  431. var that = this;
  432. layList.laypage.render({
  433. elem: that.$refs.page_order
  434. , count: that.count.order_count
  435. , limit: that.limit
  436. , theme: '#1E9FFF',
  437. jump: function (obj) {
  438. that.page.order_page = obj.curr;
  439. }
  440. });
  441. layList.laypage.render({
  442. elem: that.$refs.integral_page
  443. , count: that.count.integral_count
  444. , limit: that.limit
  445. , theme: '#1E9FFF',
  446. jump: function (obj) {
  447. that.page.integral_page = obj.curr;
  448. }
  449. });
  450. layList.laypage.render({
  451. elem: that.$refs.Sign_page
  452. , count: that.count.sign_count
  453. , limit: that.limit
  454. , theme: '#1E9FFF',
  455. jump: function (obj) {
  456. that.page.sign_page = obj.curr;
  457. }
  458. });
  459. layList.laypage.render({
  460. elem: that.$refs.copons_page
  461. , count: that.count.coupon_count
  462. , limit: that.limit
  463. , theme: '#1E9FFF',
  464. jump: function (obj) {
  465. that.page.copons_page = obj.curr;
  466. }
  467. });
  468. layList.laypage.render({
  469. elem: that.$refs.balancechang_page
  470. , count: that.count.balanceChang_count
  471. , limit: that.limit
  472. , theme: '#1E9FFF',
  473. jump: function (obj) {
  474. that.page.balancechang_page = obj.curr;
  475. }
  476. });
  477. layList.laypage.render({
  478. elem: that.$refs.spread_page
  479. , count: that.count.spread_count
  480. , limit: that.limit
  481. , theme: '#1E9FFF',
  482. jump: function (obj) {
  483. that.page.spread_page = obj.curr;
  484. }
  485. });
  486. layList.laypage.render({
  487. elem: that.$refs.spread_store_page
  488. , count: that.count.spread_store_count
  489. , limit: that.limit
  490. , theme: '#1E9FFF',
  491. jump: function (obj) {
  492. that.page.spread_store_page = obj.curr;
  493. }
  494. });
  495. }
  496. });
  497. });
  498. </script>
  499. {/block}