瀏覽代碼

信息修改

1002884655 3 年之前
父節點
當前提交
c104053ad5
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/pages/Mine/MyInfo/index.vue

+ 7
- 0
src/pages/Mine/MyInfo/index.vue 查看文件

@@ -164,6 +164,12 @@ export default {
164 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 175
     SexChange (e) {
@@ -188,6 +194,7 @@ export default {
188 194
                   Data[key] = this.Form[key]
189 195
                 }
190 196
               }
197
+              // console.log(Data)
191 198
               this.PutUserInfo({ data: { data: { ...Data } } }).then((res) => {
192 199
                 this.UpdateStudentInfo({ ...res.data.data })
193 200
                 wx.showToast({