From 1cb780b1762c62751c7f5f26132f3a7aa4ef3e2f Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期四, 23 三月 2023 16:45:30 +0800 Subject: [PATCH] 微信登录修改,呼叫客服功能(完成) --- pages/customer-page/customer-my/customer-my.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue index 69316dc..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; }, @@ -250,7 +254,7 @@ // 璐т唬璇︽儏 toFreightForwarderDetails(id) { uni.navigateTo({ - url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details?huoDaiId=${id}` + url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details` }); }, // 杞﹂槦璇︽儏 -- Gitblit v1.9.1