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

155 lines
3.8 KiB

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