特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
3.3 KiB

7 months ago
4 months ago
7 months ago
5 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
5 months ago
7 months ago
7 months ago
5 months ago
7 months ago
  1. <template>
  2. <view class="boss-item"
  3. @click="$emit('click')">
  4. <view class="head">
  5. <view class="headImage">
  6. <image :src="item.hanHaiMember.headImage" mode=""></image>
  7. </view>
  8. <view class="info">
  9. <view class="name">
  10. <!-- 李老板 -->
  11. {{ item.employAuthenticationPerson.name }}
  12. <view>
  13. <!-- 装配电工 -->
  14. {{ item.typeId_dictText }}
  15. </view>
  16. <view>
  17. <!-- 装配电工 -->
  18. {{ item.natureId_dictText }}
  19. </view>
  20. </view>
  21. <view class="tips">
  22. <!-- · 汉族 · 本科 · 应届生 -->
  23. {{ sex || item.sex }} · {{ item.nation }} · {{ item.qualification }}
  24. </view>
  25. </view>
  26. <view class="right">
  27. <view class="price"
  28. v-if="item.salaryLow >= 1000">
  29. <text>
  30. {{ (item.salaryLow / 1000).toFixed(0) }}
  31. </text>
  32. <text
  33. v-if="item.salaryUp">
  34. -{{ (item.salaryUp / 1000).toFixed(0) }}
  35. </text>
  36. K
  37. </view>
  38. <view class="price" v-else>
  39. <text>{{ item.salaryLow }}</text>
  40. <text
  41. v-if="item.salaryUp">-{{ item.salaryUp }}</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="bottom">
  46. <view class="time">
  47. <!-- 09月23日 1620 -->
  48. {{ $dayjs(createTime || item.createTime).format('YYYY-MM-DD') }}
  49. </view>
  50. <view class="phone"
  51. @click.stop="callPhone">
  52. <image src="/static/image/home/phone.png" mode=""></image>
  53. 联系他
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. props : {
  61. item : {
  62. default : {}
  63. },
  64. createTime : {
  65. default : '',
  66. },
  67. image : {
  68. default : ''
  69. },
  70. sex : {
  71. default : ''
  72. },
  73. },
  74. data() {
  75. return {
  76. }
  77. },
  78. computed : {
  79. headImage(){
  80. return this.image || this.item.headImage || '/static/image/center/headImage.png'
  81. },
  82. phone(){
  83. return this.item.hanHaiMember && this.item.hanHaiMember.phone
  84. },
  85. },
  86. methods: {
  87. callPhone(){
  88. uni.makePhoneCall({
  89. phoneNumber: this.phone,
  90. success() {
  91. console.log('安卓拨打成功');
  92. },
  93. fail() {
  94. console.log('安卓拨打失败');
  95. }
  96. })
  97. },
  98. }
  99. }
  100. </script>
  101. <style scoped lang="scss">
  102. .boss-item{
  103. background-color: #fff;
  104. border-radius: 20rpx;
  105. .head {
  106. display: flex;
  107. align-items: center;
  108. position: relative;
  109. padding: 20rpx;
  110. image {
  111. width: 100%;
  112. height: 100%;
  113. }
  114. .headImage {
  115. width: 80rpx;
  116. height: 80rpx;
  117. background-size: 100% 100%;
  118. overflow: hidden;
  119. border-radius: 50%;
  120. margin-right: 40rpx;
  121. }
  122. .info {
  123. font-size: 28rpx;
  124. .name {
  125. font-size: 32rpx;
  126. display: flex;
  127. padding-bottom: 10rpx;
  128. view {
  129. display: flex;
  130. font-size: 24rpx;
  131. align-items: center;
  132. margin-left: 20rpx;
  133. background: rgba($uni-color, 0.2);
  134. color: $uni-color;
  135. padding: 10rpx;
  136. border-radius: 10rpx;
  137. }
  138. }
  139. .tips {
  140. font-size: 24rpx;
  141. }
  142. }
  143. .right{
  144. margin-left: auto;
  145. font-size: 24rpx;
  146. .price{
  147. color: $uni-color;
  148. }
  149. }
  150. }
  151. .bottom{
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: flex-end;
  155. font-size: 24rpx;
  156. padding: 20rpx;
  157. padding-top: 0;
  158. .time{
  159. color: #999999;
  160. }
  161. .phone{
  162. background-color: rgba($uni-color, 0.2);
  163. color: $uni-color;
  164. padding: 8rpx 16rpx;
  165. border-radius: 10rpx;
  166. image{
  167. width: 20rpx;
  168. height: 20rpx;
  169. }
  170. }
  171. }
  172. }
  173. </style>