From 7986bc00e330411ffc73da24fdd168c6af8cf295 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期一, 27 三月 2023 10:46:12 +0800 Subject: [PATCH] 0327测试 --- pages/customer-page/customer-my/customer-my.vue | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue index c7ea67c..ca15628 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> @@ -131,25 +131,27 @@ }, methods: { init() { - uni.showLoading({ - title: '鍔犺浇涓�...' - }); this.getAllHuoDaiByCustomerId(); this.getFleet(); - uni.hideLoading(); }, // 鑾峰彇璐т唬鍒楄〃 getAllHuoDaiByCustomerId() { + uni.showLoading({ + title: '鍔犺浇涓�...' + }); this.$reqGet('getAllHuoDaiByCustomerId').then(res => { + uni.hideLoading(); this.huoDaiData = res.data; - console.log('璐т唬鍒楄〃', res); }); }, // 鑾峰彇杞﹂槦鍒楄〃 getFleet() { + uni.showLoading({ + title: '鍔犺浇涓�...' + }); this.$reqGet('getFleet').then(res => { + uni.hideLoading(); this.fleetData = res.data; - console.log('杞﹂槦鍒楄〃', res); }); }, // 娣诲姞璐т唬 @@ -160,7 +162,6 @@ }, // 娣诲姞杞﹂槦 addFleet() { - console.log('娣诲姞杞﹂槦'); this.updateGroupShow = true; }, addNewFleetPopupClose() { @@ -252,9 +253,9 @@ }); }, // 璐т唬璇︽儏 - 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