companyListIndex.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="list flex align-center justify-center">
  3. <view class="list-box" @click="goInfo(item)">
  4. <view class="list-box-info flex justify-between">
  5. <image :src="item.companyLogo?item.companyLogo:'/static/logo.png'" mode="aspectFill"></image>
  6. <view class="list-box-info-r">
  7. <view class="list-box-info-r-name">
  8. {{item.companyName?item.companyName:'匿名公司'}}
  9. </view>
  10. <view class="list-box-info-r-tips flex flex-wrap"
  11. v-if="item.city || item.companyScope || item.companyPeople">
  12. <view class="list-box-info-r-tipss" v-if="item.city">
  13. {{item.city}}
  14. </view>
  15. <view class="list-box-info-r-tipss" v-if="item.companyScope">
  16. {{item.companyScope}}
  17. </view>
  18. <view class="list-box-info-r-tipss" v-if="item.companyPeople">
  19. {{item.companyPeople}}
  20. </view>
  21. </view>
  22. <view class="list-box-info-r-address">
  23. {{item.companyAddress}}
  24. </view>
  25. </view>
  26. </view>
  27. <view class="list-box-line" :style="item.postPushList.length>0?'':'border:none'"></view>
  28. <view class="list-box-item" :style="{border:ind==item.postPushList.length-1?'none':''}"
  29. v-for="(ite,ind) in item.postPushList" :key="ind">
  30. <view class="list-box-item-top flex align-center justify-between">
  31. <view class="list-box-item-top-l">
  32. <block v-if="isSameName(ite.ruleClassifyName,ite.stationName)">
  33. {{ite.ruleClassifyName}}-
  34. </block>
  35. <block>
  36. {{ite.stationName}}
  37. </block>
  38. </view>
  39. <view class="list-box-item-top-r">
  40. {{ite.salaryRange}}
  41. </view>
  42. </view>
  43. <view class="list-box-item-tips flex">
  44. <view class="list-box-item-tipss" v-if="ite.education">
  45. {{ite.education}}
  46. </view>
  47. <view class="list-box-item-tipss" v-if="ite.experience">
  48. {{ite.experience}}
  49. </view>
  50. <view class="list-box-item-tipss" v-if="ite.industry">
  51. {{ite.industry}}
  52. </view>
  53. </view>
  54. </view>
  55. <view class="list-box-btn flex align-center justify-center">
  56. 查看更多职位
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. name: "companyListIndex",
  64. props: {
  65. item: {
  66. type: Object,
  67. default: () => {}
  68. }
  69. },
  70. data() {
  71. return {};
  72. },
  73. methods: {
  74. goInfo(item) {
  75. this.$emit('goInfo', item)
  76. },
  77. isSameName(className, name) {
  78. let str1 = className.trim();
  79. let str2 = name.trim();
  80. if (str1.length !== str2.length) {
  81. return true;
  82. }
  83. return str1.toLowerCase() !== str2.toLowerCase();
  84. },
  85. }
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .list {
  90. width: 100%;
  91. margin-bottom: 20rpx;
  92. .list-box {
  93. width: 686rpx;
  94. height: 100%;
  95. background-color: #ffffff;
  96. border-radius: 24rpx;
  97. padding: 30rpx;
  98. }
  99. .list-box-info {
  100. image {
  101. width: 160rpx;
  102. height: 160rpx;
  103. border-radius: 24rpx;
  104. }
  105. .list-box-info-r {
  106. width: calc(100% - 180rpx);
  107. height: 100%;
  108. }
  109. .list-box-info-r-name {
  110. color: #1F1F1F;
  111. font-size: 36rpx;
  112. font-weight: bold;
  113. }
  114. .list-box-info-r-tips {}
  115. .list-box-info-r-tipss {
  116. background-color: #F6F6F6;
  117. border-radius: 8rpx;
  118. margin-right: 20rpx;
  119. color: #666666;
  120. font-size: 24rpx;
  121. padding: 8rpx 16rpx;
  122. margin-top: 16rpx;
  123. }
  124. .list-box-info-r-address {
  125. margin-top: 16rpx;
  126. color: #999999;
  127. font-size: 26rpx;
  128. }
  129. }
  130. .list-box-line {
  131. border-bottom: 1px solid #E6E6E6;
  132. margin-top: 30rpx;
  133. }
  134. .list-box-item {
  135. margin-top: 30rpx;
  136. border-bottom: 1px solid #E6E6E6;
  137. padding-bottom: 30rpx;
  138. }
  139. .list-box-item-top-l {
  140. font-size: 34rpx;
  141. color: #1F1F1F;
  142. font-weight: 500;
  143. }
  144. .list-box-item-top-r {
  145. color: #00B88F;
  146. font-size: 32rpx;
  147. font-weight: bold;
  148. }
  149. .list-box-item-tipss {
  150. background-color: #F6F6F6;
  151. border-radius: 8rpx;
  152. margin-right: 20rpx;
  153. color: #666666;
  154. font-size: 24rpx;
  155. padding: 8rpx 16rpx;
  156. margin-top: 16rpx;
  157. }
  158. .list-box-btn {
  159. width: 100%;
  160. height: 74rpx;
  161. border: 1px solid #E6E6E6;
  162. border-radius: 10rpx;
  163. }
  164. }
  165. </style>