This commit is contained in:
2025-10-14 17:23:04 +08:00
parent 734fe88f14
commit 677ed122da
8 changed files with 61 additions and 149 deletions

View File

@@ -271,20 +271,11 @@
this.disabled = true
try {
let res = await materialBinding(this.val1, this.dataList)
if (res.code === '200') {
this.val1 = ''
this.dataList = []
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
this.disabled = false
} catch (e) {
this.disabled = false
@@ -303,19 +294,11 @@
this.disabled2 = true
try {
let res = await vehicleBinding(this.val1)
if (res.code === '200') {
this.val1 = ''
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
this.disabled2 = false
} catch (e) {
this.disabled2 = false