|
|
|
@ -101,16 +101,18 @@ Page({ |
|
|
|
rearchStringList.splice(0, 0, this.data.form.searchKey) |
|
|
|
} |
|
|
|
if(rearchStringList.length > 24){ |
|
|
|
rearchStringList = rearchStringList.slice(0, 24) |
|
|
|
rearchStringList.slice(0, 24) |
|
|
|
} |
|
|
|
var searchList = [] |
|
|
|
if(this.data.keyIndex == 0 && rearchStringList.length > limit){ |
|
|
|
this.data.keyIndex = 1 |
|
|
|
searchList = rearchStringList.slice(0, limit) |
|
|
|
} else if(this.data.keyIndex == 1){ |
|
|
|
} else if(this.data.keyIndex == 1 && rearchStringList.length > limit){ |
|
|
|
searchList = rearchStringList.slice(0, limit) |
|
|
|
} else if(this.data.keyIndex == 2){ |
|
|
|
searchList = rearchStringList |
|
|
|
} else { |
|
|
|
searchList = rearchStringList |
|
|
|
} |
|
|
|
this.data.form.pageNum = 1 |
|
|
|
this.setData({ taskList: [], loading: true, finished: false, searchList, keyIndex: this.data.keyIndex, focus: false, ['form.searchKey']: detail.value }) |
|
|
|
|