From ab0c7701678e6df98925ca15da749b42738f9fa4 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Fri, 5 Jul 2024 15:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Clue/Order/Comp/DialogOrder.vue | 8 +- src/views/Clue/Order/Comp/MallOrderList.vue | 7 +- src/views/Clue/Pool/Comp/ClueMap.vue | 269 ++++++++++++++++++++ src/views/Clue/Pool/Comp/DialogClue.vue | 3 +- src/views/Clue/Pool/index.vue | 227 +++++++++-------- src/views/Home/Index.vue | 2 +- 6 files changed, 407 insertions(+), 109 deletions(-) create mode 100644 src/views/Clue/Pool/Comp/ClueMap.vue diff --git a/src/views/Clue/Order/Comp/DialogOrder.vue b/src/views/Clue/Order/Comp/DialogOrder.vue index bc8d260..2244a25 100644 --- a/src/views/Clue/Order/Comp/DialogOrder.vue +++ b/src/views/Clue/Order/Comp/DialogOrder.vue @@ -108,9 +108,11 @@ const aftersaleList = ref([]) const extraPayList = ref([]) const prodTotalPrice = computed(() => { - return orderInfo.value.signProducts.reduce( - (pre, cur) => pre + (cur?.price || 0) * (cur?.signNum || 0), - 0 + return ( + orderInfo.value.signProducts?.reduce( + (pre, cur) => pre + (cur?.price || 0) * (cur?.signNum || 0), + 0 + ) || 0 ) }) diff --git a/src/views/Clue/Order/Comp/MallOrderList.vue b/src/views/Clue/Order/Comp/MallOrderList.vue index 8df8280..4846595 100644 --- a/src/views/Clue/Order/Comp/MallOrderList.vue +++ b/src/views/Clue/Order/Comp/MallOrderList.vue @@ -67,9 +67,10 @@
- - - + + + + + + + + diff --git a/src/views/Clue/Pool/Comp/DialogClue.vue b/src/views/Clue/Pool/Comp/DialogClue.vue index d516729..5e1c407 100644 --- a/src/views/Clue/Pool/Comp/DialogClue.vue +++ b/src/views/Clue/Pool/Comp/DialogClue.vue @@ -485,7 +485,7 @@ function addmark(lat, lng, AMap) { offset: [-16, -32] }) dialogMap.value.add(marker.value) - dialogMap.value.setCenter([lat, lng], '', 500) + dialogMap.value.setCenter([lat, lng], true) getNearbySchool({ lat: lng, lng: lat }) } function removeMarker() { @@ -557,7 +557,6 @@ function currentSelect(val) { lat: val.location?.lat } addmark(val.location?.lng, val.location?.lat, aMap.value) - dialogMap.value.setCenter([val.location?.lng, val.location?.lat], '', 500) regeoCode(val.location?.lng, val.location?.lat) } } diff --git a/src/views/Clue/Pool/index.vue b/src/views/Clue/Pool/index.vue index 8149f8e..d3c75a8 100644 --- a/src/views/Clue/Pool/index.vue +++ b/src/views/Clue/Pool/index.vue @@ -1,7 +1,7 @@