Commit 57b8ce8c by 陈岩

fix: fix some bugs

1 parent 751e48b1
No preview for this file type
...@@ -235,8 +235,10 @@ function drawAreaCanvas() { ...@@ -235,8 +235,10 @@ function drawAreaCanvas() {
}) })
) )
); );
console.log(params); console.log({
type: "areaClick",
data: params,
});
uni.postMessage( uni.postMessage(
JSON.parse( JSON.parse(
JSON.stringify({ JSON.stringify({
...@@ -356,7 +358,7 @@ watch( ...@@ -356,7 +358,7 @@ watch(
storeId.value = mallId; storeId.value = mallId;
const url = await getFloorImage(); const url = await getFloorImage();
if (!url) { if (!url) {
Toast.fail("楼层图片未找到,请检查mallId"); Toast.fail("未找到门店平面图");
return false; return false;
} }
floorImage.value = `https://store.keliuyun.com/images/${url}`; floorImage.value = `https://store.keliuyun.com/images/${url}`;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
@change="slideHandle" @change="slideHandle"
> >
</van-slider> </van-slider>
<div v-if="sliderVal" class="custom-button">{{ getSliderVal }}</div> <!-- <div v-if="sliderVal" class="custom-button">{{ getSliderVal }}</div> -->
</div> </div>
</template> </template>
<script setup> <script setup>
...@@ -106,7 +106,6 @@ const getHeatMapData = async (params) => { ...@@ -106,7 +106,6 @@ const getHeatMapData = async (params) => {
const floorImage = ref(""); const floorImage = ref("");
const getFloorImage = async () => { const getFloorImage = async () => {
try { try {
console.log(storeId.value);
const { data } = await heatmap.getStoreDataApi(storeId.value); const { data } = await heatmap.getStoreDataApi(storeId.value);
if (data.code === 200) { if (data.code === 200) {
return data.data?.mallPlan || ""; return data.data?.mallPlan || "";
...@@ -134,7 +133,7 @@ const handleLoad = () => { ...@@ -134,7 +133,7 @@ const handleLoad = () => {
/************** 热力图相关 **************/ /************** 热力图相关 **************/
const heatInstance = ref(null); const heatInstance = ref(null);
const heatRadius = ref(10); // 热力图半径 const heatRadius = ref(14); // 热力图半径
const heatDataObj = ref([]); // 热力图数据对象 const heatDataObj = ref([]); // 热力图数据对象
const timeLevel = ref("rt"); // 时间级别,默认实时 rt:停留时长 rc:顾客人次 const timeLevel = ref("rt"); // 时间级别,默认实时 rt:停留时长 rc:顾客人次
const normalWidth = ref(100); const normalWidth = ref(100);
...@@ -280,7 +279,7 @@ watch( ...@@ -280,7 +279,7 @@ watch(
storeId.value = mallId; storeId.value = mallId;
const url = await getFloorImage(); const url = await getFloorImage();
if (!url) { if (!url) {
Toast.fail("楼层图片未找到,请检查mallId"); Toast.fail("未找到门店平面图");
return false; return false;
} }
floorImage.value = `https://store.keliuyun.com/images/${url}`; floorImage.value = `https://store.keliuyun.com/images/${url}`;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!