1002884655 3 år sedan
förälder
incheckning
c104053ad5
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7
    0
      src/pages/Mine/MyInfo/index.vue

+ 7
- 0
src/pages/Mine/MyInfo/index.vue Visa fil

164
             this.Form[key] = this.Student[key]
164
             this.Form[key] = this.Student[key]
165
           }
165
           }
166
         }
166
         }
167
+        this.SexList.map((item, index) => {
168
+          if (item.id === this.Student.sex) {
169
+            this.SexIndex = index
170
+          }
171
+        })
172
+        this.Form.sex = this.Student.sex
167
       }
173
       }
168
     },
174
     },
169
     SexChange (e) {
175
     SexChange (e) {
188
                   Data[key] = this.Form[key]
194
                   Data[key] = this.Form[key]
189
                 }
195
                 }
190
               }
196
               }
197
+              // console.log(Data)
191
               this.PutUserInfo({ data: { data: { ...Data } } }).then((res) => {
198
               this.PutUserInfo({ data: { data: { ...Data } } }).then((res) => {
192
                 this.UpdateStudentInfo({ ...res.data.data })
199
                 this.UpdateStudentInfo({ ...res.data.data })
193
                 wx.showToast({
200
                 wx.showToast({