feat: 修改接口报错登出问题,优化切换数据刷新问题
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
</view>
|
||||
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption"
|
||||
:up="upOption" :top="mescrollTop">
|
||||
<flowlist :list='list' :swipeAction='current != 3' :category='category' />
|
||||
<flowlist :list='list' :swipeAction='current != 3' :category='category' :current='current' />
|
||||
</mescroll-body>
|
||||
</view>
|
||||
</template>
|
||||
@@ -76,12 +76,18 @@
|
||||
onShow() {
|
||||
const fromNonTabBar = uni.getStorageSync('fromNonTabBar');
|
||||
console.log(fromNonTabBar,'fromNonTabBar---')
|
||||
this.current = fromNonTabBar && Number(fromNonTabBar)
|
||||
// if(!fromNonTabBar){
|
||||
// this.current = 1
|
||||
// }else {
|
||||
// this.current = 0
|
||||
// }
|
||||
if(fromNonTabBar == ''){
|
||||
this.current = 1
|
||||
this.category = '2'
|
||||
}else {
|
||||
this.current = Number(fromNonTabBar)
|
||||
this.category = Number(fromNonTabBar) + 1+''
|
||||
}
|
||||
const page = {
|
||||
num : 1,
|
||||
size: 20
|
||||
}
|
||||
this.upCallback(page)
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
uni.$off('operate')
|
||||
uni.$on('refresh', () => {
|
||||
@@ -91,6 +97,10 @@
|
||||
},
|
||||
onUnload() {
|
||||
uni.$off('refresh')
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
},
|
||||
onHide() {
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
},
|
||||
methods: {
|
||||
getFlowStatus(status) {
|
||||
|
||||
Reference in New Issue
Block a user