|
|
@@ -24,26 +24,15 @@ export default {
|
|
|
methods: {
|
|
|
androidCheckUpdate(){
|
|
|
getApkVersion().then(res=>{
|
|
|
- console.log(res)
|
|
|
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
|
|
|
}
|
|
|
- if(plus.networkinfo.getCurrentType()!=3){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:updateText,title:'有新版本可更新',cancelText:'稍后',okText:'用流量更新'},() => {
|
|
|
- this.install(version)
|
|
|
- })
|
|
|
- }else{
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:updateText,title:'有新版本可更新',singer:singer,okText:'更新'},() => {
|
|
|
- this.install(version)
|
|
|
- })
|
|
|
- }
|
|
|
+ let that = this
|
|
|
+ that.$util.confirmModal({content:updateText,title:'有新版本,请到应用市场更新',cancelText:'稍后',okText:'好的'},() => {
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|