From d9a780fa538cb7a83aefa04e75cb53185d690d7d Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期五, 30 五月 2025 16:39:07 +0800
Subject: [PATCH] 微封装

---
 sub-pages/mine/index.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/sub-pages/mine/index.vue b/sub-pages/mine/index.vue
index 6b913e7..977b58d 100644
--- a/sub-pages/mine/index.vue
+++ b/sub-pages/mine/index.vue
@@ -27,7 +27,7 @@
           </view>
         </view>
 
-        <view class="edit-profile">点击这里,填写简介</view>
+        <view class="edit-profile" @click="goToProfile">点击这里,填写简介</view>
 
         <view class="stats">
           <view class="stat-row">
@@ -113,10 +113,8 @@
 )
 
 onShow(() => {
-  console.log('我的')
   getLocation()
 });
-
 
 
 // 当前 tab 索引
@@ -151,17 +149,22 @@
 });
 
 // 方法定义
-function onSettingClick() {
+const onSettingClick= ()=> {
   settingShow.value = true;
 }
 
-function onTabChange(item: { index: number }) {
+const onTabChange=(item: { index: number })=> {
   current.value = item.index;
 }
 
-function onSwiperChange(e: any) {
+const onSwiperChange=(e: any) => {
   current.value = e.detail.current;
 }
+
+
+const goToProfile=  ()=> {
+  navigateTo('/profile');
+}
 </script>
 
 

--
Gitblit v1.9.3