Browse Source

修改个人信息

lihuilin/feature-20251024095243-我的
lihuilin 3 weeks ago
parent
commit
2b2ff91810
  1. 30
      pages/home/member.vue

30
pages/home/member.vue

@ -1,18 +1,26 @@
<template> <template>
<LoginPrompt ref="loginwPrompt"></LoginPrompt>
<LoginPrompt ref="loginPrompt"></LoginPrompt>
<view class="main"> <view class="main">
<view class="top"> <view class="top">
<!-- <view class="bell">
<image class="image-bell" src="/static/my/bell.png"></image>
</view> -->
<view class="bell">
<!-- <image class="image-bell" src="/static/my/bell.png" /> -->
</view>
<view class="msg"> <view class="msg">
<view class="msg-left"> <view class="msg-left">
<view class="avatar"></view>
<image class="avatar"
:src="avatarUrl || 'https://d31zlh4on95l9h.cloudfront.net/default/1961d9d2e31e78e47e885231e7514a35.png'"
mode="aspectFill" />
</view> </view>
<view class=" msg-center"> <view class=" msg-center">
<view style="display: flex;"> <view style="display: flex;">
<template v-if="!isEditingName">
<view class="userInfo">{{ username }}</view> <view class="userInfo">{{ username }}</view>
<image class="image-editName" src="/static/my/editName.png"></image>
<image class="image-editName" src="/static/my/editName.png" @click="startEditName" />
</template>
<template v-else>
<input v-model="editingName" class="edit-input" @blur="finishEditName"
@keyup.enter="finishEditName" autofocus placeholder="请输入用户名" />
</template>
</view> </view>
<view class="userId">ID:{{ dccode }}</view> <view class="userId">ID:{{ dccode }}</view>
</view> </view>
@ -21,7 +29,6 @@
<span style="font-size:10px;">签到</span> <span style="font-size:10px;">签到</span>
</view> --> </view> -->
</view> </view>
<view class="settings-buttons"> <view class="settings-buttons">
<view class="setting-btn" @click="goToMarket"> <view class="setting-btn" @click="goToMarket">
<image src="/static/my/MarketSettings.png" class="setting-icon" /> <image src="/static/my/MarketSettings.png" class="setting-icon" />
@ -32,7 +39,6 @@
<text>通用设置</text> <text>通用设置</text>
</view> </view>
</view> </view>
<view class="share" @click="goToShare"> <view class="share" @click="goToShare">
<image class="img-share" src="/static/my/share.png" mode="widthFix" /> <image class="img-share" src="/static/my/share.png" mode="widthFix" />
</view> </view>
@ -166,14 +172,6 @@
} }
const goToShare = () => { const goToShare = () => {
console.log('用户信息==========',userStore.userInfo.isVisitor)
if (userStore.userInfo.isVisitor) {
uni.showToast({
title: '请先登录',
icon: 'none'
})
return
}
uni.navigateTo({ uni.navigateTo({
url: '../setting/share' url: '../setting/share'
}) })

Loading…
Cancel
Save