From 7406be32979e90a730b5a2ac8d392892f71835d2 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 10 四月 2023 14:53:17 +0800
Subject: [PATCH] 修复称重不显示问题,优化信息提示
---
pages/customer-page/customer-my/customer-my.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue
index fb69950..62643bc 100644
--- a/pages/customer-page/customer-my/customer-my.vue
+++ b/pages/customer-page/customer-my/customer-my.vue
@@ -10,7 +10,7 @@
<u-swipe-action>
<u-cell-group :border="false">
<u-swipe-action-item :options="options1" v-for="(item, index) in huoDaiData" :index="index" :name="item.userId" :key="index" @click="deleteHuoDaiClick">
- <u-cell :title="item.name" value="璇︽儏" @click="toFreightForwarderDetails(item.id)"></u-cell>
+ <u-cell :title="item.name" value="璇︽儏" @click="toFreightForwarderDetails(item.userId)"></u-cell>
</u-swipe-action-item>
</u-cell-group>
</u-swipe-action>
@@ -182,7 +182,7 @@
this.$u.toast('娣诲姞鎴愬姛');
this.getFleet();
} else {
- this.$u.toast(res.data ? res.data : '娣诲姞澶辫触');
+ this.$u.toast(res.msg ? res.msg : '娣诲姞澶辫触');
}
});
this.updateGroupShow = false;
@@ -247,15 +247,17 @@
console.log('鍒犻櫎杞﹂槦', res);
if (res.code == 0) {
this.$u.toast('鍒犻櫎鎴愬姛');
+ } else {
+ this.$u.toast(res.msg ? res.msg : '鍒犻櫎澶辫触');
}
uni.hideLoading();
this.getFleet();
});
},
// 璐т唬璇︽儏
- toFreightForwarderDetails(id) {
+ toFreightForwarderDetails(userId) {
uni.navigateTo({
- url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details`
+ url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details?userId=${userId}`
});
},
// 杞﹂槦璇︽儏
--
Gitblit v1.9.1