From 0abe6ac3b77cd414e860df4979aa06c62c3e6143 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 06 九月 2024 19:06:46 +0800
Subject: [PATCH] 1、【花满芫小程序项目】 小程序-花店:申请售后-售后理由字段布局调整,字数过多显示会跨行 2、【花满芫小程序项目】 管理端-合伙人:质检详情-降级、缺货、补货高亮显示 3、【花满芫小程序项目】 小程序-花店:浏览记录-浏览记录默认状态按照时间倒序排列 因为目前只显示10条记录,不按时间顺序的话最新的浏览记录就不会被看到; 4、【花满芫小程序项目】 小程序-合伙人:合伙人审核-1.已经审核通过后,现在还可以再次提交审核,不合逻辑。 2.审核后的不通过原因,需要显示在小程序端;

---
 pages/user/address/address.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/pages/user/address/address.vue b/pages/user/address/address.vue
index e320be3..8b2c9e5 100644
--- a/pages/user/address/address.vue
+++ b/pages/user/address/address.vue
@@ -219,8 +219,8 @@
 			},
 			async init_area() {
 				if (this.regionDataPlus && this.regionDataPlus.length > 0) {
-					
-				}else{
+
+				} else {
 					var a = this.$storage.getItem('cache_area')
 					if (a) {
 						this.regionDataPlus = JSON.parse(a) || []
@@ -404,11 +404,18 @@
 				if (code === 0) {
 					this.$refs.popup_form.close()
 					this.$message.showToast(this.submitForm.id ? '修改成功' : '新增成功')
+					
 					let tmp = this
 					setTimeout(() => {
 						tmp.page.current = 1
 						tmp.refreshList()
 					}, 300)
+					//如果当前选择的地址是这个,需要更新一下数据
+					if (this.address.id && this.submitForm.id === this.address.id) {
+						this.$store.commit('setDefaultAddress', {
+							...this.submitForm
+						})
+					}
 				}
 			},
 

--
Gitblit v1.9.3