Browse Source

我的页面修改

tanxue 2 tháng trước cách đây
mục cha
commit
e55933c955
1 tập tin đã thay đổi với 11 bổ sung3 xóa
  1. 11 3
      pages/client/my/myInfo.vue

+ 11 - 3
pages/client/my/myInfo.vue

@@ -73,8 +73,8 @@
 		doUploadImage(e.tempFilePaths[0])
 	}
 
-	function genderSelect(data){
-		data.gender = data;
+	function genderSelect(genderValue){
+		data.gender = genderValue;
 	}
 
 	function doUploadImage(filePath) {
@@ -151,7 +151,15 @@
 	}
 
 	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) {
 				uni.showToast({
 					title: '更新成功'