diff --git a/src/pages/userInfo/myself/index.tsx b/src/pages/userInfo/myself/index.tsx index d4ca486..9aacb2d 100644 --- a/src/pages/userInfo/myself/index.tsx +++ b/src/pages/userInfo/myself/index.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import { View, Text, Image, ScrollView, Button } from '@tarojs/components'; import Taro from '@tarojs/taro'; import './index.scss'; - +import GuideBar from '@/components/GuideBar' // 用户信息接口 interface UserInfo { id: string; @@ -47,10 +47,10 @@ const MyselfPage: React.FC = () => { // 获取页面参数 const instance = Taro.getCurrentInstance(); const user_id = instance.router?.params?.userid; - + // 判断是否为当前用户 const is_current_user = !user_id; - + // 模拟用户数据 const [user_info] = useState({ id: '1', @@ -193,13 +193,13 @@ const MyselfPage: React.FC = () => { {/* 只有非当前用户才显示关注按钮 */} {!is_current_user && ( - )} @@ -234,9 +234,9 @@ const MyselfPage: React.FC = () => { - {user_info.location} @@ -254,17 +254,17 @@ const MyselfPage: React.FC = () => { - 球局订单 - 收藏 @@ -291,12 +291,12 @@ const MyselfPage: React.FC = () => { / 星期三 - + {/* 球局卡片 */} {game_records.map((game) => ( - handle_game_detail(game.id)} > @@ -304,9 +304,9 @@ const MyselfPage: React.FC = () => { {game.title} - @@ -330,10 +330,10 @@ const MyselfPage: React.FC = () => { {/* 球局图片 */} {game.images.map((image, index) => ( - ))} @@ -343,10 +343,10 @@ const MyselfPage: React.FC = () => { {game.participants.map((participant, index) => ( - ))} @@ -370,6 +370,7 @@ const MyselfPage: React.FC = () => { + ); };