Commit 57b8ce8c by 陈岩

fix: fix some bugs

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