From 563a0f248d37b8820cdb3e46479d7c8c891b3386 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期三, 26 六月 2024 17:56:33 +0800
Subject: [PATCH] update 子包

---
 pages/user/farmer-user.vue |   58 ++++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 38 insertions(+), 20 deletions(-)

diff --git a/pages/user/farmer-user.vue b/pages/user/farmer-user.vue
index 58507ae..b08912d 100644
--- a/pages/user/farmer-user.vue
+++ b/pages/user/farmer-user.vue
@@ -4,44 +4,57 @@
 			我的
 		</view> -->
 		<!-- 背景图 -->
-		<view class="top-bg" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }">
-			<view class="title" style="position: relative;"  >
-				我<uni-icons type="settings"></uni-icons>
- 
+		<view class="top-bg img100" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }">
+			<view class="title" style="position: relative;">
+				我的
+
 			</view>
-			<view class="icons">
-				<image class="icon1" src="../../static/imgs/user/usr-icon1.png" mode="aspectFit"></image>
-				<image class="icon2" src="../../static/imgs/home/home-shop-top-icon.png" mode="aspectFit"></image>
-			</view>
-			<view class="flex m-20 user-info" @click="goto('/pages/user/user-info/user-info',true)"
-				v-if="currentInfo&&(currentInfo.id)">
+			<view class="flex m-t-20 user-info" v-if="currentInfo&&(currentInfo.id)">
 				<!-- 头像 -->
 				<image class="user-icon" v-if="!currentInfo.picture" src="../../static/imgs/home/home-shop-top-icon.png"
 					mode="aspectFit"></image>
 				<image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image>
 
-				<view class="name">
-					{{currentInfo.nickName || '-'}}
+				<view class="name" style="margin-top: 12rpx;">
+					<view class="t1">{{currentInfo.nickName || '-'}}</view>
+					<view class="t2 m-t-12">{{currentInfo.tel || '暂无电话'}}</view>
 				</view>
-				<uni-icons class="right-icon" type="right"></uni-icons>
 			</view>
- 
+
 
 		</view>
 		<view class="user-utils m-20">
-			<view class="user-util">
-				<view>我的客服</view>
+			<view class="user-util m-b-5 flex" @click="goto('/pages/user/user-info/user-info',true)">
+				<view class="title">个人信息</view>
+				<view class="right-icon">
+					<uni-icons type="right"></uni-icons>
+				</view>
+			</view>
+			<view class="user-util m-t-12 flex" @click="goto('/sub_pages/farmer/farmer-info/farmer-info',true)">
+				<view class="title">店铺信息</view>
+				<view class="right-icon">
+					<uni-icons type="right"></uni-icons>
+				</view>
+			</view>
+			<view class="user-util m-t-12 flex" @click="goto('/pages/user/user-pwd/user-pwd',true)">
+				<view class="title">修改密码</view>
+				<view class="right-icon">
+					<uni-icons type="right"></uni-icons>
+				</view>
+			</view>
+			<view class="user-util m-t-12 " @click="callTel">
+				<view class="title">我的客服</view>
 				<view class="flex">
 					<image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image>
 					<view class="name">
-						客服电话: <span class="topic-gray">1386785374</span>
+						客服电话: <span class="topic-gray">{{tel}}</span>
 					</view>
 				</view>
 			</view>
 		</view>
 
 
-		<view class="button-login-ou topic-gray" @click="clearlogout">
+		<view class="button-login-out topic-gray" @click="clearlogout">
 			退出登录
 		</view>
 
@@ -62,7 +75,7 @@
 				tcode: '',
 				inviterName: '',
 				// StatusBar:0,
-
+				tel:'1386785374'
 			};
 		},
  
@@ -83,7 +96,12 @@
 					url: '/pages/login/farmer-login'
 				})
 			},
-		
+			async callTel(){
+				await this.$message.confirm('是否拨打客服电话')
+				uni.makePhoneCall({
+					phoneNumber: this.tel //仅为示例
+				});
+			}
 
 	
 		}

--
Gitblit v1.9.3