From 1382a7990e9b13f60c6416ada5477673a934dd16 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 29 八月 2024 09:02:57 +0800
Subject: [PATCH] ll

---
 h5/pages/driver/queueUp.vue |   57 ++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 42 insertions(+), 15 deletions(-)

diff --git a/h5/pages/driver/queueUp.vue b/h5/pages/driver/queueUp.vue
index 2b13d91..3c08723 100644
--- a/h5/pages/driver/queueUp.vue
+++ b/h5/pages/driver/queueUp.vue
@@ -1,7 +1,9 @@
 <template>
   <view class="main_app">
     <view class="main_name">
-      <text class="mr12">鐗╂祦鍏ュ簱鏈堝彴</text>
+      <text class="mr12" @click="showPlat = true">{{
+        activePlatform.name
+      }}</text>
       <u-icon name="arrow-down" color="#777777"></u-icon>
     </view>
     <!--  -->
@@ -9,7 +11,9 @@
       <view class="item" @click="handleCheck()">
         <view class="h1">浣滀笟涓溅杈�</view>
         <view class="h2">
-          <text>4</text>
+          <text v-if="activePlatform.signJobList">{{
+            activePlatform.signJobList.length
+          }}</text>
           <text class="unit">杈�</text>
         </view>
         <image
@@ -19,9 +23,11 @@
         ></image>
       </view>
       <view class="item cyan">
-        <view class="h1">浣滀笟涓溅杈�</view>
+        <view class="h1">宸茬鍒拌溅杈�</view>
         <view class="h2">
-          <text>4</text>
+          <text v-if="activePlatform.workJobList">{{
+            activePlatform.workJobList.length
+          }}</text>
           <text class="unit">杈�</text>
         </view>
         <image
@@ -31,27 +37,48 @@
         ></image>
       </view>
     </view>
+
+    <u-picker
+      :show="showPlat"
+      keyName="name"
+      :columns="[platformGroupList]"
+      @cancel="showPlat = false"
+      @confirm="platConfirm"
+    ></u-picker>
   </view>
 </template>
 
 <script>
-	import { driverLineUpDetail } from '@/api'
+import { driverLineUpDetail } from '@/api'
 export default {
   data() {
     return {
-
+      activePlatform: {},
+      platformGroupList: [],
+      showPlat: false
     }
   },
-	onLoad() {
-		this.getData()
-	},
+  onLoad(option) {
+    this.getData(option.jobId || '')
+  },
   methods: {
-		getData() {
-			driverLineUpDetail({
-				  mobile: uni.getStorageSync('driverInfo').mobile,
-				  queryType: 0
-			})
-		},
+    getData(jobId) {
+      driverLineUpDetail({
+        mobile: jobId ? '' : uni.getStorageSync('driverInfo').mobile,
+        queryType: jobId ? 1 : 0,
+        jobId: jobId
+      }).then(res => {
+        this.platformGroupList = res.data.platformGroupList
+        if (res.data && res.data.platformGroupList && res.data.platformGroupList.length > 0) {
+          this.activePlatform = res.data.platformGroupList[0]
+        }
+      })
+    },
+    platConfirm(e) {
+      const index = e.indexs[0]
+      this.activePlatform = this.platformGroupList[index]
+      this.showPlat = false
+    },
     handleCheck() {
       uni.navigateTo({
         url: "/pages/driver/queueUpRecord"

--
Gitblit v1.9.3