shish пре 1 месец
родитељ
комит
bea3d9cd02
2 измењених фајлова са 6 додато и 27 уклоњено
  1. 3 14
      ghsApp/src/mixins/autoUpdate.js
  2. 3 13
      hdApp/src/mixins/autoUpdate.js

+ 3 - 14
ghsApp/src/mixins/autoUpdate.js

@@ -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:'好的'},() => {
+                    })
                 }
             })
         },

+ 3 - 13
hdApp/src/mixins/autoUpdate.js

@@ -24,7 +24,6 @@ export default {
 	methods: {
         androidCheckUpdate(){
             getApkVersion().then(res=>{
-                console.log(res)
                 if(res.code == 1){
                     let version = res.data.version
                     let mustUpdate = res.data.mustUpdate
@@ -33,18 +32,9 @@ export default {
                     if(version <= this.version){
                         return false
                     }
-
-                    if(plus.networkinfo.getCurrentType()!=3){
-                        let that = this
-                        that.$util.confirmModal({content:updateText,cancelText:'稍后',title:'有新版本可更新',okText:'用流量更新'},() => {
-                          this.install(version)
-                        })
-                    }else{
-                        let that = this
-                        that.$util.confirmModal({content:updateText,singer:singer,title:'有新版本可更新'},() => {
-                          this.install(version)
-                        })
-                    }
+                    let that = this
+                    that.$util.confirmModal({content:updateText,cancelText:'稍后',title:'有新版本,请到应用市场更新',okText:'好的'},() => {
+                    })
                 }
             })            
         },