| | |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="edit-profile">点击这里,填写简介</view> |
| | | <view class="edit-profile" >点击这里,填写简介</view> |
| | | |
| | | <view class="stats"> |
| | | <view class="stat-row"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="action-buttons"> |
| | | <up-button text="编辑资料" size="mini" type="info" plain hairline |
| | | <up-button text="编辑资料" size="mini" type="info" plain hairline @click="navigateTo('/sub-pages/mine/profile-edit')" |
| | | :custom-style="{ backgroundColor: 'transparent', borderColor: '#B1ABA9' }" /> |
| | | <up-icon name="setting" size="40rpx" @click="gotoUrl('/sub-pages/mine/settings')" /> |
| | | <up-icon name="setting" size="40rpx" @click="navigateTo('/sub-pages/mine/settings')" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | const {getLocation,province } = useLocation() |
| | | |
| | | |
| | | const gotoUrl = (url: string) => { |
| | | navigateTo(url) |
| | | } |
| | | |
| | | watch( |
| | | () => userStore.userInfo, // 监听 userInfo 这个响应式属性 |
| | | (newVal, oldVal) => { |
| | |
| | | ) |
| | | |
| | | 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('/sub-pages/mine/edit-profile'); |
| | | } |
| | | </script> |
| | | |
| | | |