wangxinhui
2025-01-10 4bc0e18b94a2bf17c1b7277910d63ef82fbe616a
´úÂë¹ÜÀí/»´°²PDA/pages/index/index.vue
@@ -31,16 +31,18 @@
         }
      },
      onShow() {
         // uni.getSystemInfo({
         //    success: (res) => {
         //       this.version = res.appWgtVersion;
         //       // console.log(res);
         //       //检测当前平台,如果是安卓则启动安卓更新
         //       if (res.platform == "android") {
         //          this.AndroidCheckUpdate();
         //       }
         //    }
         // });
         console.log();
         uni.getSystemInfo({
            success: (res) => {
               this.version = res.appWgtVersion;
               // console.log(res);
               //检测当前平台,如果是安卓则启动安卓更新
               if (res.platform == "android") {
                  this.AndroidCheckUpdate();
               }
            }
         });
      },
      onLoad() {
         this.getCurrentTree();
@@ -52,7 +54,7 @@
         AndroidCheckUpdate: function() {
            var _this = this;
            uni.request({
               url: 'http://10.1.211.101:9004/api/PDA/GetPDAVersion?version=' + this.version,
               url: this.$u.http.config.baseUrl+'/api/PDA/GetPDAVersion?version=' + this.version,
               method: 'GET',
               data: {},
               success: res => {
@@ -65,7 +67,7 @@
                        icon: "none"
                     });
                     var dtask = plus.downloader.createDownload(
                        "http://10.1.211.101:9004/api/PDA/DownLoadApp", {},
                        this.$u.http.config.baseUrl+"/api/PDA/DownLoadApp", {},
                        function(d, status) {
                           // ä¸‹è½½å®Œæˆ 
                           if (status == 200) {