|
|
@ -25,7 +25,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="offset > total" style="text-align: center;">----------------底线----------------</view> |
|
|
|
<view v-if="offset >= total" style="text-align: center;">----------------底线----------------</view> |
|
|
|
</scroll-view> |
|
|
|
<uni-fab :pattern="pattern" :content="content" horizontal="right" vertical="bottom" direction="vertical" @trigger="trigger"></uni-fab> |
|
|
|
</view> |
|
|
@ -116,8 +116,6 @@ export default { |
|
|
|
}, |
|
|
|
isRefresh(){ |
|
|
|
setTimeout(() => { |
|
|
|
this.offset = 0 |
|
|
|
this.pageNum = 1 |
|
|
|
this.search(false) |
|
|
|
uni.showToast({ |
|
|
|
icon: 'success', |
|
|
@ -128,11 +126,13 @@ export default { |
|
|
|
}, |
|
|
|
setSearch(val) { |
|
|
|
this.query = val |
|
|
|
this.offset = 0 |
|
|
|
this.pageNum = 1 |
|
|
|
this.search(false) |
|
|
|
}, |
|
|
|
search(isAppend){ |
|
|
|
if(!isAppend){ |
|
|
|
this.offset = 0 |
|
|
|
this.pageNum = 1 |
|
|
|
} |
|
|
|
this.fetchDeviceList(this.query,this.limit,this.offset,isAppend) |
|
|
|
this.pageNum ++ |
|
|
|
this.offset = (this.pageNum - 1) * this.limit |
|
|
|