|
@@ -8,7 +8,7 @@
|
|
:refresher-triggered="triggered" :refresher-threshold="100" refresher-background="white" @refresherrefresh="onRefresh"
|
|
:refresher-triggered="triggered" :refresher-threshold="100" refresher-background="white" @refresherrefresh="onRefresh"
|
|
@refresherrestore="onRestore">
|
|
@refresherrestore="onRestore">
|
|
<u-card :show-head="false" :show-foot="false" padding="0px" margin="10px" borderRadius="40" v-for="(site, index2) in item.tableList"
|
|
<u-card :show-head="false" :show-foot="false" padding="0px" margin="10px" borderRadius="40" v-for="(site, index2) in item.tableList"
|
|
- :key="index" class="class-card" @click="goToMyClass(site)">
|
|
|
|
|
|
+ :key="index" class="class-card">
|
|
<view class="class-content" slot="body">
|
|
<view class="class-content" slot="body">
|
|
<view class="class-info-img">
|
|
<view class="class-info-img">
|
|
<u-image width="60px" height="60px" :src="site.url" shape="circle"></u-image>
|
|
<u-image width="60px" height="60px" :src="site.url" shape="circle"></u-image>
|
|
@@ -92,11 +92,13 @@
|
|
},
|
|
},
|
|
// 下拉刷新
|
|
// 下拉刷新
|
|
onRefresh() {
|
|
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() {
|
|
onRestore() {
|