| | |
| | | <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"> |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="edit-profile">点击这里,填写简介</view> |
| | | <view class="edit-profile" @click="goToProfile">点击这里,填写简介</view> |
| | | |
| | | <view class="stats"> |
| | | <view class="stat-row"> |
| | |
| | | ) |
| | | |
| | | onShow(() => { |
| | | console.log('我的') |
| | | getLocation() |
| | | }); |
| | | |
| | | |
| | | |
| | | // 当前 tab 索引 |
| | |
| | | }); |
| | | |
| | | // 方法定义 |
| | | 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> |
| | | |
| | | |