版本更新修改

master
guoshuang 4 years ago
parent d670d9d8f8
commit 42af9be6f1

@ -154,13 +154,13 @@ export default class LoginPage extends BasePage {
Version = '1.0.0'; Version = '1.0.0';
async update() { async update() {
await session.QueryVersion(); await session.QueryVersion();
if (this.Version == session.Version) { if (this.Version < session.Version) {
// //
uni.showModal({ uni.showModal({
content: this.$t('message.Tip1') as string, content: this.$t('message.Tip1') as string,
confirmText: this.$t('message.workArea_Confirm') as string, confirmText: this.$t('message.workArea_Confirm') as string,
cancelText: this.$t('message.Cancel') as string, cancelText: this.$t('message.Cancel') as string,
success: function (res) { success: (res) => {
if (res.confirm) { if (res.confirm) {
// //
let downloadApkUrl = session.url; let downloadApkUrl = session.url;
@ -182,9 +182,11 @@ export default class LoginPage extends BasePage {
} }
}, },
}); });
} else { } else if (res.cancel) {
//return; //return;
console.log("1111111"); //debugger;
//console.log("1111111");
this.go();
} }
}, },
}); });

Loading…
Cancel
Save