|
@@ -182,7 +182,7 @@ Page({
|
|
|
posttext: '',
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
incomeListChange: function (e) {
|
|
|
this.setData({
|
|
|
incomeindex: e.detail.value,
|
|
@@ -303,6 +303,46 @@ Page({
|
|
|
item.checked = true;
|
|
|
}
|
|
|
})
|
|
|
+ // 赋值问题
|
|
|
+ // let jonIndex = this.data.postList.findIndex(item => {
|
|
|
+ // return item.name == res.data.data.job
|
|
|
+ // })
|
|
|
+ // if (jonIndex != -1) {
|
|
|
+ // this.setData({
|
|
|
+ // posttext: '',
|
|
|
+ // postindex: jonIndex,
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // this.setData({
|
|
|
+ // posttext: '请选择',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // let incomeindex = this.data.incomeList.findIndex(item => {
|
|
|
+ // return item.name == res.data.data.income
|
|
|
+ // })
|
|
|
+ // if (incomeindex != -1) {
|
|
|
+ // this.setData({
|
|
|
+ // incometext: '',
|
|
|
+ // incomeindex: incomeindex,
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // this.setData({
|
|
|
+ // incometext: '请选择',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // let educationindex = this.data.educationList.findIndex(item => {
|
|
|
+ // return item.name == res.data.data.education
|
|
|
+ // })
|
|
|
+ // if (educationindex != -1) {
|
|
|
+ // this.setData({
|
|
|
+ // educationindextext: '',
|
|
|
+ // educationindex: educationindex,
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // this.setData({
|
|
|
+ // educationtext: '请选择',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
this.setData({
|
|
|
userName: res.data.data.userName,
|
|
|
parameter: this.data.parameter,
|
|
@@ -312,6 +352,8 @@ Page({
|
|
|
incometext: res.data.data.income,
|
|
|
educationtext: res.data.data.education,
|
|
|
})
|
|
|
+ console.log(this.data.postList, "赋值上了么");
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|