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
8f230e94
Commit
8f230e94
authored
Apr 14, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:主页跳转路径
parent
61bdd9b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
15 deletions
+24
-15
index.js
index.js
+21
-12
axios_http.js
sdk/axios_http.js
+1
-1
_checkrecord.js
src/_checkrecord.js
+1
-1
_shanghu_list.js
src/_shanghu_list.js
+1
-1
No files found.
index.js
View file @
8f230e94
...
@@ -70,7 +70,7 @@ window.onload = function () {
...
@@ -70,7 +70,7 @@ window.onload = function () {
className
:
'
yinhuan
'
,
className
:
'
yinhuan
'
,
title
:
'
隐患整改
'
,
title
:
'
隐患整改
'
,
remark
:
''
,
remark
:
''
,
navTo
:
'
y
inhuanzhenggai
'
,
navTo
:
'
y
h-check
'
,
},
},
{
{
className
:
'
shangjia
'
,
className
:
'
shangjia
'
,
...
@@ -82,7 +82,7 @@ window.onload = function () {
...
@@ -82,7 +82,7 @@ window.onload = function () {
className
:
'
zicha
'
,
className
:
'
zicha
'
,
title
:
'
安全自查
'
,
title
:
'
安全自查
'
,
remark
:
''
,
remark
:
''
,
navTo
:
'
check
record
'
,
navTo
:
'
check
_info
'
,
},
},
],
],
// 修改默认菜单结构为最小化配置
// 修改默认菜单结构为最小化配置
...
@@ -112,10 +112,13 @@ window.onload = function () {
...
@@ -112,10 +112,13 @@ window.onload = function () {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// 获取到data为二维码的url路径,从这里取请求参数,商户id,在下面跳转本地系统路径
// 获取到data为二维码的url路径,从这里取请求参数,商户id,在下面跳转本地系统路径
// alert('扫码成功'+JSON.stringify(data))
// alert('扫码成功'+JSON.stringify(data))
// location.href = 'shanghu_home.html'
// location.href = 'shanghu_home.html'
// let param = {
gemhoUtil
.
navigatePage
(
`src/_checkrecord.html`
)
// accessType: 'saoma',
// merId: data,
// }
// let url = gemhoUtil.setParameter(`_shanghu_home.html`, param)
// gemhoUtil.navigatePage(url, '跳转中...')
//成功回调
//成功回调
},
},
fail
:
function
(
data
)
{
fail
:
function
(
data
)
{
...
@@ -124,17 +127,22 @@ window.onload = function () {
...
@@ -124,17 +127,22 @@ window.onload = function () {
},
},
})
})
}
else
{
}
else
{
this
.
userInfo
.
userType
===
'
shop
'
this
.
userInfo
.
userType
===
'
shop
'
&&
toData
===
'
checkrecord
'
?
(
toData
=
'
checkrecord
'
)
?
(
toData
=
'
checkrecord
'
)
:
(
toData
=
'
shanghu_list
'
)
:
(
toData
=
'
shanghu_list
'
)
let
param
=
{
let
param
=
{
// id: itme.id,
// unitName: itme.unitName,
// smallPlaceTypeName: itme.smallPlaceTypeName,
// pageName: '_shanghu_list',
accessType
:
this
.
accessType
,
accessType
:
this
.
accessType
,
}
}
let
url
=
gemhoUtil
.
setParameter
(
`_
${
toData
}
.html`
,
param
)
if
(
this
.
userInfo
.
userType
===
'
shop
'
)
{
param
=
{
accessType
:
'
shop
'
,
merId
:
this
.
userInfo
.
userId
,
unitName
:
this
.
userInfo
.
unitName
,
smallPlaceTypeName
:
this
.
userInfo
.
smallPlaceTypeName
,
}
}
let
url
=
gemhoUtil
.
setParameter
(
`src/_
${
toData
}
.html`
,
param
)
gemhoUtil
.
navigatePage
(
url
,
'
跳转中...
'
)
gemhoUtil
.
navigatePage
(
url
,
'
跳转中...
'
)
// gemhoUtil.navigatePage(`src/_${toData}.html`)
// gemhoUtil.navigatePage(`src/_${toData}.html`)
}
}
...
@@ -218,7 +226,8 @@ window.onload = function () {
...
@@ -218,7 +226,8 @@ window.onload = function () {
result
.
data
.
merchantInfoNumVo
?.
smallPlaceTypeName
,
//
result
.
data
.
merchantInfoNumVo
?.
smallPlaceTypeName
,
//
unitName
:
result
.
data
.
merchantInfoNumVo
?.
unitName
,
//
unitName
:
result
.
data
.
merchantInfoNumVo
?.
unitName
,
//
role
:
'
dudao
'
,
role
:
'
dudao
'
,
roleName
:
result
.
data
.
roleDeptNameVo
.
roleName
,
roleName
:
result
.
data
.
roleDeptNameVo
?.
roleName
,
merId
:
result
.
data
.
merchantInfoNumVo
?.
merId
,
//
}
}
gemhoUtil
.
setCookie
(
'
userType
'
,
this
.
userInfo
.
userType
)
gemhoUtil
.
setCookie
(
'
userType
'
,
this
.
userInfo
.
userType
)
// 生成最终菜单列表
// 生成最终菜单列表
...
...
sdk/axios_http.js
View file @
8f230e94
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* 请求拦截、相应拦截、错误统一处理
* 请求拦截、相应拦截、错误统一处理
*/
*/
// 环境的切换
// 环境的切换
axios
.
defaults
.
baseURL
=
'
http://192.168.2.
37
:8080
'
axios
.
defaults
.
baseURL
=
'
http://192.168.2.
16
:8080
'
axios
.
defaults
.
timeout
=
50000
axios
.
defaults
.
timeout
=
50000
// post请求头
// post请求头
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
...
...
src/_checkrecord.js
View file @
8f230e94
...
@@ -26,7 +26,7 @@ window.addEventListener('load', function () {
...
@@ -26,7 +26,7 @@ window.addEventListener('load', function () {
},
},
created
()
{
created
()
{
let
urlParams
=
gemhoUtil
.
getUrlParams
()
let
urlParams
=
gemhoUtil
.
getUrlParams
()
this
.
merId
=
urlParams
.
i
d
this
.
merId
=
urlParams
.
merI
d
this
.
unitName
=
urlParams
.
unitName
this
.
unitName
=
urlParams
.
unitName
this
.
smallPlaceTypeName
=
urlParams
.
smallPlaceTypeName
this
.
smallPlaceTypeName
=
urlParams
.
smallPlaceTypeName
this
.
init
()
this
.
init
()
...
...
src/_shanghu_list.js
View file @
8f230e94
...
@@ -26,7 +26,7 @@ window.addEventListener('load', function () {
...
@@ -26,7 +26,7 @@ window.addEventListener('load', function () {
},
},
viewDetail
(
itme
)
{
viewDetail
(
itme
)
{
let
param
=
{
let
param
=
{
i
d
:
itme
.
id
,
merI
d
:
itme
.
id
,
unitName
:
itme
.
unitName
,
unitName
:
itme
.
unitName
,
smallPlaceTypeName
:
itme
.
smallPlaceTypeName
,
smallPlaceTypeName
:
itme
.
smallPlaceTypeName
,
pageName
:
'
_shanghu_list
'
,
pageName
:
'
_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