|
@@ -324,54 +324,54 @@ Page({
|
|
item.checked = true;
|
|
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: '请选择',
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
|
|
+ //赋值问题
|
|
|
|
+ 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({
|
|
this.setData({
|
|
userName: res.data.data.userName,
|
|
userName: res.data.data.userName,
|
|
parameter: this.data.parameter,
|
|
parameter: this.data.parameter,
|
|
idCardNumber: res.data.data.idCardNumber,
|
|
idCardNumber: res.data.data.idCardNumber,
|
|
age: res.data.data.age,
|
|
age: res.data.data.age,
|
|
- posttext: res.data.data.job,
|
|
|
|
- incometext: res.data.data.income,
|
|
|
|
- educationtext: res.data.data.education,
|
|
|
|
|
|
+ // posttext: res.data.data.job,
|
|
|
|
+ // incometext: res.data.data.income,
|
|
|
|
+ // educationtext: res.data.data.education,
|
|
})
|
|
})
|
|
console.log(this.data.postList, "赋值上了么");
|
|
console.log(this.data.postList, "赋值上了么");
|
|
|
|
|