版本更新跳转

This commit is contained in:
2020-08-25 12:06:37 +08:00
parent 3d4ee2bd4c
commit 1aee3f3320
3 changed files with 12 additions and 3 deletions

View File

@@ -18,10 +18,13 @@
2. 新增Modal模态框组件<br>
3. 新增压窗屏组件可以在APP上以弹窗的形式遮盖导航栏和底部tabbar<br>
`,
isAutoUpdate: false,
}
},
onLoad(option) {
this.is_focus_upgrade = option.status == 1 ? false : true;
// type manual 从检查更新页面过来 auto 从app过来
this.isAutoUpdate = option.type == 'manual' ? false : true;
},
onReady() {
this.show = true;
@@ -45,7 +48,11 @@
// #endif
},
closeModal() {
uni.navigateBack();
if(isAutoUpdate) {
this.$u.route('/pageA/login/login');
} else {
uni.navigateBack();
}
}
}
}

View File

@@ -49,7 +49,8 @@ export default {
},
updateVersion() {
this.$u.route('/pageE/setting/updateVersion', {
status: this.status
status: this.status,
type: 'manual',
});
}
}