diff --git a/h5/src/api/heatMap.js b/h5/src/api/heatMap.js index d3b1b9b..19bab47 100644 --- a/h5/src/api/heatMap.js +++ b/h5/src/api/heatMap.js @@ -13,5 +13,8 @@ const heatmap = { getStoreDataApi(mallId) { return req("get", `/report/b-mall/${mallId}`); }, + getAreaGateStatisticsApi(params, config) { + return req("get", `/report/gate/analyse/statistics`, params, config); + }, }; export default heatmap; diff --git a/h5/src/router/index.js b/h5/src/router/index.js index bfe78be..be158cf 100644 --- a/h5/src/router/index.js +++ b/h5/src/router/index.js @@ -12,6 +12,11 @@ const routes = [ name: "HeatMap", component: () => import("@/views/heatMap/index.vue"), }, + { + path: "/areaHeatMap", + name: "AreaHeatMap", + component: () => import("@/views/areaHeat/index.vue"), + }, ]; const router = createRouter({ diff --git a/h5/src/views/areaHeat/index.vue b/h5/src/views/areaHeat/index.vue new file mode 100644 index 0000000..9a01e28 --- /dev/null +++ b/h5/src/views/areaHeat/index.vue @@ -0,0 +1,353 @@ + + + + diff --git a/h5/src/views/heatMap/index.vue b/h5/src/views/heatMap/index.vue index c011235..fcfb1cb 100644 --- a/h5/src/views/heatMap/index.vue +++ b/h5/src/views/heatMap/index.vue @@ -7,14 +7,8 @@ id="editFloorimg" style="width: 100%" /> -
+
-
{ }; /************** 图片相关 **************/ +const floorImage = ref(""); const getFloorImage = async () => { try { console.log(storeId.value); @@ -111,7 +106,6 @@ const getFloorImage = async () => { return ""; } }; -const floorImage = ref(""); /************** 热力图相关 **************/ const heatInstance = ref(null);