|
@@ -47,9 +47,11 @@ Page({
|
|
},
|
|
},
|
|
formSubmit: function(e){
|
|
formSubmit: function(e){
|
|
let { nickname, picker, radioGroup1, radioGroup2, address } = e.detail.value;
|
|
let { nickname, picker, radioGroup1, radioGroup2, address } = e.detail.value;
|
|
- let uid = 1, wechatName = nickname, mobile = '13994969642', gender = 3, schoolProvince = 11, schoolCity = '运城市', schoolName = '康杰中学', profession = radioGroup2, birthday = picker;
|
|
|
|
- httpRequestApi.settingUserInfo(uid, wechatName, mobile, gender, schoolProvince, schoolCity, schoolName, profession, birthday).success(res => {
|
|
|
|
|
|
+ console.log(nickname);
|
|
|
|
+ let wechatName = nickname, mobile = '18295785982', gender = 3, schoolProvince = 11, schoolCity = '运城市', schoolName = '康杰中学', profession = radioGroup2, birthday = picker;
|
|
|
|
+ httpRequestApi.settingUserInfo(wechatName, mobile, gender, schoolProvince, schoolCity, schoolName, profession, birthday).success(res => {
|
|
console.log(res.data.data.wechatName);//修改资料成功后 调用 getUserInfo
|
|
console.log(res.data.data.wechatName);//修改资料成功后 调用 getUserInfo
|
|
|
|
+
|
|
wx.redirectTo({
|
|
wx.redirectTo({
|
|
url: '/pages/index/index?index=3'
|
|
url: '/pages/index/index?index=3'
|
|
});
|
|
});
|