pages/tabbar-page/myPage-tabbar/myPage-tabbar.vue
@@ -24,7 +24,7 @@ freightForwarderMyPage, UnloadMypage }, onShow() { onLoad() { this.init(); }, data() { @@ -35,6 +35,14 @@ return uni.getStorageSync('roleType'); } }, onPullDownRefresh() { if (this.roleType === 3) { this.$nextTick(() => { this.$refs.driverMyRef.init(); uni.stopPullDownRefresh() }) } }, methods: { init() { switch (this.roleType) {