|
|
@@ -28,6 +28,7 @@ export default {
|
|
|
if(res.code == 1){
|
|
|
let version = res.data.version
|
|
|
let mustUpdate = res.data.mustUpdate
|
|
|
+ let updateText = res.data.updateText ? res.data.updateText : '现在更新?'
|
|
|
let singer = mustUpdate == 1 ? true : false
|
|
|
if(version <= this.version){
|
|
|
return false
|
|
|
@@ -35,12 +36,12 @@ export default {
|
|
|
|
|
|
if(plus.networkinfo.getCurrentType()!=3){
|
|
|
let that = this
|
|
|
- that.$util.confirmModal({content:'新版本更新',cancelText:'稍后',okText:'用流量更新'},() => {
|
|
|
+ that.$util.confirmModal({content:updateText,cancelText:'稍后',title:'有新版本可更新',okText:'用流量更新'},() => {
|
|
|
this.install(version)
|
|
|
})
|
|
|
}else{
|
|
|
let that = this
|
|
|
- that.$util.confirmModal({content:'新版本更新',singer:singer},() => {
|
|
|
+ that.$util.confirmModal({content:updateText,singer:singer,title:'有新版本可更新'},() => {
|
|
|
this.install(version)
|
|
|
})
|
|
|
}
|