|
|
|
@ -44,10 +44,11 @@
|
|
|
|
|
:custom-style="{padding:'0 26rpx',boxSizing:'border-box'}" |
|
|
|
|
> |
|
|
|
|
<u-list-item |
|
|
|
|
v-for="(item, index) in lists[this.current-1]" |
|
|
|
|
v-for="(item, index) in lists[this.current]" |
|
|
|
|
:key="index" |
|
|
|
|
> |
|
|
|
|
<u-cell |
|
|
|
|
v-for="(item, index) in lists[this.current]" |
|
|
|
|
:title="item.describe" |
|
|
|
|
:label="item.create_time" |
|
|
|
|
:icon="staticImage.bg" |
|
|
|
@ -153,12 +154,6 @@ export default {
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
url: '/pages/ChatDetail/index?id=' + item.id |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
checkSection(index) { |
|
|
|
|
this.current = edit; |
|
|
|
|
}, |
|
|
|
|
scrollToLower() { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
getBalance() { |
|
|
|
|
cronBalance().then((res) => { |
|
|
|
@ -166,29 +161,31 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getCron(nextPage = false,index = 1) { |
|
|
|
|
if (this.end[this.current - 1]) { |
|
|
|
|
if (this.end[index]) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cronList({ |
|
|
|
|
type: index, |
|
|
|
|
limit: 10, |
|
|
|
|
page: this.page[this.current - 1], |
|
|
|
|
page: this.page[index], |
|
|
|
|
}).then((res) => { |
|
|
|
|
this.lists[this.current-1] = this.lists[this.current-1].concat(res.data) |
|
|
|
|
this.lists[index] = this.lists[index].concat(res.data) |
|
|
|
|
if (res.data.length === 0) { |
|
|
|
|
this.end[this.current - 1] = true; |
|
|
|
|
this.end[index] = true; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
if (nextPage) { |
|
|
|
|
this.page[this.current - 1]++; |
|
|
|
|
this.page[index]++; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
tabChange(e) { |
|
|
|
|
console.log(e) |
|
|
|
|
this.page[e.index] = 1; |
|
|
|
|
this.end[e.index] = false; |
|
|
|
|
this.lists = [[],[]]; |
|
|
|
|
this.getCron(true,e.index+1); |
|
|
|
|
this.current = index; |
|
|
|
|
this.getCron(true,e.index); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
options: { |
|
|
|
|