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