|
|
@@ -50,21 +50,31 @@
|
|
|
|
|
|
};
|
|
|
},
|
|
|
- onLoad() {
|
|
|
+ onLoad(e) {
|
|
|
+
|
|
|
let sysInfo = uni.getSystemInfoSync()
|
|
|
this.windowHeight =sysInfo.windowHeight-44+'px'//除标题栏栏外的屏幕可用高度
|
|
|
|
|
|
},
|
|
|
+ onShow(){
|
|
|
+ //退款成功后,刷新列表监听事件
|
|
|
+ uni.$off('rechargeRecordDownCallback')
|
|
|
+ uni.$on('rechargeRecordDownCallback',this.downCallback)
|
|
|
+ },
|
|
|
methods: {
|
|
|
|
|
|
+ downCallback(){
|
|
|
+ this.$refs.MescrollItem[this.tabIndex].downCallback()
|
|
|
+ },
|
|
|
+
|
|
|
clickTab(e){
|
|
|
this.tabIndex = e.index
|
|
|
},
|
|
|
swiperChange(e){
|
|
|
this.tabIndex = e.detail.current
|
|
|
- // if (this.$refs.MescrollItem[e.detail.current].orderList.length>0){
|
|
|
- // this.$refs.MescrollItem[e.detail.current].downCallback()
|
|
|
- // }
|
|
|
+ if (this.$refs.MescrollItem[e.detail.current].list.length>0){
|
|
|
+ this.$refs.MescrollItem[e.detail.current].downCallback()
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
|