地图修改

This commit is contained in:
cwchen 2026-01-22 09:32:33 +08:00
parent 29c4358361
commit 37e1f65dc6
2 changed files with 328 additions and 1041 deletions

View File

@ -17,6 +17,7 @@ const webViewUrl = ref('')
const webViewKey = ref(0) // web-view
const memberStore = useMemberStore()
//
const getProjectList = async () => {
const { data: res } = await getAllProjectListApi()
@ -110,7 +111,22 @@ const handleWebViewMessage = (event) => {
projectId: projectInfo.proId,
token: memberStore.token,
},
(result) => { },
(result) => {
console.log("收到原生回调:", result);
//
if (!result) return;
// status
if (result.status === 'closed') {
console.log("监听到三维模型关闭");
uni.$u.toast('三维模型已关闭');
//
}
else if (result.status === 'success') {
//
}
},
)
} else {
uni.$u.toast('该工程暂无模型数据')
@ -139,6 +155,7 @@ const buildProjectInfo = (items) => {
});
};
onLoad(() => {
getProjectList().then(() => {
if (projectList.value.length > 0) {
@ -152,4 +169,5 @@ onLoad(() => {
}
})
})
</script>

File diff suppressed because it is too large Load Diff