Commit 2ee9ec53 authored by liwei's avatar liwei

修改了编辑用户详情接口

parent 4786ada1
...@@ -27,10 +27,9 @@ export function userDetail(data){ ...@@ -27,10 +27,9 @@ export function userDetail(data){
*/ */
export function updateUser(data){ export function updateUser(data){
let openId = data.openId
return request({ return request({
method: "put", method: "put",
url: '/app/memInfo/update/'+ openId, url: '/app/memInfo/update',
data: data, data: data,
}); });
} }
......
...@@ -63,22 +63,22 @@ ...@@ -63,22 +63,22 @@
var that = this; var that = this;
if (that.type == 1) { if (that.type == 1) {
var data = { var data = {
openId: uni.getStorageSync('userInfo').wxOpenid, wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memIntroduce: that.value memIntroduce: that.value
}; };
} else if (that.type == 2) { } else if (that.type == 2) {
var data = { var data = {
openId: uni.getStorageSync('userInfo').wxOpenid, wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memHobby: that.value memHobby: that.value
}; };
} else if (that.type == 3) { } else if (that.type == 3) {
var data = { var data = {
openId: uni.getStorageSync('userInfo').wxOpenid, wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memHalfDesire: that.value memHalfDesire: that.value
}; };
} else if (that.type == 4) { } else if (that.type == 4) {
var data = { var data = {
openId: uni.getStorageSync('userInfo').wxOpenid, wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memFuturePlan: that.value memFuturePlan: that.value
}; };
} }
...@@ -139,4 +139,4 @@ ...@@ -139,4 +139,4 @@
left: 68rpx; left: 68rpx;
text-align: center; text-align: center;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment