#
zjj
2024-04-07 e6a02c8b09a796e436a501e9b87d19e25c34c9d1
pages/login/login.vue
@@ -70,7 +70,8 @@
            filename: '',
            dialogContent: '',
            codeTime: 60,
            codeTimeShow: false
            codeTimeShow: false,
            download: ''
         }
      },
      onLoad: function() {
@@ -98,7 +99,6 @@
               method: 'POST',
               success(res) {
                  res = res.data 
                  console.log(res);
                  _this.codeTimeShow = true
                  let time = setInterval(()=>{
                     _this.codeTime--
@@ -151,8 +151,10 @@
                  console.log(res);
                  var res = res.data
                  if (res.data) {
                     console.log(res);
                     that.filename = res.data.path
                     that.dialogContent = '发现新版本:' + res.data.version + ', 是否立即更新'
                     that.download = res.data.url
                     that.$refs.upVersion.open()
                  } else {
                     uni.showToast({
@@ -174,7 +176,7 @@
         },
         downWgt() {
            let that = this;
            const downloadUrl = that.baseUrl + "/appVersion/downloadApp/" + that.filename
            const downloadUrl = that.download
            uni.showLoading({
               title: '更新中……'
            })