jobIntention.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view>
  3. <view v-for="val in data" :key="val.id" class="ss-m-b-40">
  4. <view class="item">
  5. <view style="display: flex;justify-content: space-between;align-items: center;">
  6. <text class="mr-20 item-title">{{ val.position}}</text>
  7. <text class="color-error font-weight-bold">{{ val.payFrom }} {{ val.payFrom && val.payTo ? '-' : ''}} {{ val.payTo}}</text>
  8. </view>
  9. <view>
  10. {{
  11. val.interestedArea && val.interestedArea.length
  12. ?
  13. (val.workArea ? val.workArea + ',' : '') + val.interestedArea.map(e => e.name).join(',')
  14. :
  15. (val.workArea || '')
  16. }}
  17. </view>
  18. <view class="item-tags">
  19. <view v-for="industry in val.industry" :key="industry.id" class="tag">{{ industry.nameCn }}</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script setup>
  26. defineProps({ data: Array })
  27. </script>
  28. <style scoped lang="scss">
  29. .item {
  30. font-size: 28rpx;
  31. color: #666;
  32. &-title {
  33. color: #000;
  34. font-weight: 600;
  35. }
  36. &-tags {
  37. display: flex;
  38. flex-direction: row;
  39. flex-wrap: wrap;
  40. .tag {
  41. border: 2rpx solid #00B760;
  42. color: #00B760;
  43. padding: 4rpx 16rpx;
  44. font-size: 24rpx;
  45. margin: 10rpx 10rpx 0 0;
  46. border-radius: 10rpx;
  47. }
  48. }
  49. }
  50. </style>