From 40a7d8db73f81ad10de03684dc9f6720e18cc315 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期二, 08 八月 2023 16:11:14 +0800 Subject: [PATCH] 称重异常修改 --- pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue index 7042ecc..d324bf8 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue @@ -175,7 +175,7 @@ openName: '' }, coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅浠�', '鍑虹叅浠�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠', - '杩涘叆鍦洪櫌' + '杩涘叆鍦洪櫌', '寮傚父瀹℃牳涓�' ], // 鐘舵�� weighHouseCode: '', // 鏀剧┖寮圭獥鎺у埗鍙橀噺 @@ -242,7 +242,7 @@ return this.coalDetailsData.hair !== 0 || this.coalDetailsData.skin !== 0; }, isapproach() { - return this.currentPageCoalStatus <= 3; + return this.currentPageCoalStatus !== 3; } }, methods: { @@ -272,14 +272,12 @@ this.$reqGet('getCallOutList', this.getServiceOpenid).then(res => { console.log(res, '瀹㈡湇openid'); if (res.code != 0) { - this.$u.toast('鑾峰彇瀹㈡湇淇℃伅澶辫触'); + this.$u.toast(res.msg ? res.msg : '鑾峰彇瀹㈡湇淇℃伅澶辫触'); } else { - if (res.data.length > 0) { - this.serviceInfoObj.openId = res.data[0].openId; - this.serviceInfoObj.openName = res.data[0].openName; - uni.setStorageSync('customeropenId', this.serviceInfoObj.openId); - uni.setStorageSync('customerName', this.serviceInfoObj.openName); - } + this.serviceInfoObj.openId = res.data.openId; + this.serviceInfoObj.openName = res.data.openName; + uni.setStorageSync('customeropenId', this.serviceInfoObj.openId); + uni.setStorageSync('customerName', this.serviceInfoObj.openName); } }); }, @@ -411,7 +409,7 @@ nickname: uni.getStorageSync('customerName'), openid: uni.getStorageSync( 'customeropenId') - }, // 杩欓噷鐨刼penid鏄痜yy鐨勶紝鍏呭綋鍥哄畾鐨勫鏈峯penid + }, backgroundType: 2, roomType: 'voice', success() { -- Gitblit v1.9.1