fix: 取消更新后登录页不再自动弹框,等级改为非必填并升至1.1.17
This commit is contained in:
@@ -37,11 +37,12 @@ class AppDialog {
|
||||
}
|
||||
|
||||
// 显示
|
||||
show(apkUrl, changelog) {
|
||||
show(apkUrl, changelog, latestVersion = '') {
|
||||
this.drawView(changelog)
|
||||
this.maskEl.show()
|
||||
this.popupEl.show()
|
||||
this.apkUrl = apkUrl;
|
||||
this.latestVersion = latestVersion || '';
|
||||
}
|
||||
|
||||
// 隐藏
|
||||
@@ -309,8 +310,12 @@ class AppDialog {
|
||||
const buttonWidth = (this.viewWidth - this.viewPadding) / 2;
|
||||
if (e.clientY > maxTop - 40 && e.clientY < maxTop) {
|
||||
if (showCancel) {
|
||||
// 取消
|
||||
// if(e.clientX>this.viewPadding && e.clientX<maxLeft-buttonWidth-this.viewPadding){}
|
||||
// 取消:记住已跳过的版本,登录页自动检查不再弹出
|
||||
if (e.clientX > this.viewPadding && e.clientX < this.viewPadding + buttonWidth) {
|
||||
if (this.latestVersion) {
|
||||
uni.setStorageSync('appUpdateDismissedVersion', String(this.latestVersion));
|
||||
}
|
||||
}
|
||||
// 确定
|
||||
if (e.clientX > maxLeft - buttonWidth && e.clientX < maxLeft) {
|
||||
upgrade.checkOs(this.apkUrl)
|
||||
|
||||
Reference in New Issue
Block a user