From 4384c7a5256b3b96afc30ad6f636f235fde2e296 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期二, 13 八月 2024 17:02:32 +0800 Subject: [PATCH] update todo 到时候根据合伙人id --- sub_pages/customer/shopping/confirm.vue | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/sub_pages/customer/shopping/confirm.vue b/sub_pages/customer/shopping/confirm.vue index f6f3a7b..60e173c 100644 --- a/sub_pages/customer/shopping/confirm.vue +++ b/sub_pages/customer/shopping/confirm.vue @@ -48,8 +48,13 @@ // @ApiModelProperty(value = "打包费") // private BigDecimal packing; + // 两种情况,我合伙人是A,我进入页面前改成了B,我进去后还是获取了A——可以通过 + if (this.currentInfo.customerDTO && this.currentInfo.customerDTO.partnerId) { //todo 考虑一下,由后台实时获取,如果获取的合伙人id不一样,那么就刷新当前用户信息。 + + // await this.refrehCurrentInfo() + this.$http.request('get', '/api/partner/page/view', { params: { id: this.currentInfo.customerDTO.partnerId @@ -57,8 +62,14 @@ }).then(res => { if (res.code == 0) { this.partnerInfo = res.data || {} + if (this.partnerInfo.id !== this.currentInfo.customerDTO.partnerId) { + //刷新用户信息 + // await dispatch('getCurrentInfo') + } } }) + + } }, -- Gitblit v1.9.3