修复bug

This commit is contained in:
zhouyanli
2026-08-15 16:43:34 +08:00
parent 53ea3996a0
commit 365391b490
6 changed files with 25 additions and 40 deletions

View File

@@ -90,7 +90,7 @@
}
} catch (err) {
uni.showToast({
title: '加载失败',
title: err.msg ||'加载失败',
icon: 'none'
})
console.error('列表接口报错:', err)
@@ -134,31 +134,22 @@
const confirmBind = () => {
if (selectedIndex.value === -1) {
return uni.showToast({
title: "请先选择绑定车辆",
title: "请先选择车辆",
icon: "none"
})
}
uni.showModal({
title: "确认选择",
content: `确定绑定该车辆吗?`,
content: `确定选择该车辆吗?`,
success: (res) => {
if (res.confirm) {
uni.showLoading({
title: '绑定中...',
mask: true
uni.showToast({
title: '选择成功',
icon: 'success'
})
setTimeout(() => {
uni.showToast({
title: '绑定成功',
icon: 'success'
})
}, 500)
setTimeout(() => {
uni.showToast({
title: '绑定成功',
icon: 'success'
})
uni.setStorageSync('bindCarId', selectedId.value)
uni.setStorageSync('bindCarName', selectedName.value)
goBack()