用工小程序前端代码
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.

157 lines
3.8 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
5 months ago
8 months ago
5 months ago
5 months ago
8 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
5 months ago
8 months ago
5 months ago
5 months ago
5 months ago
8 months ago
5 months ago
8 months ago
8 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
8 months ago
5 months ago
5 months ago
5 months ago
5 months ago
8 months ago
  1. <template>
  2. <view>
  3. <u-sticky bgColor="#ff7a31">
  4. <u-tabs :list="nav" :current="current" lineColor="#ffffff" :activeStyle="{
  5. color: '#ffffff',
  6. transform: 'scale(1.05)'
  7. }" :inactiveStyle="{
  8. color: '#f5f5f5',
  9. transform: 'scale(1)'
  10. }" :scrollable="true" itemStyle="padding-left: 60rpx; padding-right: 60rpx;font-size:22rpx; height: 100rpx;"
  11. @click="tabClick"></u-tabs>
  12. </u-sticky>
  13. <view class="se-p-40">
  14. <view class="se-px-40 se-mb-30 se-py-30 se-bgc-white se-br-40 se-bs-b"
  15. @click="onOrderDetail(item)"
  16. v-for="(item,indexs) in list"
  17. :key="indexs">
  18. <view class="se-flex se-flex-h-sb se-fw-6 se-fs-32 se-pb-20">
  19. <view class="se-flex">
  20. <text>{{ item.title }}</text>
  21. <u-icon name="arrow-right"></u-icon>
  22. </view>
  23. <view class="se-c-red">
  24. {{ item.status_dictText }}
  25. </view>
  26. </view>
  27. <view class="se-flex se-bgc-f5 se-br-20">
  28. <view class="se-w-160 se-h-160">
  29. <image class="se-w-160 se-h-160 se-br-10" :src="item.jobHeadImg"
  30. mode=""></image>
  31. </view>
  32. <view class="se-ml-20 se-flex se-flex-v-sa se-flex-ai-fs">
  33. <view class="se-fs-24 se-c-text-third se-display-ib">师傅姓名: {{ item.jobName }}</view>
  34. <view class="se-fs-24 se-c-text-third se-display-ib">接单时间: {{ item.createTime }}</view>
  35. <view class="se-fs-24 se-c-text-third se-display-ib">联系电话: {{ item.jobPhone }}</view>
  36. </view>
  37. </view>
  38. <view class="se-flex se-flex-h-sb se-w-p-100 se-pt-20">
  39. <view class="se-fs-24 se-display-ib">
  40. <text class="se-c-black">试工日薪</text>
  41. <text class="se-c-orange se-fs-30 se-fw-6"><text class="se-fs-24"></text>
  42. {{ item.employSeek && item.employSeek.dayMoney || 0 }}
  43. </text>
  44. </view>
  45. <button
  46. open-type="contact"
  47. class="se-display-ib se-px-20 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-fs-24 se-c-66 se-b"
  48. style="background: transparent; border: none; padding: 0; margin: 0; line-height: 50rpx;">
  49. <text>联系客服</text>
  50. </button>
  51. </view>
  52. </view>
  53. <u-empty v-if="list && list.length==0" mode="list"></u-empty>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import {
  59. bossOrderList
  60. } from "@/common/api.js"
  61. export default {
  62. components: {
  63. },
  64. data() {
  65. return {
  66. current: 0,
  67. nav: [
  68. {
  69. name: '全部',
  70. index: null
  71. },
  72. {
  73. name: '待聘用',
  74. index: 0
  75. },
  76. {
  77. name: '进行中',
  78. index: 1
  79. },
  80. {
  81. name: '试工完成',
  82. index: 2
  83. },
  84. {
  85. name: '企业确认',
  86. index: 3
  87. },
  88. {
  89. name: '已支付',
  90. index: 4
  91. },
  92. {
  93. name: '已完成',
  94. index: 5
  95. },
  96. {
  97. name: '已取消',
  98. index: 6
  99. }
  100. ],
  101. list: [],
  102. orderStatus: null,
  103. pageNo: 1,
  104. pageSize: 20,
  105. }
  106. },
  107. mounted() {
  108. this.onOrder()
  109. },
  110. methods: {
  111. onReach() {
  112. this.pageNo = this.pageNo + 1
  113. this.onOrder()
  114. },
  115. onRefresh() {
  116. this.list = []
  117. this.pageNo = 1
  118. this.onOrder()
  119. },
  120. onOrder() {
  121. let that = this;
  122. let params = {
  123. role: 1,
  124. status: that.orderStatus,
  125. pageNo: that.pageNo,
  126. pageSize: that.pageSize
  127. }
  128. bossOrderList(params).then(response => {
  129. if (this.pageNo == 1) {
  130. this.list = response.result.records
  131. } else {
  132. this.list = this.list.concat(response.result.records)
  133. }
  134. }).catch(error => {
  135. })
  136. },
  137. tabClick(event) {
  138. this.list = []
  139. this.pageNo = 1
  140. this.current = event.index
  141. this.orderStatus = this.nav[event.index].index
  142. this.onOrder()
  143. },
  144. onOrderDetail(event) {
  145. uni.navigateTo({
  146. url: "/pages_subpack/job-order-detail/index?orderId=" + event.id
  147. })
  148. },
  149. }
  150. }
  151. </script>
  152. <style>
  153. </style>