特易招,招聘小程序
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.

133 lines
2.3 KiB

6 months ago
2 months ago
6 months ago
6 months ago
6 months ago
6 months ago
4 months ago
6 months ago
6 months ago
4 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
4 months ago
6 months ago
6 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
  1. <template>
  2. <view class="work-item"
  3. @click="$emit('click')">
  4. <view class="top">
  5. <view class="title">
  6. {{ item.title }}
  7. </view>
  8. <view class="price"
  9. v-if="item.salaryLow >= 1000">
  10. <text>
  11. {{ (item.salaryLow / 1000).toFixed(0) }}
  12. </text>
  13. <text
  14. v-if="item.salaryUp">
  15. -{{ (item.salaryUp / 1000).toFixed(0) }}
  16. </text>
  17. K
  18. </view>
  19. <view class="price" v-else>
  20. <text>{{ item.salaryLow }}</text>
  21. <text
  22. v-if="item.salaryUp">-{{ item.salaryUp }}</text>
  23. </view>
  24. </view>
  25. <view class="tag-list">
  26. <view
  27. v-for="(t, i) in lableText"
  28. :key="i">
  29. {{ t }}
  30. </view>
  31. </view>
  32. <view class="bottom">
  33. <view class="address">
  34. <!-- <text>2.5km | 楚河汉区</text> -->
  35. {{ item.workAddress }}
  36. </view>
  37. <view class="time">
  38. <!-- 09月23日 1620 -->
  39. {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
  40. </view>
  41. <view class="phone"
  42. @click.stop="callPhone">
  43. <image src="/static/image/home/phone.png" mode=""></image>
  44. 联系老板
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. props : {
  52. item : {
  53. default : {}
  54. }
  55. },
  56. computed : {
  57. lableText(){
  58. let arr =
  59. this.item.tab ?
  60. this.item.tab.split('、')
  61. : []
  62. if(this.item.workAge){
  63. arr.unshift(this.item.workAge)
  64. }
  65. if(this.item.qulification){
  66. arr.unshift(this.item.qulification)
  67. }
  68. return arr
  69. },
  70. },
  71. data() {
  72. return {
  73. }
  74. },
  75. methods: {
  76. callPhone(){
  77. uni.makePhoneCall({
  78. phoneNumber: this.item.phone,
  79. success() {
  80. console.log('安卓拨打成功');
  81. },
  82. fail() {
  83. console.log('安卓拨打失败');
  84. }
  85. })
  86. },
  87. }
  88. }
  89. </script>
  90. <style scoped lang="scss">
  91. .work-item{
  92. background-color: #fff;
  93. padding: 20rpx;
  94. border-radius: 20rpx;
  95. .top{
  96. display: flex;
  97. justify-content: space-between;
  98. font-weight: 900;
  99. .title{
  100. }
  101. .price{
  102. color: $uni-color;
  103. }
  104. }
  105. .bottom{
  106. display: flex;
  107. justify-content: space-between;
  108. align-items: center;
  109. font-size: 24rpx;
  110. gap: 16rpx;
  111. .time{
  112. color: #999999;
  113. flex-shrink: 0;
  114. }
  115. .phone{
  116. background-color: rgba($uni-color, 0.2);
  117. color: $uni-color;
  118. padding: 8rpx 16rpx;
  119. border-radius: 10rpx;
  120. flex-shrink: 0;
  121. image{
  122. width: 20rpx;
  123. height: 20rpx;
  124. }
  125. }
  126. }
  127. }
  128. </style>