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

144 lines
3.2 KiB

6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
  1. <template>
  2. <view>
  3. <u-sticky bgColor="#ff7a31">
  4. <u-tabs :list="nav"
  5. :current="current"
  6. lineColor="#ffffff"
  7. :activeStyle="{
  8. color: '#ffffff',
  9. transform: 'scale(1.05)'
  10. }"
  11. :inactiveStyle="{
  12. color: '#f5f5f5',
  13. transform: 'scale(1)'
  14. }"
  15. :scrollable="true"
  16. itemStyle="padding-left: 60rpx; padding-right: 60rpx;font-size:22rpx; height: 100rpx;"
  17. @click="tabClick"></u-tabs>
  18. </u-sticky>
  19. <view class="se-p-40">
  20. <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 20" :key="indexs">
  21. <view class="se-flex se-flex-h-sb se-fw-6 se-fs-32 se-pb-20">
  22. <view class="se-flex">
  23. <text>工装石膏板搬运</text>
  24. <u-icon name="arrow-right"></u-icon>
  25. </view>
  26. <view class="se-c-red">
  27. 已完成
  28. </view>
  29. </view>
  30. <view class="se-flex">
  31. <view class="se-w-160 se-h-160">
  32. <image class="se-w-160 se-h-160 se-br-10" src="https://cdn.uviewui.com/uview/album/1.jpg" mode=""></image>
  33. </view>
  34. <view class="se-ml-20 se-flex se-flex-v-sa se-flex-ai-fs">
  35. <view class="se-fw-6 se-c-black se-fs-30 se-display-ib">泰山工装石膏板搬运</view>
  36. <view class="se-fs-24 se-c-text-third se-display-ib">所属行业:水泥搬运</view>
  37. <view class="se-fs-24 se-c-text-third se-display-ib">所属工种:中午搬运</view>
  38. </view>
  39. </view>
  40. <view class="se-flex se-flex-h-sb se-w-p-100 se-pt-20">
  41. <view class="se-fs-24 se-display-ib">
  42. <text class="se-c-black">总价格</text>
  43. <text class="se-c-orange se-fs-30 se-fw-6"><text class="se-fs-24"></text>6000</text>
  44. </view>
  45. <view 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. <text>联系客服</text>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import {
  55. bossOrderList
  56. } from "@/common/api.js"
  57. export default{
  58. components:{
  59. },
  60. data(){
  61. return{
  62. current:0,
  63. nav: [
  64. {
  65. name: '全部',
  66. index: null
  67. },
  68. {
  69. name: '待聘用',
  70. index: 0
  71. },
  72. {
  73. name: '已接单',
  74. index: 1
  75. },
  76. {
  77. name: '进行中',
  78. index: 2
  79. },
  80. {
  81. name: '试工完成',
  82. index: 3
  83. },
  84. {
  85. name: '企业确认',
  86. index: 4
  87. },
  88. {
  89. name: '已支付',
  90. index: 5
  91. },
  92. {
  93. name: '已完成',
  94. index: 6
  95. },
  96. {
  97. name: '已取消',
  98. index: 7
  99. },
  100. {
  101. name: '发起支付',
  102. index: 8
  103. }
  104. ],
  105. list:[],
  106. orderStatus:null,
  107. pageNo:1,
  108. pageSize:20,
  109. }
  110. },
  111. mounted() {
  112. this.onOrder();
  113. },
  114. methods:{
  115. onOrder(){
  116. let that = this;
  117. let params={
  118. orderStatus:that.orderStatus,
  119. pageNo:that.pageNo,
  120. pageSize:that.pageSize
  121. }
  122. bossOrderList(params).then(response=>{
  123. if(this.pageNo==1){
  124. this.list = response.result.records
  125. }else{
  126. this.list = this.list.concat(response.result.records)
  127. }
  128. }).catch(error=>{
  129. })
  130. },
  131. tabClick(event){
  132. console.info(event)
  133. this.current = event.index
  134. this.orderStatus = this.nav[event.index].index
  135. this.onOrder()
  136. }
  137. }
  138. }
  139. </script>
  140. <style>
  141. </style>