From 0512f40da106268ac342377256cf9099d7f90b3e Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 18 十月 2024 10:41:35 +0800
Subject: [PATCH] add 首页的定位

---
 pages/home/home.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pages/home/home.vue b/pages/home/home.vue
index c3cfb6d..0ce708d 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -15,7 +15,7 @@
 			<view class="picker flex" @click.stop="goToAddress">
 				<uni-icons type="location" class="m-r-5" size="18"></uni-icons>
 				<view>
-					{{ address&&address.id?address.address: '选择地址' }}
+					{{ addressDesc || (address&&address.id?address.address: '选择地址')  }}
 				</view>
 			</view>
 		</view>
@@ -141,6 +141,9 @@
 			...mapState({
 				address: state => {
 					return state.defaultaddress || {}
+				},
+				addressDesc: state=>{
+					return state.addressDesc || ''
 				},
 				currentInfo: state => {
 					return state.currentInfo || {}

--
Gitblit v1.9.3