From 192bb670c6dec8a3efee45325fb1c7e61a34bd73 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 02 三月 2024 10:07:41 +0800
Subject: [PATCH] #
---
pages/login/login.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index e7dfe8d..fb7237e 100644
--- a/pages/login/login.vue
+++ b/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: '鏇存柊涓�︹��'
})
--
Gitblit v1.9.1