|
@@ -73,8 +73,8 @@
|
|
doUploadImage(e.tempFilePaths[0])
|
|
doUploadImage(e.tempFilePaths[0])
|
|
}
|
|
}
|
|
|
|
|
|
- function genderSelect(data){
|
|
|
|
- data.gender = data;
|
|
|
|
|
|
+ function genderSelect(genderValue){
|
|
|
|
+ data.gender = genderValue;
|
|
}
|
|
}
|
|
|
|
|
|
function doUploadImage(filePath) {
|
|
function doUploadImage(filePath) {
|
|
@@ -151,7 +151,15 @@
|
|
}
|
|
}
|
|
|
|
|
|
function handleUpdate() {
|
|
function handleUpdate() {
|
|
- myApi.getUserUpdate({}).then(res => {
|
|
|
|
|
|
+ const opt = {
|
|
|
|
+ gender: data.gender,
|
|
|
|
+ icon: data.icon,
|
|
|
|
+ idcard: data.idcard,
|
|
|
|
+ realName: data.realName,
|
|
|
|
+ userId: data.userId,
|
|
|
|
+ userName: data.userName,
|
|
|
|
+ }
|
|
|
|
+ myApi.getMineUpdate(opt).then(res => {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '更新成功'
|
|
title: '更新成功'
|