cuiqian2004
2024-11-04 de0f1b7995ee559f19e27ea07da0091d4ae189d5
pages/login/index.vue
@@ -152,12 +152,15 @@
               // var ser = this.userServer.toLowerCase().split('/');
               const res = await getApkVersionInfo(this.userServer)
               this.downloadUrl = res.dldUrl || ""
               var isver = this.compare(res.verNum, version);
               if (isver) {
                  this.$refs.promotion.open();
               } else {
                  console.log('当前已是最新版本')
               if (this.downloadUrl) {
                  var isver = this.compare(res.verNum || "", version);
                  if (isver) {
                     this.$refs.promotion.open();
                  } else {
                     console.log('当前已是最新版本')
                  }
               }
            } catch (ex) {
               // console.log(ex);
               let exStr = JSON.stringify(ex)
@@ -172,7 +175,7 @@
               });
            }
         },
         compare(curV, reqV) {
            var arr1 = curV.toString().split('.');
@@ -377,7 +380,7 @@
                  pwd: this.userPwd
               }
               hideLoading()
               uni.navigateTo({
                  url: '../index/index?args=9999999999'
               })
@@ -395,7 +398,7 @@
                  confirmText: this.translateSys("cancel")
               });
            }
         },
         translate(t) {
            if (typeof this.$t == "function") return this.$t(`page.${t}`)
@@ -411,7 +414,7 @@
         var url = utils.session.getValue('server');
         var username = utils.session.getValue('account');
         var userpwd = utils.session.getValue('password');
         var ischecked = false;
         if (!this.userServer)
            this.userServer = url;