对接一键开门 修改首页引导页自适应样式
This commit is contained in:
@@ -100,14 +100,14 @@ onLoad((options) => {
|
||||
repairId.value = options.projectId
|
||||
}
|
||||
|
||||
// ✅ 监听返回选择的项目
|
||||
// 监听返回选择的项目
|
||||
uni.$on('selectRepairProject', (data) => {
|
||||
repairProject.value = `${data.category}-${data.project}`
|
||||
repairId.value = data.projectId
|
||||
})
|
||||
})
|
||||
|
||||
// ✅ 页面卸载时移除监听(必须加)
|
||||
// 页面卸载时移除监听
|
||||
onUnload(() => {
|
||||
uni.$off('selectRepairProject')
|
||||
})
|
||||
@@ -155,8 +155,8 @@ const uploadImages = async () => {
|
||||
uploadedUrls.push(res.url || '')
|
||||
} catch (err) {
|
||||
uni.showToast({
|
||||
title:e.msg || '图片上传失败',
|
||||
icon:'error'
|
||||
title:err.msg || '图片上传失败',
|
||||
icon:'error'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user