|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
<view class="content1">
|
|
|
- <u-search placeholder="搜索用户名称" v-model="keyword" :show-action='false' @search='keywordsearch' bg-color="#F5F6FA"></u-search>
|
|
|
+ <u-search placeholder="搜索用户名称" v-model="keyword" :show-action='false' @search='keywordsearch'
|
|
|
+ bg-color="#F5F6FA"></u-search>
|
|
|
</view>
|
|
|
|
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" top="0" @down="downCallback" :up="upOption"
|
|
@@ -59,7 +60,7 @@
|
|
|
inputStyle: {
|
|
|
// "padding-left": '30rpx'
|
|
|
},
|
|
|
- selectType:'',
|
|
|
+ selectType: '',
|
|
|
upOption: {
|
|
|
// page: {
|
|
|
// num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
|
|
@@ -86,7 +87,7 @@
|
|
|
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- this.selectType=options.selectType
|
|
|
+ this.selectType = options.selectType
|
|
|
},
|
|
|
|
|
|
|
|
@@ -122,9 +123,12 @@
|
|
|
url: 'release'
|
|
|
})
|
|
|
},
|
|
|
- keywordsearch(e){
|
|
|
- this.keyword=e
|
|
|
- this.upCallback({size:10,num:1})
|
|
|
+ keywordsearch(e) {
|
|
|
+ this.keyword = e
|
|
|
+ this.upCallback({
|
|
|
+ size: 10,
|
|
|
+ num: 1
|
|
|
+ })
|
|
|
},
|
|
|
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
|
|
|
upCallback(page) {
|
|
@@ -137,23 +141,23 @@
|
|
|
let _obj = {
|
|
|
|
|
|
}
|
|
|
- if (this.selectType == '关注') {
|
|
|
- _obj = {
|
|
|
- pageSize: page.size,
|
|
|
- currentPage: page.num,
|
|
|
- placeDelivery: this.selectPlace,
|
|
|
- tranType: this.selectType,
|
|
|
- userIdFollow: this.userInfo.id,
|
|
|
- followedId:this.keyword,
|
|
|
- nowUserId: this.userInfo.id
|
|
|
- }
|
|
|
- } else {
|
|
|
- _obj = {
|
|
|
- pageSize: page.size,
|
|
|
- currentPage: page.num,
|
|
|
- userId: this.userInfo.id,
|
|
|
- }
|
|
|
+ // if (this.selectType == '关注') {
|
|
|
+ // _obj = {
|
|
|
+ // pageSize: page.size,
|
|
|
+ // currentPage: page.num,
|
|
|
+ // placeDelivery: this.selectPlace,
|
|
|
+ // tranType: this.selectType,
|
|
|
+ // userIdFollow: this.userInfo.id,
|
|
|
+ // followedId: this.keyword,
|
|
|
+ // nowUserId: this.userInfo.id
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ _obj = {
|
|
|
+ pageSize: page.size,
|
|
|
+ currentPage: page.num,
|
|
|
+ userId: this.userInfo.id,
|
|
|
}
|
|
|
+ // }
|
|
|
this.$api.doRequest('get', '/followInformation/getInfo', _obj).then(res => {
|
|
|
console.log(res.data.data.records)
|
|
|
if (res.data.code == 200) {
|