From a326f6598f08a11e8c25c36ffd315af546eb2288 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 09 八月 2024 15:34:09 +0800
Subject: [PATCH] update 默认地址修改

---
 manifest.json                           |    2 +-
 pages/home/components/home-category.vue |    2 +-
 pages/user/address/address.vue          |   11 +++++++++--
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/manifest.json b/manifest.json
index 782394c..2848179 100644
--- a/manifest.json
+++ b/manifest.json
@@ -49,7 +49,7 @@
     "quickapp" : {},
     /* 快应用特有相关 */
     "mp-weixin" : {
-        "appid" : "wx6d0ecc4e18710458",
+        "appid" : "wx1441324401626290",
         "setting" : {
             "urlCheck" : false,
             "es6" : true,
diff --git a/pages/home/components/home-category.vue b/pages/home/components/home-category.vue
index ec946c9..0ff549c 100644
--- a/pages/home/components/home-category.vue
+++ b/pages/home/components/home-category.vue
@@ -2,7 +2,7 @@
 	<view class="home-category">
 		<view class="flex">
 			<view class="t1">{{today}}(今日)第一场交易中</view>
-			<view class="t2">当前在售123435扎</view>
+			<view class="t2">当前在售</view>
 		</view>
 		<view class="m-t-12 flex">
 			<view class="item" v-for="(item,index) of list" :key="index" @click.stop="toList(item)">
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