|
@@ -30,7 +30,7 @@
|
|
</template>
|
|
</template>
|
|
</uni-list-item>
|
|
</uni-list-item>
|
|
<uni-load-more :status="data.shuxue.state" @click="getMore(0)"
|
|
<uni-load-more :status="data.shuxue.state" @click="getMore(0)"
|
|
- :contentText="data.shuxue.state_text"></uni-load-more>
|
|
|
|
|
|
+ :contentText="data.shuxue.contentText"></uni-load-more>
|
|
</uni-list>
|
|
</uni-list>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
@@ -56,7 +56,7 @@
|
|
</template>
|
|
</template>
|
|
</uni-list-item>
|
|
</uni-list-item>
|
|
<uni-load-more :status="data.yingyu.state" @click="getMore(1)"
|
|
<uni-load-more :status="data.yingyu.state" @click="getMore(1)"
|
|
- :contentText="data.yingyu.state_text"></uni-load-more>
|
|
|
|
|
|
+ :contentText="data.yingyu.contentText"></uni-load-more>
|
|
</uni-list>
|
|
</uni-list>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
@@ -92,14 +92,23 @@
|
|
list: [],
|
|
list: [],
|
|
loading: false,
|
|
loading: false,
|
|
state: 'more',
|
|
state: 'more',
|
|
- state_text: '加载更多'
|
|
|
|
|
|
+ contentText: {
|
|
|
|
+ contentdown: '查看更多',
|
|
|
|
+ contentrefresh: '加载中',
|
|
|
|
+ contentnomore: '没有更多'
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
yingyu: {
|
|
yingyu: {
|
|
page: 0,
|
|
page: 0,
|
|
list: [],
|
|
list: [],
|
|
loading: false,
|
|
loading: false,
|
|
state: 'more',
|
|
state: 'more',
|
|
- state_text: '加载更多'
|
|
|
|
|
|
+ contentText: {
|
|
|
|
+ contentdown: '查看更多',
|
|
|
|
+ contentrefresh: '加载中',
|
|
|
|
+ contentnomore: '没有更多'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
wrongList: [],
|
|
wrongList: [],
|
|
})
|
|
})
|
|
@@ -158,24 +167,20 @@
|
|
if (res.data.total >= data.shuxue.list.length) {
|
|
if (res.data.total >= data.shuxue.list.length) {
|
|
// 数学
|
|
// 数学
|
|
data.shuxue.state = 'no-more';
|
|
data.shuxue.state = 'no-more';
|
|
- data.shuxue.state_text = '没有更多啦';
|
|
|
|
data.shuxue.loading = false;
|
|
data.shuxue.loading = false;
|
|
} else {
|
|
} else {
|
|
// 数学
|
|
// 数学
|
|
data.shuxue.state = 'more';
|
|
data.shuxue.state = 'more';
|
|
- data.shuxue.state_text = '加载更多';
|
|
|
|
data.shuxue.loading = false;
|
|
data.shuxue.loading = false;
|
|
}
|
|
}
|
|
} else if (code == 1) {
|
|
} else if (code == 1) {
|
|
if (res.data.total >= data.yingyu.list.length) {
|
|
if (res.data.total >= data.yingyu.list.length) {
|
|
// 英语
|
|
// 英语
|
|
data.yingyu.state = 'no-more';
|
|
data.yingyu.state = 'no-more';
|
|
- data.yingyu.state_text = '没有更多啦';
|
|
|
|
data.yingyu.loading = false;
|
|
data.yingyu.loading = false;
|
|
} else {
|
|
} else {
|
|
// 英语
|
|
// 英语
|
|
data.yingyu.state = 'more';
|
|
data.yingyu.state = 'more';
|
|
- data.yingyu.state_text = '加载更多';
|
|
|
|
data.yingyu.loading = false;
|
|
data.yingyu.loading = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -183,12 +188,10 @@
|
|
if (code == 0) {
|
|
if (code == 0) {
|
|
// 数学
|
|
// 数学
|
|
data.shuxue.state = 'more';
|
|
data.shuxue.state = 'more';
|
|
- data.shuxue.state_text = '加载更多';
|
|
|
|
data.shuxue.loading = false;
|
|
data.shuxue.loading = false;
|
|
} else if (code == 1) {
|
|
} else if (code == 1) {
|
|
// 英语
|
|
// 英语
|
|
data.yingyu.state = 'more';
|
|
data.yingyu.state = 'more';
|
|
- data.yingyu.state_text = '加载更多';
|
|
|
|
data.yingyu.loading = false;
|
|
data.yingyu.loading = false;
|
|
}
|
|
}
|
|
})
|
|
})
|