homeList.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view>
  3. <view class="listbox" v-for="(item,index) in list" :key="index" @tap="clickItem(item,index)">
  4. <view class="flex align-center justify-between">
  5. <view>
  6. <view class="" style="color: #000;font-size: 34rpx; font-weight: 800;">{{getfomate(item.resumesName,item.resumesSex)}}</view>
  7. <view class="flex align-center margin-top-xs flex-wrap" style="color: #999999;">
  8. <text>{{item.resumesSex==1?'男':'女'}}</text>
  9. <text class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  10. </text>
  11. <text>{{item.resumesAge}}岁</text>
  12. <text class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  13. </text>
  14. <text>{{item.resumesWorkExperience}}</text>
  15. <text class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  16. </text>
  17. <text>{{item.resumesEducation}}</text>
  18. <text class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  19. </text>
  20. <text>{{item.resumesCompensation}}</text>
  21. </view>
  22. </view>
  23. <view>
  24. <image :src="item.avatar?item.avatar:'../../static/logo.png'"
  25. style="width: 100upx;height: 100upx;border-radius: 55upx;">
  26. </image>
  27. </view>
  28. </view>
  29. <view class="margin-top-sm" v-if="item.resumesCompanyList">
  30. <view class="flex align-center">
  31. <view class="margin-right-xs">
  32. <image src="../../static/images/qi.png" style="width: 30upx;height: 32upx;"></image>
  33. </view>
  34. <view style="color: #121212;">{{item.resumesCompanyList.length!=0?item.resumesCompanyList[0].resumesTitle:'暂无'}}</view>
  35. </view>
  36. <view class="text-sm margin-left margin-top-xs padding-left-xs" style="color: #999999;">
  37. {{item.resumesCompanyList.length!=0?item.resumesCompanyList[0].resumesPost:'暂无'}}
  38. </view>
  39. </view>
  40. <!-- <view class="margin-top-sm" v-if="item.school">
  41. <view class="flex align-center">
  42. <view class="margin-right-xs">
  43. <image src="../../static/images/geren.png" style="width: 30upx;height:26upx;"></image>
  44. </view>
  45. <view style="color: #121212;">{{item.school?item.school:'暂无'}}</view>
  46. </view>
  47. <view class="text-sm margin-left margin-top-xs padding-left-xs" style="color: #999999;">
  48. {{item.rulePostName}}
  49. </view>
  50. </view> -->
  51. <view class="margin-top-sm" v-if="item.resumesWorkList">
  52. <view class="flex">
  53. <view class="margin-right-xs" style="padding-top: 8rpx;">
  54. <image src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/20/15a1ea35392f86d2dc0f1dc2def0f2d9.png" style="width: 30upx;height:30upx;"></image>
  55. </view>
  56. <view style="color: #121212;">意向岗位<text class="text-sm" style="margin-left: 10rpx;color: #999999;">{{item.rulePostName}}</text></view>
  57. </view>
  58. <view class="text-sm margin-left margin-top-xs padding-left-xs" style="color: #999999;">
  59. {{item.resumesPost}}
  60. </view>
  61. </view>
  62. <view class="margin-top-sm" v-if="item.resumesImageName">
  63. <view class="flex">
  64. <view class="margin-right-xs" style="padding-top: 8rpx;">
  65. <image src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/10/28/6f2c3bc743f8676cf959e4ecda1ca9d6.png" style="width: 30upx;height:30upx;"></image>
  66. </view>
  67. <view style="color: #121212;">资格证书</view>
  68. </view>
  69. <view class="text-sm margin-left margin-top-xs padding-left-xs" style="color: #999999;">
  70. {{item.resumesImageName}}
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. export default {
  78. name: 'taskHomeList',
  79. props: {
  80. list: {
  81. type: Array,
  82. default () {
  83. return [];
  84. }
  85. },
  86. //背景颜色
  87. backgroundColor: {
  88. type: String,
  89. default: '#FFFFFF'
  90. },
  91. //是否需要下方横线
  92. splitLine: {
  93. type: Boolean,
  94. default: false
  95. },
  96. //下方20rpx margin
  97. bottomMargin: {
  98. type: Boolean,
  99. default: false
  100. },
  101. radius: {
  102. type: Boolean,
  103. default: false
  104. },
  105. },
  106. watch: {
  107. },
  108. data() {
  109. return {};
  110. },
  111. methods: {
  112. //格式化姓名
  113. getfomate(data,sex){
  114. let housex = ''
  115. if(sex==1){ //先生
  116. housex = '先生'
  117. }else{ //女士
  118. housex = '女士'
  119. }
  120. return data.substring(0,1)+housex
  121. },
  122. clickItem(item, index) {
  123. this.$emit('click', {
  124. item: item,
  125. index: index,
  126. });
  127. }
  128. }
  129. };
  130. </script>
  131. <style>
  132. .listbox {
  133. background: #FFFFFF;
  134. border-radius: 24upx;
  135. margin: 0upx 30upx 20upx 30upx;
  136. padding: 30upx;
  137. }
  138. </style>