Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 57b8ce8c
authored
Jun 07, 2025
by
陈岩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: fix some bugs
1 parent
751e48b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
.DS_Store
h5/src/views/areaHeat/index.vue
h5/src/views/heatMap/index.vue
.DS_Store
View file @
57b8ce8
No preview for this file type
h5/src/views/areaHeat/index.vue
View file @
57b8ce8
...
...
@@ -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
}
`
;
...
...
h5/src/views/heatMap/index.vue
View file @
57b8ce8
...
...
@@ -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
(
1
0
);
// 热力图半径
const
heatRadius
=
ref
(
1
4
);
// 热力图半径
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
}
`
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment