|
@@ -1,7 +1,6 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <u-subsection mode="subsection" :active-color="mainColor" :list="tabList" :current="current"
|
|
|
- @change="tabsChange"></u-subsection>
|
|
|
+ <u-subsection mode="subsection" :active-color="mainColor" :list="tabList" :current="current" @change="tabsChange"></u-subsection>
|
|
|
<swiper :current="swiperCurrent" @animationfinish="animationfinish" class="swiper-box">
|
|
|
<swiper-item class="swiper-item" v-for="(item, index1) in tabList" :key="index1">
|
|
|
<scroll-view scroll-y class="scroll-box" @scrolltolower="handleLoadMore" :refresher-enabled="true"
|
|
@@ -75,11 +74,13 @@
|
|
|
},
|
|
|
// 下拉刷新
|
|
|
onRefresh() {
|
|
|
- this.triggered = true
|
|
|
- this.tabList[this.current].isOver = false
|
|
|
- this.tabList[this.current].pageIndex = 1
|
|
|
- this.tabList[this.current].tableList = []
|
|
|
- this.getTableList(this.current, 'refresh')
|
|
|
+ if (!this.triggered) {
|
|
|
+ this.triggered = true
|
|
|
+ this.tabList[this.current].isOver = false
|
|
|
+ this.tabList[this.current].pageIndex = 1
|
|
|
+ this.tabList[this.current].tableList = []
|
|
|
+ this.getTableList(this.current, 'refresh')
|
|
|
+ }
|
|
|
},
|
|
|
// 重置下拉刷新状态
|
|
|
onRestore() {
|