|
@@ -381,6 +381,11 @@
|
381
|
381
|
// 点击tab
|
382
|
382
|
function clickTab(tabId){
|
383
|
383
|
dataInfo.tabActiveId = tabId;
|
|
384
|
+ uni.pageScrollTo({
|
|
385
|
+ scrollTop: 0,
|
|
386
|
+ duration: 300 // 动画时长,默认300ms
|
|
387
|
+ });
|
|
388
|
+ dataInfo.idx=0
|
384
|
389
|
getList(0);
|
385
|
390
|
}
|
386
|
391
|
|
|
@@ -928,6 +933,15 @@
|
928
|
933
|
|
929
|
934
|
})
|
930
|
935
|
|
|
936
|
+ onReachBottom(() => {
|
|
937
|
+ if(tabsIndex0.value==1){
|
|
938
|
+ dataInfo.idx += 1;
|
|
939
|
+ if (dataInfo.hasMore) {
|
|
940
|
+ getList(); // 当触底时加载更多数据
|
|
941
|
+ }
|
|
942
|
+ }
|
|
943
|
+ })
|
|
944
|
+
|
931
|
945
|
onPullDownRefresh(_=>{
|
932
|
946
|
// uni.stopPullDownRefresh();
|
933
|
947
|
})
|