Commit 2ee9ec53 authored by liwei's avatar liwei

修改了编辑用户详情接口

parent 4786ada1
......@@ -27,10 +27,9 @@ export function userDetail(data){
*/
export function updateUser(data){
let openId = data.openId
return request({
method: "put",
url: '/app/memInfo/update/'+ openId,
url: '/app/memInfo/update',
data: data,
});
}
......
......@@ -63,22 +63,22 @@
var that = this;
if (that.type == 1) {
var data = {
openId: uni.getStorageSync('userInfo').wxOpenid,
wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memIntroduce: that.value
};
} else if (that.type == 2) {
var data = {
openId: uni.getStorageSync('userInfo').wxOpenid,
wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memHobby: that.value
};
} else if (that.type == 3) {
var data = {
openId: uni.getStorageSync('userInfo').wxOpenid,
wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memHalfDesire: that.value
};
} else if (that.type == 4) {
var data = {
openId: uni.getStorageSync('userInfo').wxOpenid,
wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
memFuturePlan: that.value
};
}
......@@ -139,4 +139,4 @@
left: 68rpx;
text-align: center;
}
</style>
\ No newline at end of file
</style>
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