12345678910111213141516171819202122232425262728293031 |
- 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
- })
- },
- loadMore() {
- if (!this.data.text) {
- return
- }
- this.getData(getOtherUser, {
- query: this.data.text,
- })
- },
- onReachBottom() {
- this.loadMore()
- }
- })
|