Merge pull request '版本更新跳转' (#296) from zhy into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/296
This commit is contained in:
hansu 2020-08-25 12:07:07 +08:00
commit b63a84149e
3 changed files with 12 additions and 3 deletions

View File

@ -50,7 +50,8 @@
// console.log(res); // console.log(res);
if(res.data.app_version != this.$app_version) { if(res.data.app_version != this.$app_version) {
this.$u.route('/pageE/setting/updateVersion', { this.$u.route('/pageE/setting/updateVersion', {
status: res.data.is_focus_upgrade status: res.data.is_focus_upgrade,
type: 'auto'
}); });
} }
}) })

View File

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

View File

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