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
09075d7e
Commit
09075d7e
authored
Jun 05, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:部分手机html内不能使用includes的问题
parent
b7d9a313
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
home.html
home.html
+3
-2
home.js
home.js
+11
-1
No files found.
home.html
View file @
09075d7e
...
...
@@ -48,9 +48,10 @@
<!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<div
class=
"second-layer second-layer-zf"
v-if=
"
['admin','common','industry','street','wgy'].includes(userInfo.userType)
"
v-if=
"
showOrg
"
v-cloak
>
<!-- v-show="" -->
<img
class=
"merchant-icon"
src=
"image/code/zhengfu_logo.png"
...
...
@@ -74,7 +75,7 @@
<!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<div
class=
"second-layer-sj"
v-if=
"
['shop'].includes(userInfo.userType)
"
v-if=
"
showShop
"
v-cloak
>
<div
class=
"header"
>
...
...
home.js
View file @
09075d7e
...
...
@@ -48,6 +48,8 @@ window.onload = function () {
role
:
'
dudao
'
,
roleName
:
''
,
},
showOrg
:
false
,
//是否显示组织
showShop
:
false
,
//是否显示店铺
// 登录用户type
defaultMenuList
:
[
{
...
...
@@ -253,7 +255,15 @@ window.onload = function () {
merId
:
result
.
data
.
merchantInfoNumVo
?.
id
,
//
}
gemhoUtil
.
setCookie
(
'
userType
'
,
this
.
userInfo
.
userType
)
if
(
this
.
userInfo
.
userType
===
'
shop
'
)
{
// 2025年5月14日新增消费者逻辑
this
.
showOrg
=
false
//是否显示组织
this
.
showShop
=
true
//是否显示店铺
}
else
if
([
'
admin
'
,
'
common
'
,
'
industry
'
,
'
street
'
,
'
wgy
'
].
includes
(
this
.
userInfo
.
userType
))
{
this
.
showOrg
=
true
//是否显示组织
this
.
showShop
=
false
//是否显示店铺
}
/* if (this.userInfo.userType === 'consumers') { // 2025年5月14日新增消费者逻辑
// 根据url地址的merid获取商户信息
if (gemhoUtil.getParameter('merId')) { // 消费者直接在爱山东扫商户码进入首页
...
...
@@ -279,7 +289,7 @@ window.onload = function () {
return
} else */
if
(
this
.
userInfo
.
userType
===
'
shop
'
)
{
if
(
this
.
userInfo
.
userType
===
'
shop
'
)
{
this
.
defaultMenuList
[
1
].
navTo
=
'
checkrecord
'
}
else
{
this
.
defaultMenuList
[
1
].
navTo
=
'
shanghu_list
'
...
...
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