From c9ece393fc028ffecca0915d1b9af62d51b5aef6 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 13 八月 2024 17:21:19 +0800
Subject: [PATCH] 1

---
 sub_pages/customer/shopping/confirm.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/sub_pages/customer/shopping/confirm.vue b/sub_pages/customer/shopping/confirm.vue
index 628c5c7..bfd1426 100644
--- a/sub_pages/customer/shopping/confirm.vue
+++ b/sub_pages/customer/shopping/confirm.vue
@@ -48,16 +48,26 @@
 			// @ApiModelProperty(value = "打包费")
 			//   private BigDecimal packing;
 
+			// 两种情况,我合伙人是A,我进入页面前改成了B,我进去后还是获取了A——可以通过
+
 			if (this.currentInfo.customerDTO && this.currentInfo.customerDTO.partnerId) {
-				this.$http.request('get', '/api/partner/page/view', {
+				// 考虑一下,由后台实时获取,如果获取的合伙人id不一样,那么就刷新当前用户信息。
+
+				this.$http.request('get', '/api/current/customer/partner', {
 					params: {
-						id: this.currentInfo.customerDTO.partnerId
+						// id: this.currentInfo.customerDTO.partnerId
 					}
-				}).then(res => {
+				}).then(async res => {
 					if (res.code == 0) {
 						this.partnerInfo = res.data || {}
+						if (this.partnerInfo.id !== this.currentInfo.customerDTO.partnerId) {
+							//刷新用户信息
+							await dispatch('getCurrentInfo')
+						}
 					}
 				})
+
+
 			}
 
 		},
@@ -488,6 +498,7 @@
 						color: #000000;
 						line-height: 40rpx;
 						word-break: break-word;
+						min-height: 90rpx
 					}
 
 					.price {

--
Gitblit v1.9.3