| | |
| | | url: '/pages/login/login' |
| | | }) |
| | | return false |
| | | |
| | | |
| | | } |
| | | uni.setStorageSync('Config', JSON.stringify(res.data)) |
| | | |
| | | |
| | | // #ifdef APP-PLUS |
| | | //机型 |
| | | let platform = uni.getSystemInfoSync().platform.toLocaleLowerCase() |
| | |
| | | updateFlag = !updateFlag |
| | | updesc = res.data.android.desc |
| | | } |
| | | if (downUrl && updateFlag) { |
| | | uni.showModal({ |
| | | showCancel: false, |
| | | confirmText: '立即更新', |
| | | title: '温馨提示!', |
| | | content: updesc || '有最新版本,请更新APP!', |
| | | success: res => { |
| | | if (res.confirm) { |
| | | plus.runtime.openURL(downUrl) |
| | | } |
| | | } |
| | | }) |
| | | if (updateFlag) { |
| | | // uni.showModal({ |
| | | // showCancel: false, |
| | | // confirmText: '立即更新', |
| | | // title: '温馨提示!', |
| | | // content: updesc || '有最新版本,请更新APP!', |
| | | // success: res => { |
| | | // if (res.confirm) { |
| | | // plus.runtime.openURL(downUrl) |
| | | // } |
| | | // } |
| | | // }) |
| | | uni.showModal({ |
| | | showCancel: false, |
| | | confirmText: '确定', |
| | | title: '版本更新提示!', |
| | | content: updesc, |
| | | success: res => { |
| | | if (res.confirm) { |
| | | |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | // #endif |