dongyuan0658 преди 6 години
родител
ревизия
e14aad05af
променени са 2 файла, в които са добавени 7 реда и са изтрити 4 реда
  1. 3 2
      component/my/my.js
  2. 4 2
      pages/user/myEdit/myEdit.js

+ 3 - 2
component/my/my.js

@@ -1,3 +1,4 @@
+import APIClient from '../../utils/APIClient.js'
 export const myInit =  (that) => {
   that.setData({
     myData: {
@@ -59,9 +60,9 @@ export const myInit =  (that) => {
     wx.navigateTo({
       url: `../../pages/groupPage/my-group/my-group?title=${title}`
     });
-      debugger
+      // debugger
       APIClient.myWallet().success(res => {
-          debugger
+          // debugger
           console.log(res.data.data.data);
       });
   },

+ 4 - 2
pages/user/myEdit/myEdit.js

@@ -47,9 +47,11 @@ Page({
   },
   formSubmit: function(e){
     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
+      
         wx.redirectTo({
             url: '/pages/index/index?index=3'
         });