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
e6bbcea2
Commit
e6bbcea2
authored
Apr 15, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:扫码商户主页
parent
4af8aade
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
30 deletions
+45
-30
home.js
home.js
+9
-2
_shanghu_home.js
src/_shanghu_home.js
+36
-28
No files found.
home.js
View file @
e6bbcea2
...
@@ -112,13 +112,20 @@ window.onload = function () {
...
@@ -112,13 +112,20 @@ window.onload = function () {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// 获取到data为二维码的url路径,从这里取请求参数,商户id,在下面跳转本地系统路径
// 获取到data为二维码的url路径,从这里取请求参数,商户id,在下面跳转本地系统路径
// alert('扫码成功'+JSON.stringify(data))
// alert('扫码成功'+JSON.stringify(data))
const
strUrl
=
new
URL
(
data
);
const
param
=
{
merId
:
strUrl
.
searchParams
.
get
(
'
merId
'
),
accessType
:
strUrl
.
searchParams
.
get
(
'
accessType
'
)
};
console
.
log
(
'
扫码成功
'
,
data
,
param
);
// location.href = 'shanghu_home.html'
// location.href = 'shanghu_home.html'
// let param = {
// let param = {
// accessType: 'saoma',
// accessType: 'saoma',
// merId: data,
// merId: data,
// }
// }
// let url = gemhoUtil.setParameter(`
_shanghu_home.html`, param)
let
url
=
gemhoUtil
.
setParameter
(
`./src/
_shanghu_home.html`
,
param
)
//
gemhoUtil.navigatePage(url, '跳转中...')
gemhoUtil
.
navigatePage
(
url
,
'
跳转中...
'
)
//成功回调
//成功回调
},
},
fail
:
function
(
data
)
{
fail
:
function
(
data
)
{
...
...
src/_shanghu_home.js
View file @
e6bbcea2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* description: 商户首页
* description: 商户首页
*/
*/
var
VUE
=
null
var
VUE
=
null
window
.
addEventListener
(
"
load
"
,
function
()
{
window
.
addEventListener
(
"
load
"
,
function
()
{
VUE
=
new
Vue
({
VUE
=
new
Vue
({
el
:
'
#app
'
,
el
:
'
#app
'
,
data
()
{
data
()
{
...
@@ -12,21 +12,21 @@ window.addEventListener("load", function() {
...
@@ -12,21 +12,21 @@ window.addEventListener("load", function() {
// 新增子Tab数据
// 新增子Tab数据
subActiveTab
:
0
,
subActiveTab
:
0
,
hazardList
:
[{
hazardList
:
[{
id
:
1
,
id
:
1
,
description
:
'
消防通道被货物堵塞,存在严重安全隐患
'
,
description
:
'
消防通道被货物堵塞,存在严重安全隐患
'
,
status
:
'
待审核
'
,
status
:
'
待审核
'
,
date
:
'
2024-03-15
'
,
date
:
'
2024-03-15
'
,
shop
:
'
XX餐饮店
'
,
shop
:
'
XX餐饮店
'
,
type
:
2
type
:
2
},
},
{
{
id
:
2
,
id
:
2
,
description
:
'
消防通道被货物堵塞,存在严重安全隐患
'
,
description
:
'
消防通道被货物堵塞,存在严重安全隐患
'
,
status
:
'
待整改
'
,
status
:
'
待整改
'
,
date
:
'
2024-03-15
'
,
date
:
'
2024-03-15
'
,
shop
:
'
XX餐饮店
'
,
shop
:
'
XX餐饮店
'
,
type
:
2
type
:
2
},
},
// 更多示例数据...
// 更多示例数据...
],
],
activeTab
:
0
,
activeTab
:
0
,
...
@@ -42,15 +42,15 @@ window.addEventListener("load", function() {
...
@@ -42,15 +42,15 @@ window.addEventListener("load", function() {
type
:
''
,
// 新增类型字段
type
:
''
,
// 新增类型字段
},
},
checkList
:
[{
checkList
:
[{
id
:
1
,
id
:
1
,
date
:
'
2024-03-15
'
,
date
:
'
2024-03-15
'
,
result
:
'
合格
'
result
:
'
合格
'
},
},
{
{
id
:
2
,
id
:
2
,
date
:
'
2024-03-14
'
,
date
:
'
2024-03-14
'
,
result
:
'
不合格
'
result
:
'
不合格
'
}
}
]
]
}
}
},
},
...
@@ -63,9 +63,17 @@ window.addEventListener("load", function() {
...
@@ -63,9 +63,17 @@ window.addEventListener("load", function() {
}
}
},
},
methods
:
{
methods
:
{
navTo
(
url
){
navTo
(
url
)
{
// gemhoUtil.nav2asd(url)
// gemhoUtil.nav2asd(url)
gemhoUtil
.
navigatePage
(
`_
${
url
}
.html`
)
let
params
=
gemhoUtil
.
getUrlParams
()
if
(
url
==
'
check_info
'
)
{
params
=
{
...
params
,
flag
:
'
ADD
'
,
pageName
:
'
_shanghu_home
'
}
}
gemhoUtil
.
navigatePage
(
`_
${
url
}
.html`
,
params
)
},
},
// 新增选择确认方法
// 新增选择确认方法
onConfirmType
(
value
)
{
onConfirmType
(
value
)
{
...
@@ -88,7 +96,7 @@ window.addEventListener("load", function() {
...
@@ -88,7 +96,7 @@ window.addEventListener("load", function() {
viewDetail
(
item
)
{
viewDetail
(
item
)
{
console
.
log
(
'
查看详情:
'
,
id
);
console
.
log
(
'
查看详情:
'
,
id
);
// 这里添加跳转逻辑
// 这里添加跳转逻辑
if
(
item
.
status
==
'
01
'
)
{
// 待审核
if
(
item
.
status
==
'
01
'
)
{
// 待审核
this
.
navTo
(
'
check_info
'
,
item
.
id
)
this
.
navTo
(
'
check_info
'
,
item
.
id
)
// gemhoUtil.navigatePage(`_${url}.html`)
// gemhoUtil.navigatePage(`_${url}.html`)
}
}
...
...
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