From 42e5ea86f7edc9361227edd979a8ae1952713161 Mon Sep 17 00:00:00 2001
From: Liuyi <candymxq888@outlook.com>
Date: 星期六, 19 十月 2024 16:19:16 +0800
Subject: [PATCH] 添加共享列表,修改共享功能相关代码

---
 pages/userInfo/index.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/pages/userInfo/index.vue b/pages/userInfo/index.vue
index 7dce482..fe94ade 100644
--- a/pages/userInfo/index.vue
+++ b/pages/userInfo/index.vue
@@ -9,6 +9,7 @@
 		editForm.value.userName = userInfo.value.userName
 		editForm.value.userPhone = userInfo.value.userPhone
 		isEdit.value = true
+		console.log('userInfo',userInfo.value)
 	}
 	function cancel(){
 		isEdit.value = false
@@ -29,7 +30,7 @@
 				})
 			}else{
 				uni.showToast({
-					title: '请求错误!请重试',
+					title: '网络错误!请重试',
 					duration: 2000,
 					icon:'none'
 				});
@@ -47,7 +48,7 @@
 				<view class="info-up">
 					<view class="info-img">
 						<text>头像</text>
-						<image src='../../static/logo.png' alt=''></image>
+						<image src='../../static/images/index/head.png' alt=''></image>
 					</view>
 					<view class="info-name">
 						<text>用户名称</text>
@@ -60,13 +61,15 @@
 				<view class="info-list">
 					<view class="item">
 						<text>会员卡号</text>
-						<text>{{userInfo.waterCardNumber}}</text>
+						<text v-if="userInfo.waterCardNumber">{{userInfo.waterCardNumber}}</text>
+						<text v-else>未绑定会员卡</text>
 					</view>
 					<view class="item">
 						<text>联系方式</text>
 						<view>
 							<input v-if="isEdit" v-model="editForm.userPhone" placeholder="请输入新联系方式"/>
-							<text v-else>{{userInfo.userPhone}}</text>
+							<text v-if="userInfo.userPhone && !isEdit">{{userInfo.userPhone}}</text>
+							<text v-if="!userInfo.userPhone && !isEdit">未添加联系方式</text>
 							<!-- <image class="edit"src="../../static/images//other/more.png" alt=''></image> -->
 						</view>
 					</view>

--
Gitblit v1.9.3