|
@@ -10,7 +10,7 @@
|
|
|
</div>
|
|
|
</block>
|
|
|
</div>
|
|
|
- <list class="consume-wrap">
|
|
|
+ <list class="consume-wrap" id="consume">
|
|
|
<block if="curTab === 0">
|
|
|
<block for="{{chapter.list}}">
|
|
|
<list-item type="chapter" class="consume-item">
|
|
@@ -76,6 +76,9 @@ export default {
|
|
|
let pages = { total: meta.last_page, current: meta.current_page };
|
|
|
this.chapter = { ...this.chapter, list, page: pages };
|
|
|
this.currentPage = pages;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.$element('consume').scrollTo({ index: 1 })
|
|
|
+ },500)
|
|
|
},
|
|
|
async getOrderBook(page = 1, page_size = 10) {
|
|
|
let res = await bookApi({ page: page, page_size });
|
|
@@ -83,6 +86,9 @@ export default {
|
|
|
let pages = { total: meta.last_page, current: meta.current_page };
|
|
|
this.book = { ...this.book, list, page: pages };
|
|
|
this.currentPage = pages;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.$element('consume').scrollTo({ index: 1 })
|
|
|
+ },500)
|
|
|
},
|
|
|
tabChange(index) {
|
|
|
this.curTab = index;
|