tj
2025-05-30 d9a780fa538cb7a83aefa04e75cb53185d690d7d
sub-pages/mine/index.vue
@@ -12,8 +12,8 @@
      <view class="profile-content">
        <view class="profile-header">
          <view class="avatar-container">
            <image v-if="userStore.userInfo.customerDTO.cover" class="avatar"
              :src="userStore.userInfo.customerDTO.cover" mode="aspectFill" />
            <image v-if="userStore?.userInfo?.customerDTO?.cover" class="avatar"
              :src="userStore?.userInfo?.customerDTO?.cover" mode="aspectFill" />
            <image v-else class="avatar"
              src="https://ai-public.mastergo.com/ai/img_res/e8ae645c666c247b895b488e60b048f5.jpg" mode="aspectFill" />
            <view class="add-icon">
@@ -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>