see.php 18 KB

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