collect.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view class="content">
  3. <view class="list">
  4. <block v-for="(item,index) in pageList" :key="index">
  5. <view class="list_item">
  6. <view class="hflex acenter jbetween">
  7. <view class="item_title">{{item.title}}</view>
  8. <view class="item_blue">{{item.salary}}</view>
  9. </view>
  10. <view class="hflex acenter" style="padding: 20rpx 0 24rpx;">
  11. <view class="item_box">{{item.city}}</view>
  12. <view class="item_box">{{item.education}}</view>
  13. <view class="item_box">{{item.experience}}</view>
  14. </view>
  15. <view class="item_name">{{item.company_name}}</view>
  16. <view class="hflex acenter jbetween" style="padding-top: 16rpx;">
  17. <view class="hflex acenter">
  18. <image class="item_avatar" mode="aspectFill" :src="item.user.avatar"></image>
  19. <view class="user_name">{{item.user.name}}·{{item.user.position}}</view>
  20. </view>
  21. <view class="user_right">{{item.date}}</view>
  22. </view>
  23. </view>
  24. </block>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import $api from '@/static/js/api.js'
  30. var that = ''
  31. export default {
  32. data() {
  33. return {
  34. pageList: [
  35. {
  36. id: 0,
  37. title: '船舶设计师',
  38. salary: '13-15K',
  39. monthly: '13',
  40. city: '北京',
  41. education: '本科',
  42. experience: '经验不限',
  43. company_name: '北京文化旅游产业发展集团有限公司',
  44. date: '05月12日',
  45. user: {
  46. avatar: '/static/images/mine/avatar1.jpg',
  47. name: '江女士',
  48. position: '行政总监',
  49. }
  50. },
  51. {
  52. id: 1,
  53. title: '船舶设计师',
  54. salary: '13-15K',
  55. monthly: '13',
  56. city: '北京',
  57. education: '本科',
  58. experience: '经验不限',
  59. company_name: '北京文化旅游产业发展集团有限公司',
  60. date: '05月12日',
  61. user: {
  62. avatar: '/static/images/mine/avatar1.jpg',
  63. name: '江女士',
  64. position: '行政总监',
  65. }
  66. }
  67. ]
  68. }
  69. },
  70. onLoad() {
  71. that = this
  72. },
  73. methods: {
  74. },
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .content {
  79. padding: 0 30rpx;
  80. background: #F4F4F4;
  81. .list {
  82. .list_item {
  83. margin-top: 20rpx;
  84. width: 100%;
  85. background: #FFFFFF;
  86. border-radius: 20rpx;
  87. box-sizing: border-box;
  88. padding: 20rpx;
  89. .item_title {
  90. font-size: 32rpx;
  91. font-weight: 600;
  92. color: #222222;
  93. }
  94. .item_blue {
  95. font-size: 32rpx;
  96. font-weight: bold;
  97. color: #506DFF;
  98. }
  99. .item_box {
  100. height: 40rpx;
  101. background: #F0F2F6;
  102. border-radius: 2px;
  103. box-sizing: border-box;
  104. padding: 4rpx 18rpx;
  105. font-size: 22rpx;
  106. font-weight: 400;
  107. color: #444444;
  108. margin-right: 20rpx;
  109. }
  110. .item_name {
  111. font-size: 24rpx;
  112. font-weight: 400;
  113. color: #666666;
  114. }
  115. .item_avatar {
  116. width: 40rpx;
  117. height: 40rpx;
  118. border-radius: 50%;
  119. margin-right: 12rpx;
  120. }
  121. .user_name {
  122. font-size: 20rpx;
  123. font-weight: 400;
  124. color: #333333;
  125. }
  126. .user_right {
  127. font-size: 20rpx;
  128. font-weight: 400;
  129. color: #A1A1A1;
  130. }
  131. }
  132. }
  133. }
  134. </style>