|
@@ -2,7 +2,7 @@
|
|
|
<view class="container operator clearfix">
|
|
|
<view class="operator-top clearfix">
|
|
|
<view class="operator-title">
|
|
|
- <view class="head"><image :src="clubImage == null ? 'https://static.caimei365.com/app/img/icon/icon-club@3x.png' : clubImage" mode=""></image></view>
|
|
|
+ <view class="head"><image :src="clubImage" mode=""></image></view>
|
|
|
<view class="title">{{clubName}}</view>
|
|
|
</view>
|
|
|
<view class="operator-search">
|
|
@@ -83,8 +83,8 @@
|
|
|
|
|
|
<script>
|
|
|
import authorize from '@/common/config/authorize.js'
|
|
|
- import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
|
|
|
- import tuiNomore from "@/components/tui-components/nomore/nomore"
|
|
|
+ import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
|
|
|
+ import tuiNomore from '@/components/tui-components/nomore/nomore'
|
|
|
export default {
|
|
|
components:{
|
|
|
tuiLoadmore,
|
|
@@ -125,19 +125,19 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
|
- this.setScrollHeight();
|
|
|
+ this.setScrollHeight()
|
|
|
},
|
|
|
methods: {
|
|
|
setScrollHeight() {
|
|
|
// 窗口高度 - 底部距离
|
|
|
setTimeout(()=> {
|
|
|
- const query = wx.createSelectorQuery().in(this);
|
|
|
- query.selectAll('.add-btn').boundingClientRect();
|
|
|
+ const query = wx.createSelectorQuery().in(this)
|
|
|
+ query.selectAll('.add-btn').boundingClientRect()
|
|
|
query.exec(res => {
|
|
|
if(res[0][0]){
|
|
|
let winHeight = this.$api.getWindowHeight(),
|
|
|
- eleTop = res[0][0].top - 1;
|
|
|
- this.scrollHeight = eleTop;
|
|
|
+ eleTop = res[0][0].top - 1
|
|
|
+ this.scrollHeight = eleTop
|
|
|
}
|
|
|
})
|
|
|
}, 500)
|
|
@@ -153,8 +153,8 @@
|
|
|
this.isEmpty = false
|
|
|
this.hasNextPage = response.data.hasNextPage
|
|
|
this.operatorList =responseData.results
|
|
|
- this.pullFlag = false;
|
|
|
- setTimeout(()=>{this.pullFlag = true;},500)
|
|
|
+ this.pullFlag = false
|
|
|
+ setTimeout(()=>{this.pullFlag = true},500)
|
|
|
if(this.hasNextPage){
|
|
|
this.pullUpOn = false
|
|
|
this.nomoreText = '上拉显示更多'
|
|
@@ -177,8 +177,8 @@
|
|
|
if(responseData.results&&responseData.results.length > 0){
|
|
|
this.hasNextPage = response.data.hasNextPage
|
|
|
this.operatorList = this.operatorList.concat(responseData.results)
|
|
|
- this.pullFlag = false;// 防上拉暴滑
|
|
|
- setTimeout(()=>{this.pullFlag = true;},500)
|
|
|
+ this.pullFlag = false// 防上拉暴滑
|
|
|
+ setTimeout(()=>{this.pullFlag = true},500)
|
|
|
if(this.hasNextPage){
|
|
|
this.pullUpOn = false
|
|
|
this.nomoreText = '上拉显示更多'
|
|
@@ -292,10 +292,10 @@
|
|
|
onShow() {
|
|
|
this.$api.getComStorage('clubInfo').then((resolve) =>{
|
|
|
this.clubName = resolve.name
|
|
|
- this.clubImage = resolve.image ? resolve.image : ''
|
|
|
+ this.clubImage = resolve.image ? resolve.image : 'https://static.caimei365.com/app/img/icon/icon-club@3x.png'
|
|
|
this.listQuery.userId = resolve.userId
|
|
|
- this.listQuery.pageNum = 1;
|
|
|
- this.InitOperatorList();
|
|
|
+ this.listQuery.pageNum = 1
|
|
|
+ this.InitOperatorList()
|
|
|
})
|
|
|
}
|
|
|
}
|