From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化
---
h5/pages/driver/queueUp.vue | 29 +++++++++++++++++++----------
1 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/h5/pages/driver/queueUp.vue b/h5/pages/driver/queueUp.vue
index 3c08723..b0cb1a9 100644
--- a/h5/pages/driver/queueUp.vue
+++ b/h5/pages/driver/queueUp.vue
@@ -8,11 +8,11 @@
</view>
<!-- -->
<view class="main_list">
- <view class="item" @click="handleCheck()">
+ <view class="item" @click="handleCheck(1)">
<view class="h1">浣滀笟涓溅杈�</view>
<view class="h2">
<text v-if="activePlatform.signJobList">{{
- activePlatform.signJobList.length
+ activePlatform.workJobList.length
}}</text>
<text class="unit">杈�</text>
</view>
@@ -22,11 +22,11 @@
mode=""
></image>
</view>
- <view class="item cyan">
+ <view class="item cyan" @click="handleCheck(0)">
<view class="h1">宸茬鍒拌溅杈�</view>
<view class="h2">
<text v-if="activePlatform.workJobList">{{
- activePlatform.workJobList.length
+ activePlatform.signJobList.length
}}</text>
<text class="unit">杈�</text>
</view>
@@ -55,10 +55,12 @@
return {
activePlatform: {},
platformGroupList: [],
- showPlat: false
+ showPlat: false,
+ jobId: ''
}
},
onLoad(option) {
+ this.jobId = option.jobId
this.getData(option.jobId || '')
},
methods: {
@@ -66,7 +68,7 @@
driverLineUpDetail({
mobile: jobId ? '' : uni.getStorageSync('driverInfo').mobile,
queryType: jobId ? 1 : 0,
- jobId: jobId
+ jobId: jobId,
}).then(res => {
this.platformGroupList = res.data.platformGroupList
if (res.data && res.data.platformGroupList && res.data.platformGroupList.length > 0) {
@@ -79,10 +81,17 @@
this.activePlatform = this.platformGroupList[index]
this.showPlat = false
},
- handleCheck() {
- uni.navigateTo({
- url: "/pages/driver/queueUpRecord"
- })
+ handleCheck(type) {
+ if(this.jobId){
+ uni.navigateTo({
+ url: `/pages/driver/queueUpRecord?type=${type}&platformId=${this.activePlatform.id}&jobId=${this.jobId}`
+ })
+ }else{
+ uni.navigateTo({
+ url: `/pages/driver/queueUpRecord?type=${type}&platformId=${this.activePlatform.id}`
+ })
+ }
+
}
}
}
--
Gitblit v1.9.3