From ceeb19ad302df0ae6146895cac263d7bdc38ac31 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期四, 29 六月 2023 14:18:20 +0800 Subject: [PATCH] 称重页面问题修改,样式修改 --- pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue b/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue index 4c20882..ac4ef2e 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue @@ -9,10 +9,10 @@ <p>{{ nowTime }}</p> </view> </view> - <view class="punchTheClock_text"> + <!-- <view class="punchTheClock_text"> <u-icon name="map" color="#51e30d" size="30"></u-icon> <text>鏈繘鍏ョ熆鍦哄尯鍩�</text> - </view> + </view> --> </view> </view> </template> @@ -21,19 +21,17 @@ import { todayDate } from '@/utils/util.js'; export default { onLoad(params) { - if (params.orderPlanId && params.coalStatus) { - this.punchTheClockObj.id = params.orderPlanId; - this.coalStatus = params.coalStatus; - } + this.punchTheClockObj.tmcoa = params.tmId.toString(); + this.coalStatus = params.coalStatus; }, data() { return { nowTime: '', coalStatus: 0, punchTheClockObj: { - latitude: null, - longitude: null, - id: null + tmcoa: null, + latA: null, + latB: null } }; }, @@ -69,8 +67,8 @@ type: 'wgs84', success(res) { console.log(res, '鑾峰彇浣嶇疆', that); - that.punchTheClockObj.latitude = res.latitude; - that.punchTheClockObj.longitude = res.longitude; + that.punchTheClockObj.latB = res.latitude; + that.punchTheClockObj.latA = res.longitude; } }); }, @@ -81,7 +79,8 @@ }, // 绛惧埌 arrive() { - if (this.punchTheClockObj.latitude && this.punchTheClockObj.longitude) { + if (this.punchTheClockObj.latA && this.punchTheClockObj.latB) { + console.log(this.punchTheClockObj); this.$reqPost('arrive', this.punchTheClockObj, 'params').then(res => { console.log(res, '绛惧埌'); if (res.code == 0) { @@ -95,7 +94,7 @@ ); }); } else { - this.$u.toast(res.data ? res.data : '绛惧埌澶辫触'); + this.$u.toast(res.msg ? res.msg : '绛惧埌澶辫触'); } }); } else { @@ -123,7 +122,7 @@ display: flex; justify-content: center; align-items: center; - p{ + p { text-align: center; } } -- Gitblit v1.9.1