|
|
@@ -15,12 +15,15 @@
|
|
|
components:{myTabs,myUnit},
|
|
|
data() {
|
|
|
return {
|
|
|
+ initIndex:0,
|
|
|
pageNo: 1,
|
|
|
pageSize: 10
|
|
|
}
|
|
|
},
|
|
|
- onLoad(){
|
|
|
- this.refresh();
|
|
|
+ onShow(){
|
|
|
+ let option = uni.getStorageSync('option');
|
|
|
+ this.initIndex = option.initIndex;
|
|
|
+ this.refresh();
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
|
@@ -100,6 +103,7 @@
|
|
|
*/
|
|
|
tapChange(val){
|
|
|
this.initIndex=val;
|
|
|
+ uni.setStorageSync('option',{initIndex:val, val:'switchTab'})
|
|
|
this.page = 1;
|
|
|
this.getList(this.page,this.__pulldone)
|
|
|
}
|