wangyi
2026-03-03 fbe87c8d043cb038d384df7721bc071676a0c24c
pages/index/vers.vue
@@ -28,6 +28,7 @@
      timer:'',
      fieldTwo:'',
      vers:'',
      platform:'ad'
    };
  },
  props: {
@@ -38,10 +39,12 @@
   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
  },
@@ -58,6 +61,7 @@
            // "VersionNumber": "最新整包版本",
            // "HotVersionNumber": "最新版本",
            // "Content": ""
            //iosPath:"ios官方商城下载路径"
            if (result.data.count == 1) {
               var datas = result.data.data[index]
                    // 尝试匹配 与 登录的url http地址相同的下载地址
@@ -75,7 +79,11 @@
                    }
    
                    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
@@ -138,8 +146,12 @@
       })
   },
   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