userCenterCollectionMeeting.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <div style="width: 100%;background: #fff;min-height: 700px;color: #666;" class="userCenterMyActivity">
  3. <div style="margin-left: 30px;margin-right: 30px;margin-top: 10px; " class="myActivity">
  4. <div>
  5. <ul>
  6. <li class="myActivityLi" v-for="(item,index) in tableData ">
  7. <div style="width: 100%;position: relative;">
  8. <span style="color: #fff;position: absolute;right: 1px;top: 0;width: 95px;height: 28px;line-height: 28px;background: #666; text-align: center; font-size: 14px;font-weight: 400;">已结束</span>
  9. <div style="width: 100%;height: 200px;">
  10. <img src="@/assets/img/userCenter/u46347.png" alt="" style="width: 100%;height: 100%;">
  11. </div>
  12. <div style="color:#666;width: 100%;text-align: left;font-weight: 600;" class="margin_top">
  13. {{item.address5}}
  14. <span style="float: right;font-size: 12px;color: #999;font-weight: 400;">取消收藏</span>
  15. </div>
  16. <div style="color:#999;width: 100%;text-align: left;font-size: 12px;" class="margin_top">
  17. <span><i class="el-icon-location-outline"></i>{{item.address}}</span>
  18. <span style="margin-left: 50px;"><i class="el-icon-timer"></i>{{item.startTime}}</span>
  19. </div>
  20. </div>
  21. </li>
  22. </ul>
  23. </div>
  24. </div>
  25. <div style="margin-left: 250px;">
  26. <el-pagination
  27. style="margin-top: 40px;height: 80px;"
  28. background
  29. layout="prev, pager, next"
  30. :total="1000" @size-change="handleSizeChange"
  31. @current-change="handleCurrentChange">
  32. </el-pagination>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. name: 'userCenterCollectionMeeting',
  39. data () {
  40. return {
  41. formInline: {
  42. user: '',
  43. region: ''
  44. },
  45. tableData: [{
  46. date: '日本大型海上风电项目',
  47. address: '中国 北京市',
  48. startTime: '2020-05-25',
  49. endTime: '2020-05-31',
  50. address5: '中国长江三峡集团有限公司',
  51. },{
  52. date: '2020全球能源互联网大会',
  53. address: '中国 北京市',
  54. startTime: '2020-05-25',
  55. endTime: '2020-05-31',
  56. address5: '中国长江三峡集团有限公司',
  57. },{
  58. date: '2020全球能源互联网大会',
  59. address: '中国 北京市',
  60. startTime: '2020-05-25',
  61. endTime: '2020-05-31',
  62. address5: '中国长江三峡集团有限公司',
  63. },{
  64. date: '2020全球能源互联网大会',
  65. address: '中国 北京市',
  66. startTime: '2020-05-25',
  67. endTime: '2020-05-31',
  68. address5: '中国长江三峡集团有限公司',
  69. },{
  70. date: '2020全球能源互联网大会',
  71. address: '中国 北京市',
  72. startTime: '2020-05-25',
  73. endTime: '2020-05-31',
  74. address5: '中国长江三峡集团有限公司',
  75. },{
  76. date: '2020全球能源互联网大会',
  77. address: '中国 北京市',
  78. startTime: '2020-05-25',
  79. endTime: '2020-05-31',
  80. address5: '中国长江三峡集团有限公司',
  81. }]
  82. }
  83. },
  84. methods:{
  85. // 发布
  86. release(index, rows) {
  87. console.log(index, rows)
  88. },
  89. // 编辑
  90. change(index, rows) {
  91. console.log(index, rows)
  92. },
  93. // 删除
  94. deleteRow(index, rows) {
  95. console.log(index, rows)
  96. },
  97. // 撤回
  98. withdraw(index,rows) {
  99. console.log(index, rows)
  100. },
  101. handleSizeChange(val) {
  102. console.log(`每页 ${val} 条`);
  103. },
  104. handleCurrentChange(val) {
  105. console.log(`当前页: ${val}`);
  106. }
  107. }
  108. }
  109. </script>
  110. <style scoped>
  111. .el-input {
  112. width: 200px ;
  113. }
  114. .el-form-item__content,.el-select {
  115. width: 200px !important;
  116. }
  117. .el-table thead {
  118. background: #eee;
  119. }
  120. .userCenterMyActivity >>> .el-pagination .el-pager li,
  121. .userCenterMyActivity >>> .el-pagination .btn-next,
  122. .userCenterMyActivity >>> .el-pagination .btn-prev{
  123. width: 35px;
  124. height: 35px;
  125. line-height: 35px;
  126. }
  127. .userCenterMyActivity >>> .el-pagination.is-background .el-pager li:not(.disabled).active {
  128. background: #0050d8;
  129. }
  130. .margin_left {
  131. margin-left: 5px;
  132. }
  133. .margin_top{
  134. margin-top: 5px;
  135. }
  136. .myActivityLi {
  137. width: 295px;
  138. float: left;
  139. height: 256px;
  140. margin-bottom: 20px;
  141. border: 1px solid rgba(228, 228, 228, 1);
  142. box-shadow: rgba(228, 228, 228, 1);
  143. }
  144. .myActivityLi .title {
  145. color: #ccc;
  146. font-size: 14px;
  147. }
  148. .myActivityLi_data {
  149. color: #666;
  150. font-size: 12px;
  151. margin-top: 5px;
  152. margin-left: 10px;
  153. }
  154. .myActivity ul {
  155. text-align: top;
  156. height: 100%;
  157. display: flex;
  158. display: -webkit-flex; /* Safari */
  159. justify-content:space-between;
  160. flex-wrap:wrap;
  161. }
  162. .el-tag {
  163. height: 22px;
  164. line-height: 22px;
  165. margin-right: 5px;
  166. }
  167. </style>