添加一期修改功能

This commit is contained in:
2024-03-19 16:53:18 +08:00
parent 4bf4be18b8
commit f840648d65
11 changed files with 131 additions and 36 deletions

View File

@@ -89,18 +89,18 @@
})
this.disabled = true
if (this.user === '') {
uni.showToast({
title: '用户名不能为空',
icon: 'none'
})
// uni.showToast({
// title: '用户名不能为空',
// icon: 'none'
// })
this.disabled = false
return
}
if (this.password === '') {
uni.showToast({
title: '密码不能为空',
icon: 'none'
})
// uni.showToast({
// title: '密码不能为空',
// icon: 'none'
// })
this.disabled = false
return
}
@@ -123,15 +123,17 @@
},
async _pdaUpdate () {
let res = await pdaUpdate()
if (res.versionName === this.version) {
uni.showToast({
title: '当前为最新版本',
icon: 'none'
})
} else {
this.grade = true
this.androidUrl = res.url
}
// if (res.versionName === this.version) {
// uni.showToast({
// title: '当前为最新版本',
// icon: 'none'
// })
// } else {
// this.grade = true
// this.androidUrl = res.url
// }
this.grade = true
this.androidUrl = res.url
},
closeUpdate () {
this.grade = false