From d36eb757af8867278125c6999fcaa5bdb902151c Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期二, 21 三月 2023 17:38:45 +0800
Subject: [PATCH] 司机称重页面,签到页面

---
 pages/driver-page/driver-index/driver-index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue
index 41a08cd..e90e112 100644
--- a/pages/driver-page/driver-index/driver-index.vue
+++ b/pages/driver-page/driver-index/driver-index.vue
@@ -16,7 +16,7 @@
 						<text>{{ item.carNum }}</text>
 						寮�
 					</view>
-					<view class="card-left__utils"><u-button @tap.stop="qiangDanBtn(item.orderPlanId)" text="鎶㈠崟" type="primary" shape="circle"></u-button></view>
+					<view class="card-left__utils"><u-button @tap.stop="qiangDan(item.orderPlanId)" text="鎶㈠崟" type="primary" shape="circle"></u-button></view>
 				</template>
 				<template v-slot:right-top>
 					<view class="right-top">
@@ -162,12 +162,12 @@
 		},
 		// 鎶㈠崟璇锋眰
 		qiangDan(id) {
-			// this.$reqPost('qiangDan', { orderPlanId: id, wxUserId: customerId }, 'params').then(res => {
 			this.$reqPost('qiangDan', { orderPlanId: id }, 'params').then(res => {
 				if (res.code == 0) {
 					this.$u.toast('鎶㈠崟鎴愬姛');
+				} else {
+					this.$u.toast(res.data ? res.data : '鎶㈠崟澶辫触');
 				}
-				console.log('鎶㈠崟', res);
 				this.qiangDanList();
 			});
 		},

--
Gitblit v1.9.1