|
@@ -135,7 +135,9 @@ Page({
|
|
|
console.log(item)
|
|
|
// @todo 给学校赋值,并且关闭输入框
|
|
|
this.setData({
|
|
|
- showSchool:false
|
|
|
+ showSchool:false,
|
|
|
+ 'form.school': item.id,
|
|
|
+ 'form.schoolName': item.schoolName
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -164,6 +166,8 @@ Page({
|
|
|
|
|
|
submit (e) {
|
|
|
let {actualName,sex,birthday,area,grade,other,school} = this.data.form
|
|
|
+ console.log(this.data.form);
|
|
|
+
|
|
|
let {sortList} = this.data
|
|
|
this.setData({
|
|
|
jgList: sortList.map(item => !!this.data.form[item.name])
|