Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
GaoQuYingJiH5-ASD
Commits
aeda04b1
Commit
aeda04b1
authored
Jul 22, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:消费者首页 debug开关
parent
b93fcc70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
_consumer_home.html
src/_consumer_home.html
+1
-1
_consumer_home.js
src/_consumer_home.js
+8
-0
No files found.
src/_consumer_home.html
View file @
aeda04b1
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
<div
class=
"header"
>
<div
class=
"header"
>
<!-- <div class="level">安全等级</div> -->
<!-- <div class="level">安全等级</div> -->
<div
class=
"title"
>
<div
class=
"title"
>
<img
src=
"../image/code/sj.png"
alt=
""
><span>
{{merInformation.unitName}}
</span>
<img
src=
"../image/code/sj.png"
alt=
""
@
click=
"openDebug"
><span>
{{merInformation.unitName}}
</span>
<span
class=
"tag green"
v-if=
"merInformation.safeLevel==0"
@
click=
"gotoPage('anquan_level')"
>
安全等级-绿
</span>
<span
class=
"tag green"
v-if=
"merInformation.safeLevel==0"
@
click=
"gotoPage('anquan_level')"
>
安全等级-绿
</span>
<span
class=
"tag yellow"
v-if=
"merInformation.safeLevel==1"
@
click=
"gotoPage('anquan_level')"
>
安全等级-黄
</span>
<span
class=
"tag yellow"
v-if=
"merInformation.safeLevel==1"
@
click=
"gotoPage('anquan_level')"
>
安全等级-黄
</span>
<span
class=
"tag red"
v-if=
"merInformation.safeLevel==2"
@
click=
"gotoPage('anquan_level')"
>
安全等级-红
</span>
<span
class=
"tag red"
v-if=
"merInformation.safeLevel==2"
@
click=
"gotoPage('anquan_level')"
>
安全等级-红
</span>
...
...
src/_consumer_home.js
View file @
aeda04b1
...
@@ -47,6 +47,14 @@ window.addEventListener("load", function () {
...
@@ -47,6 +47,14 @@ window.addEventListener("load", function () {
// }
// }
// },
// },
methods
:
{
methods
:
{
openDebug
()
{
// 双击开启debugg模式,再次双击则关闭
console
.
log
(
'
开启关闭debug
'
)
if
(
localStorage
.
getItem
(
'
debug
'
)
==
'
Y
'
)
{
localStorage
.
setItem
(
'
debug
'
,
'
N
'
)
}
else
{
localStorage
.
setItem
(
'
debug
'
,
'
Y
'
)
}
},
gotoPage
(
stringifyUrl
)
{
gotoPage
(
stringifyUrl
)
{
let
url
=
gemhoUtil
.
setParameter
(
`src/_
${
stringifyUrl
}
.html`
)
let
url
=
gemhoUtil
.
setParameter
(
`src/_
${
stringifyUrl
}
.html`
)
gemhoUtil
.
navigatePage
(
url
,
'
跳转中...
'
)
gemhoUtil
.
navigatePage
(
url
,
'
跳转中...
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment