queue-data.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?php
  2. use common\helpers\ComponentHelper;
  3. ComponentHelper::loadComponentView('com-image');
  4. ?>
  5. <div id="app" class="content" v-cloak>
  6. <div class="detailtitle">
  7. <div class="border"></div>
  8. <div class="title">队列情况</div>
  9. </div>
  10. <div class="table-body">
  11. <el-table v-loading="groupLoading" :data="list" stripe style="width: 100%">
  12. <el-table-column prop="queue_len" label="待开团订单数" width="150" align="center"></el-table-column>
  13. </el-table-column>
  14. <el-table-column prop="activity_id" label="活动id" width="100" align="center">
  15. </el-table-column>
  16. <el-table-column prop="number" label="活动名称" width="150" align="center">
  17. <template slot-scope="scope">
  18. <div>
  19. <div>
  20. <div v-if="scope.row.activity">
  21. {{scope.row.activity.title}}
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. </el-table-column>
  27. <el-table-column prop="goods_id" label="商品id" width="100" align="center">
  28. </el-table-column>
  29. <el-table-column label="商品">
  30. <template slot-scope="scope">
  31. <div flex="box:first">
  32. <div style="padding-right: 10px;" v-if="scope.row.goods">
  33. <com-image mode="aspectFill" :src="scope.row.goods.cover_pic"></com-image>
  34. </div>
  35. <div>
  36. <div v-if="scope.row.goods">
  37. {{scope.row.goods.goods_name}}
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. </el-table-column>
  43. </el-table>
  44. </div>
  45. <!-- 弹窗 -->
  46. <div class="modal">
  47. </div>
  48. </div>
  49. <script>
  50. const app = new Vue({
  51. el: '#app',
  52. data: {
  53. statusMap: [],
  54. // 开奖期数列表
  55. list: [],
  56. searchData: {
  57. goods_id: '',
  58. },
  59. groupModal: false,
  60. groupLoading: false,
  61. attendUserLists: [],
  62. goodsList: [],
  63. },
  64. mounted: function() {
  65. this.getList(getQuery('activity_id'));
  66. },
  67. methods: {
  68. getList(id) {
  69. this.listLoading = true;
  70. request({
  71. params: {
  72. r: 'lucky-group/group-activity/get-data',
  73. activity_id: id,
  74. },
  75. method: 'get',
  76. }).then(e => {
  77. this.listLoading = false;
  78. if (e.data.code == 0) {
  79. this.list = e.data.data.list;
  80. this.pageCount = e.data.data.page_count;
  81. } else {
  82. this.$message.error(e.data.msg)
  83. }
  84. }).catch(e => {
  85. console.log(e);
  86. });
  87. },
  88. }
  89. });
  90. </script>
  91. <style>
  92. .modal {
  93. position: fixed;
  94. top: 200px;
  95. left: 0;
  96. width: 100%;
  97. display: flex;
  98. align-items: center;
  99. justify-content: center;
  100. }
  101. .modaltable .member {
  102. display: flex;
  103. }
  104. .modaltable .member .image {
  105. width: 50px;
  106. height: 50px;
  107. }
  108. .modaltable .member .image img {
  109. border-radius: 50%;
  110. }
  111. .modaltable .member .name {
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. margin-left: 10px;
  116. }
  117. .modalcontent {
  118. display: inline-flex;
  119. width: 50%;
  120. }
  121. page {
  122. background: #fff;
  123. }
  124. .content {
  125. background: #fff;
  126. }
  127. .content .list {
  128. display: flex;
  129. padding: 0 5% 0 0;
  130. flex-wrap: wrap;
  131. }
  132. .content .list .list-item {
  133. background: #F2F2F2;
  134. width: 19%;
  135. font-weight: 700;
  136. font-size: 32px;
  137. padding: 20px 0 0 15px;
  138. margin: 20px 10px 10px 5px;
  139. }
  140. .content .list .list-item .title {}
  141. .content .list .list-item .num {
  142. margin: 20px 0;
  143. }
  144. .detailtitle {
  145. background: #F2F2f2;
  146. padding: 10px 0 10px 10px;
  147. display: flex;
  148. }
  149. .detailtitle .border {
  150. width: 7px;
  151. height: 30px;
  152. background: #1479f0;
  153. }
  154. .detailtitle .title {
  155. display: flex;
  156. justify-content: center;
  157. align-items: center;
  158. padding-left: 10px;
  159. }
  160. </style>