|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
<view class="content1">
|
|
<view class="content1">
|
|
- <u-search placeholder="搜索用户名称" v-model="keyword" :show-action='false' bg-color="#F5F6FA"></u-search>
|
|
|
|
|
|
+ <u-search placeholder="搜索用户名称" v-model="keyword" :show-action='false' @search='keywordsearch' bg-color="#F5F6FA"></u-search>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" top="0" @down="downCallback" :up="upOption"
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" top="0" @down="downCallback" :up="upOption"
|
|
@@ -59,6 +59,7 @@
|
|
inputStyle: {
|
|
inputStyle: {
|
|
// "padding-left": '30rpx'
|
|
// "padding-left": '30rpx'
|
|
},
|
|
},
|
|
|
|
+ selectType:'',
|
|
upOption: {
|
|
upOption: {
|
|
// page: {
|
|
// page: {
|
|
// num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
|
|
// num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
|
|
@@ -84,7 +85,9 @@
|
|
console.log("userInfo", userInfo)
|
|
console.log("userInfo", userInfo)
|
|
|
|
|
|
},
|
|
},
|
|
- onLoad(options) {},
|
|
|
|
|
|
+ onLoad(options) {
|
|
|
|
+ this.selectType=options.selectType
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
@@ -119,6 +122,10 @@
|
|
url: 'release'
|
|
url: 'release'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ keywordsearch(e){
|
|
|
|
+ this.keyword=e
|
|
|
|
+ this.upCallback({size:10,num:1})
|
|
|
|
+ },
|
|
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
|
|
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
|
|
upCallback(page) {
|
|
upCallback(page) {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -137,6 +144,7 @@
|
|
placeDelivery: this.selectPlace,
|
|
placeDelivery: this.selectPlace,
|
|
tranType: this.selectType,
|
|
tranType: this.selectType,
|
|
userIdFollow: this.userInfo.id,
|
|
userIdFollow: this.userInfo.id,
|
|
|
|
+ followedId:this.keyword,
|
|
nowUserId: this.userInfo.id
|
|
nowUserId: this.userInfo.id
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|