userCenterMyActivity.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <!--
  2. <template>
  3. <div style="width: 100%;background: #fff;min-height: 700px;color: #666;" class="userCenterMyActivity">
  4. <div style="height: 60px;line-height: 60px;padding-top: 30px;margin-left: 30px;margin-right: 30px; border-bottom: 1px solid rgba(228, 228, 228, 1);">
  5. {{$t('common.MyActivities')}}
  6. </div>
  7. <div style="margin-left: 30px;margin-right: 30px;margin-top: 10px; " class="myActivity">
  8. <div>
  9. <ul>
  10. <li class="myActivityLi" v-for="(item,index) in tableData ">
  11. <div><img src="@/assets/img/userCenter/messageImg.gif" alt=""
  12. style="width: 100%;height: 150px;"></div>
  13. <div>
  14. <div class="title">{{item.date}}</div>
  15. <div class="myActivityLi_data">
  16. <span class="margin_left">{{item.address}}</span>
  17. <span style="margin-left: 100px;">{{item.startTime}}-{{item.endTime}}</span>
  18. </div>
  19. <div class="myActivityLi_data margin_left">
  20. {{item.address5}}
  21. </div>
  22. <div class="myActivityLi_data margin_left" style="margin-top: 11px;">
  23. <el-tag type="success">{{$t('common.domestic')}}</el-tag>
  24. <el-tag type="info">{{$t('common.ElectricEnergy')}}</el-tag>
  25. </div>
  26. </div>
  27. </li>
  28. </ul>
  29. </div>
  30. </div>
  31. <ul style="margin:30px;width: 90%;">
  32. <img v-if="this.$i18n.locale.toUpperCase()=='ZH'" src="@/assets/img/noData.png" alt=""
  33. style="width: 100%;height: 100%;">
  34. <img v-if="this.$i18n.locale.toUpperCase()=='EN'" src="@/assets/img/noDataEn.png" alt=""
  35. style="width: 100%;height: 100%;">
  36. </ul>
  37. <div style="margin-left: 250px;">
  38. &lt;!&ndash; <el-pagination
  39. style="margin-top: 40px;height: 80px;"
  40. background
  41. layout="prev, pager, next"
  42. :total="0" @size-change="handleSizeChange"
  43. @current-change="handleCurrentChange">
  44. </el-pagination> &ndash;&gt;
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. export default {
  50. name: 'userCenterMyActivity',
  51. data() {
  52. return {
  53. formInline: {
  54. user: '',
  55. region: ''
  56. },
  57. tableData: [
  58. {
  59. date: '2020全球能源互联网大会',
  60. address: '中国 北京市',
  61. startTime: '2020-05-25',
  62. endTime: '2020-05-31',
  63. address5: '各界专家从人类命运共同体的高度出发,围绕全理...',
  64. }, {
  65. date: '2020全球能源互联网大会',
  66. address: '中国 北京市',
  67. startTime: '2020-05-25',
  68. endTime: '2020-05-31',
  69. address5: '各界专家从人类命运共同体的高度出发,围绕全理...',
  70. }, {
  71. date: '2020全球能源互联网大会',
  72. address: '中国 北京市',
  73. startTime: '2020-05-25',
  74. endTime: '2020-05-31',
  75. address5: '各界专家从人类命运共同体的高度出发,围绕全理...',
  76. }, {
  77. date: '2020全球能源互联网大会',
  78. address: '中国 北京市',
  79. startTime: '2020-05-25',
  80. endTime: '2020-05-31',
  81. address5: '各界专家从人类命运共同体的高度出发,围绕全理...',
  82. }, {
  83. date: '2020全球能源互联网大会',
  84. address: '中国 北京市',
  85. startTime: '2020-05-25',
  86. endTime: '2020-05-31',
  87. address5: '各界专家从人类命运共同体的高度出发,围绕全理...',
  88. }, {
  89. date: '2020全球能源互联网大会',
  90. address: '中国 北京市',
  91. startTime: '2020-05-25',
  92. endTime: '2020-05-31',
  93. address5: '各界专家从人类命运共同体的高度出发,围绕全理...',
  94. }
  95. ]
  96. }
  97. },
  98. methods: {
  99. // 发布
  100. release(index, rows) {
  101. console.log(index, rows)
  102. },
  103. // 编辑
  104. change(index, rows) {
  105. console.log(index, rows)
  106. },
  107. // 删除
  108. deleteRow(index, rows) {
  109. console.log(index, rows)
  110. },
  111. // 撤回
  112. withdraw(index, rows) {
  113. console.log(index, rows)
  114. },
  115. handleSizeChange(val) {
  116. console.log(`每页 ${val} 条`);
  117. },
  118. handleCurrentChange(val) {
  119. console.log(`当前页: ${val}`);
  120. }
  121. }
  122. }
  123. </script>
  124. <style scoped>
  125. .el-input {
  126. width: 200px;
  127. }
  128. .el-form-item__content, .el-select {
  129. width: 200px !important;
  130. }
  131. .el-table thead {
  132. background: #eee;
  133. }
  134. .userCenterMyActivity >>> .el-pagination .el-pager li,
  135. .userCenterMyActivity >>> .el-pagination .btn-next,
  136. .userCenterMyActivity >>> .el-pagination .btn-prev {
  137. width: 35px;
  138. height: 35px;
  139. line-height: 35px;
  140. }
  141. .userCenterMyActivity >>> .el-pagination.is-background .el-pager li:not(.disabled).active {
  142. background: #0050d8;
  143. }
  144. .margin_left {
  145. margin-left: 5px;
  146. }
  147. .myActivityLi {
  148. width: 300px;
  149. float: left;
  150. height: 253px;
  151. margin-bottom: 20px;
  152. border: 1px solid rgba(228, 228, 228, 1);
  153. box-shadow: rgba(228, 228, 228, 1);
  154. }
  155. .myActivityLi .title {
  156. color: #666;
  157. font-weight: 700;
  158. margin-left: 5px;
  159. }
  160. .myActivityLi_data {
  161. color: #666;
  162. font-size: 12px;
  163. margin-top: 5px;
  164. }
  165. .myActivity ul {
  166. text-align: top;
  167. height: 100%;
  168. display: flex;
  169. display: -webkit-flex; /* Safari */
  170. justify-content: space-between;
  171. flex-wrap: wrap;
  172. }
  173. .el-tag {
  174. height: 22px;
  175. line-height: 22px;
  176. margin-right: 5px;
  177. }
  178. </style>-->
  179. <template>
  180. <div class="application-history">
  181. <div style="height:50px;line-height:50px">
  182. <span :class="informationsClass==1?'information2':'information1'" @click="getInformation(1)" class="cursor">{{$i18n.locale=='en'? 'Activities Involved': '我参与的活动'}}</span>
  183. <span :class="informationsClass==2?'information2':'information1'" @click="getInformation(2)" class="cursor">{{$i18n.locale=='en'? 'Published Activities': '我发布的活动'}}</span>
  184. </div>
  185. <userCenterMyActivityParticipation v-if="informationsClass==1"></userCenterMyActivityParticipation>
  186. <userCenterMyActivityIssue v-if="informationsClass==2"></userCenterMyActivityIssue>
  187. </div>
  188. </template>
  189. <script>
  190. import Base from "@/views/base/Base";
  191. import userCenterMyActivityParticipation from './userCenterMyActivityParticipation' //我参与的活动
  192. import userCenterMyActivityIssue from './userCenterMyActivityIssue' //我发布的活动
  193. export default {
  194. name: "userCenterMyActivity",
  195. extends: Base,
  196. components:{ userCenterMyActivityParticipation, userCenterMyActivityIssue },
  197. data() {
  198. return {
  199. informationsClass:'1',
  200. lang: localStorage.getItem('local')
  201. }
  202. },
  203. created() {
  204. this.$bus.on('setLang', lang=>{
  205. this.lang = lang;
  206. })
  207. },
  208. methods: {
  209. getInformation(num){
  210. this.informationsClass=num
  211. },
  212. }
  213. }
  214. </script>
  215. <style scoped>
  216. .application-history{
  217. background: #fff;
  218. min-height: 700px;
  219. }
  220. .information1 {
  221. display: inline-block;
  222. min-width: 123px;
  223. padding: 0 20px;
  224. height: 100%;
  225. border:1px solid rgba(228, 228, 228, 1);
  226. text-align: center;
  227. background: #f9f9f9;
  228. color: #999;
  229. }
  230. .information2 {
  231. display: inline-block;
  232. min-width: 123px;
  233. padding: 0 20px;
  234. height: 100%;
  235. border-top:3px solid #2c5589;
  236. text-align: center;
  237. color: #2c5589;
  238. }
  239. .information1:hover {
  240. color: #FF0036;
  241. }
  242. </style>