|
@@ -28,18 +28,19 @@ export default {
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
let version = res.data.version
|
|
let version = res.data.version
|
|
|
let mustUpdate = res.data.mustUpdate
|
|
let mustUpdate = res.data.mustUpdate
|
|
|
|
|
+ let updateText = res.data.updateText ? res.data.updateText : '现在更新?'
|
|
|
let singer = mustUpdate == 1 ? true : false
|
|
let singer = mustUpdate == 1 ? true : false
|
|
|
if(version <= this.version){
|
|
if(version <= this.version){
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
if(plus.networkinfo.getCurrentType()!=3){
|
|
if(plus.networkinfo.getCurrentType()!=3){
|
|
|
let that = this
|
|
let that = this
|
|
|
- that.$util.confirmModal({content:'修改价格增加确认提示;开单增加物流选项',title:'有新版本可更新',cancelText:'稍后',okText:'用流量更新'},() => {
|
|
|
|
|
|
|
+ that.$util.confirmModal({content:updateText,title:'有新版本可更新',cancelText:'稍后',okText:'用流量更新'},() => {
|
|
|
this.install(version)
|
|
this.install(version)
|
|
|
})
|
|
})
|
|
|
}else{
|
|
}else{
|
|
|
let that = this
|
|
let that = this
|
|
|
- that.$util.confirmModal({content:'修改价格增加确认提示;开单增加物流选项',title:'有新版本可更新',singer:singer,okText:'更新'},() => {
|
|
|
|
|
|
|
+ that.$util.confirmModal({content:updateText,title:'有新版本可更新',singer:singer,okText:'更新'},() => {
|
|
|
this.install(version)
|
|
this.install(version)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|