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

112 lines
2.0 KiB

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
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
  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 item.tab && item.tab.split('、')"
  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. data() {
  56. return {
  57. }
  58. },
  59. methods: {
  60. callPhone(){
  61. uni.makePhoneCall({
  62. phoneNumber: this.item.phone,
  63. success() {
  64. console.log('安卓拨打成功');
  65. },
  66. fail() {
  67. console.log('安卓拨打失败');
  68. }
  69. })
  70. },
  71. }
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. .work-item{
  76. background-color: #fff;
  77. padding: 20rpx;
  78. border-radius: 20rpx;
  79. .top{
  80. display: flex;
  81. justify-content: space-between;
  82. font-weight: 900;
  83. .title{
  84. }
  85. .price{
  86. color: $uni-color;
  87. }
  88. }
  89. .bottom{
  90. display: flex;
  91. justify-content: space-between;
  92. align-items: flex-end;
  93. font-size: 24rpx;
  94. .time{
  95. color: #999999;
  96. }
  97. .phone{
  98. background-color: rgba($uni-color, 0.2);
  99. color: $uni-color;
  100. padding: 8rpx 16rpx;
  101. border-radius: 10rpx;
  102. image{
  103. width: 20rpx;
  104. height: 20rpx;
  105. }
  106. }
  107. }
  108. }
  109. </style>