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 a4b45c98
authored
Jun 03, 2025
by
陈岩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 热力图增加当前数据展示
1 parent
78bb34e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
h5/src/router/index.js
h5/src/views/heatMap/index.vue
h5/vite.config.js
h5/src/router/index.js
View file @
a4b45c9
...
...
@@ -22,7 +22,7 @@ const routes = [
// const isDev = process.env.NODE_ENV === "development";
const
router
=
createRouter
({
history
:
createWebHistory
(
"/appH5
/
"
),
history
:
createWebHistory
(
"/appH5"
),
routes
,
});
...
...
h5/src/views/heatMap/index.vue
View file @
a4b45c9
...
...
@@ -20,11 +20,13 @@
:min=
"1"
v-model=
"sliderVal"
@
change=
"slideHandle"
/>
>
</van-slider>
<div
v-if=
"sliderVal"
class=
"custom-button"
>
{{
getSliderVal
}}
</div>
</div>
</
template
>
<
script
setup
>
import
{
onMounted
,
watch
,
ref
,
nextTick
}
from
"vue"
;
import
{
onMounted
,
watch
,
ref
,
nextTick
,
computed
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
Toast
}
from
"vant"
;
...
...
@@ -34,6 +36,12 @@ let map = null; // 地图对象
const
$route
=
useRoute
();
const
getSliderVal
=
computed
(()
=>
{
return
timeLevel
.
value
==
"rt"
?
getTimeMin
(
sliderVal
.
value
)
:
Math
.
round
(
sliderVal
.
value
)
+
""
;
});
// 监听route参数
// ?atoken='xxx'&mallId='xxx'
const
storeId
=
ref
(
""
);
// 店铺id
...
...
h5/vite.config.js
View file @
a4b45c9
...
...
@@ -16,7 +16,7 @@ const loder_pxtovw = pxtovw({
import
path
from
"path"
;
import
copy
from
"rollup-plugin-copy"
;
export
default
defineConfig
({
base
:
"
.
/"
,
base
:
"
/appH5
/"
,
publicDir
:
"public"
,
server
:
{
host
:
true
,
...
...
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