context.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <div id="recruitLists">
  3. <el-row>
  4. <el-col :span="24" class="lists">
  5. <el-col :span="24" class="topTitle">
  6. <el-col class="rightTopL"> 我的订购</el-col>
  7. </el-col>
  8. <el-col :span="24" class="list">
  9. <el-col :span="24" class="tit">
  10. <el-col> 我的订购</el-col>
  11. </el-col>
  12. <el-col :span="24" v-for="(item, index) in recruitData" :key="index">
  13. <el-col class="xqborder">
  14. <el-col :span="24" class="fbListTop">
  15. <el-col :span="20"> {{ item.name }} </el-col>
  16. <el-col :span="4">
  17. {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
  18. </el-col>
  19. </el-col>
  20. <el-col :span="24" class="fbListCenter">
  21. <el-col :span="6" class="fimage">
  22. <el-image style="width:100px;height:100px" :src="item.url"></el-image>
  23. </el-col>
  24. <el-col :span="6" class="fbListCenterC">
  25. <p class="textOver">产品:{{ item.name }}</p>
  26. <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
  27. <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
  28. </el-col>
  29. <el-col :span="6" class="fbListCenterTwo">
  30. <el-col :span="24">交易说明:</el-col>
  31. </el-col>
  32. <el-col :span="6" class="fbListCenterR">
  33. <el-col :span="24" class="bainji">
  34. <el-col :span="24"> {{ item.state }}</el-col>
  35. </el-col>
  36. </el-col>
  37. </el-col>
  38. </el-col>
  39. </el-col>
  40. <el-col class="page" :span="24">
  41. <el-pagination
  42. @size-change="handleSizeChange"
  43. @current-change="handleCurrentChange"
  44. :current-page="currentPage"
  45. layout="total, prev, pager, next, jumper"
  46. :total="total"
  47. >
  48. </el-pagination>
  49. </el-col>
  50. </el-col>
  51. </el-col>
  52. </el-row>
  53. </div>
  54. </template>
  55. <script>
  56. export default {
  57. name: 'recruitLists',
  58. props: {
  59. recruitData: null,
  60. columnName: null,
  61. total: null,
  62. },
  63. components: {},
  64. data: () => ({
  65. currentPage: 1,
  66. }),
  67. created() {},
  68. computed: {},
  69. methods: {
  70. handleSizeChange(val) {
  71. console.log(`每页 ${val} 条`);
  72. },
  73. handleCurrentChange(val) {
  74. console.log(`当前页: ${val}`);
  75. },
  76. clickDetailcm(row) {
  77. this.$emit('detailcm', { data: row });
  78. },
  79. },
  80. };
  81. </script>
  82. <style lang="less" scoped>
  83. p {
  84. padding: 0;
  85. margin: 0;
  86. }
  87. .xqborder {
  88. width: 889px;
  89. height: 183px;
  90. border: 1px solid #ccc;
  91. margin-top: 20px;
  92. }
  93. .fbListTop {
  94. width: 885px;
  95. height: 43px;
  96. margin-left: 1px;
  97. background: #fafafa;
  98. line-height: 43px;
  99. text-indent: 10px;
  100. font-size: 13px;
  101. color: #888888;
  102. }
  103. .fbListCenter {
  104. width: 870px;
  105. height: 119px;
  106. margin: 20px 0 0 12px;
  107. }
  108. .fimage {
  109. width: 110px;
  110. height: 119px;
  111. float: left;
  112. }
  113. .fbListCenterC {
  114. width: 196px;
  115. border-right: 1px solid #ccc;
  116. height: 100px;
  117. }
  118. .fbListCenterC p {
  119. padding: 5px 0;
  120. }
  121. .fbListCenterR {
  122. border-left: 1px solid #ccc;
  123. width: 125px;
  124. height: 100px;
  125. float: left;
  126. }
  127. .listName {
  128. width: 196px;
  129. height: 30px;
  130. font-size: 16px;
  131. color: #555555;
  132. }
  133. .listMoney {
  134. height: 30px;
  135. font-size: 16px;
  136. color: #fe0000;
  137. width: 196px;
  138. }
  139. .fbListCenterTwo {
  140. width: 385px;
  141. float: left;
  142. margin-left: 10px;
  143. margin-right: 10px;
  144. background: #fafafa;
  145. height: 100px;
  146. }
  147. .bainji {
  148. padding: 0 0 0 20px;
  149. }
  150. .list {
  151. height: 740px;
  152. padding: 0 20px 0 20px;
  153. overflow: hidden;
  154. }
  155. .topTitle {
  156. height: 60px;
  157. width: 950px;
  158. line-height: 60px;
  159. border-bottom: 1px solid #215299;
  160. }
  161. .rightTopL {
  162. width: 130px;
  163. height: 60px;
  164. float: left;
  165. color: rgb(255, 255, 255);
  166. font-size: 18px;
  167. text-align: center;
  168. font-family: 微软雅黑, Tahoma, Arial, Helvetica, STHeiti;
  169. background: rgb(33, 82, 153);
  170. }
  171. .tit {
  172. background-color: #ffffff;
  173. padding: 30px 0 0 0;
  174. line-height: 50px;
  175. width: 890px;
  176. height: 80px;
  177. border-bottom: 1px solid #ccc;
  178. background-color: #ffffff;
  179. color: #215299;
  180. }
  181. .page {
  182. padding: 11px 0 0 0;
  183. text-align: center;
  184. }
  185. </style>