From 82fa9121ff649bb681fc55e482fe405c5ce0d4d0 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期三, 22 三月 2023 13:48:29 +0800
Subject: [PATCH] 称重界面完成(上磅计量页面完成)
---
pages/customer-page/customer-my/customer-my.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue
index 39a651b..c7ea67c 100644
--- a/pages/customer-page/customer-my/customer-my.vue
+++ b/pages/customer-page/customer-my/customer-my.vue
@@ -147,7 +147,7 @@
},
// 鑾峰彇杞﹂槦鍒楄〃
getFleet() {
- this.$reqGet('getFleet', { customerId }).then(res => {
+ this.$reqGet('getFleet').then(res => {
this.fleetData = res.data;
console.log('杞﹂槦鍒楄〃', res);
});
@@ -177,8 +177,12 @@
// 鏂板缓杞﹂槦
this.$reqPost('saveFleet', this.addGroupForm, 'params').then(res => {
uni.hideLoading();
- console.log('鏂板缓杞﹂槦', res);
- this.getFleet();
+ if (res.code == 0) {
+ this.$u.toast('娣诲姞鎴愬姛');
+ this.getFleet();
+ } else {
+ this.$u.toast(res.data ? res.data : '娣诲姞澶辫触');
+ }
});
this.updateGroupShow = false;
},
--
Gitblit v1.9.1