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

129 lines
2.2 KiB

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