This commit is contained in:
zmj 2024-06-28 11:50:22 +08:00
parent 2a14ce699b
commit 98727e5824
1 changed files with 7 additions and 5 deletions

View File

@ -143,12 +143,14 @@
<up-popup :show="showPop" @close="showPop=false" @open="showPop=true"> <up-popup :show="showPop" @close="showPop=false" @open="showPop=true">
<view class="popContent"> <view class="popContent">
<view style="text-align: center;font-size: 30rpx;font-weight: bold;"> <view style="text-align: center;font-size: 30rpx;font-weight: bold;">
修改个人信息 修改个人信息{{isFoucs}}
</view> </view>
<up-form labelPosition="left">
<up-form-item label="呢称" prop="userInfo.name" borderBottom ref="item1">
<up-input v-model="formData.nick_name" border="none" placeholder="请输入个人呢称"></up-input> <up-input v-model="formData.nick_name" border="none" placeholder="请输入个人呢称"></up-input>
</up-form-item> <up-form labelPosition="left">
<!-- <up-form-item label="呢称" prop="userInfo.name" borderBottom ref="item1">
<up-input :cursorSpacing='1100' v-model="formData.nick_name" border="none"
placeholder="请输入个人呢称"></up-input>
</up-form-item> -->
<up-form-item label="头像" prop="userInfo.sex" borderBottom ref="item1"> <up-form-item label="头像" prop="userInfo.sex" borderBottom ref="item1">
<up-image :src="formData.avatar" width="80px" height="80px" @click="uploadAvatar"></up-image> <up-image :src="formData.avatar" width="80px" height="80px" @click="uploadAvatar"></up-image>
</up-form-item> </up-form-item>
@ -190,7 +192,7 @@
config config
} from "@/config/app.js" } from "@/config/app.js"
let isFoucs = ref(false);
const userStore = useUserStore(); const userStore = useUserStore();
const userInfo = ref({}); const userInfo = ref({});
let token = uni.getStorageSync('token') || '' let token = uni.getStorageSync('token') || ''