import { getOtherUser } from '~/api/user' import reachBottom from '~/mixins/reachBottom' Page({ behaviors: [reachBottom], data: { text: '' }, onLoad(options) { list: [] }, setSearch({ detail }) { this.setData({ text: detail.value }) }, async search() { if (!this.data.text) { return } let list = await getOtherUser({ query: this.data.text, pageNo: 1, pageSize: 20 }) console.log(list); /* this.setData({ list }) */ }, loadMore() { this.getData(getSelfRead) }, })