| | |
| | | timer:'', |
| | | fieldTwo:'', |
| | | vers:'', |
| | | platform:'ad' |
| | | }; |
| | | }, |
| | | props: { |
| | |
| | | if(uni.getSystemInfoSync().platform !=='ios'){ |
| | | this.update(); |
| | | }else if(uni.getSystemInfoSync().platform =='ios'){ |
| | | uni.showToast({ |
| | | title:'请使用安卓手机,以免发生兼容性问题', |
| | | icon:'none' |
| | | }) |
| | | // uni.showToast({ |
| | | // title:'请使用安卓手机,以免发生兼容性问题', |
| | | // icon:'none' |
| | | // }) |
| | | this.update(); |
| | | this.platform = 'ios' |
| | | } |
| | | //#endif |
| | | }, |
| | |
| | | // "VersionNumber": "最新整包版本", |
| | | // "HotVersionNumber": "最新版本", |
| | | // "Content": "" |
| | | //iosPath:"ios官方商城下载路径" |
| | | if (result.data.count == 1) { |
| | | var datas = result.data.data[index] |
| | | // 尝试匹配 与 登录的url http地址相同的下载地址 |
| | |
| | | } |
| | | |
| | | let dataLength = result.data.data.length |
| | | uni.setStorageSync('remarkURL',datas.DowloadPath) |
| | | if(this.platform == 'ios'){ |
| | | uni.setStorageSync('remarkURL',datas.DowloadPath) |
| | | }else{ |
| | | uni.setStorageSync('remarkURL',datas.iosPath) |
| | | } |
| | | plus.runtime.getProperty(plus.runtime.appid, function(inf) { |
| | | console.log(inf) |
| | | _this.vers = datas.HotVersionNumber |
| | |
| | | }) |
| | | }, |
| | | upOn(){ |
| | | this.doUpData(); |
| | | this.loadPercent = 0 |
| | | if(uni.getSystemInfoSync().platform !=='ios'){ |
| | | this.doUpData(); |
| | | this.loadPercent = 0 |
| | | }else if(uni.getSystemInfoSync().platform =='ios'){ |
| | | plus.runtime.openURL(uni.getStorageSync('remarkURL')); |
| | | } |
| | | }, |
| | | doUpData() { |
| | | this.waitLine = true |