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
5d9a2a34
Commit
5d9a2a34
authored
Apr 11, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:index.js getuserinfo
parent
c5f1e4f1
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
407 additions
and
401 deletions
+407
-401
index.html
index.html
+2
-2
index.js
index.js
+19
-64
apiKeyMap.js
sdk/jssdk2/apiKeyMap.js
+24
-16
_check_info.js
src/_check_info.js
+361
-318
_shanghu_list.js
src/_shanghu_list.js
+1
-1
No files found.
index.html
View file @
5d9a2a34
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<div
<div
class=
"second-layer second-layer-zf"
class=
"second-layer second-layer-zf"
v-if=
"userInfo.userType!=='s
j
'"
v-if=
"userInfo.userType!=='s
hop
'"
>
>
<img
<img
class=
"merchant-icon"
class=
"merchant-icon"
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<div
<div
class=
"second-layer-sj"
class=
"second-layer-sj"
v-if=
"userInfo.userType=='s
j
'"
v-if=
"userInfo.userType=='s
hop
'"
>
>
<div
class=
"header"
>
<div
class=
"header"
>
<span>
商家信息
</span>
<span>
商家信息
</span>
...
...
index.js
View file @
5d9a2a34
...
@@ -170,11 +170,11 @@ window.onload = function () {
...
@@ -170,11 +170,11 @@ window.onload = function () {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
http2
.
post
(
http2
.
post
(
{
{
serviceId
:
API_KEY_MAP
[
'
no
P
age
'
][
'
id
'
],
serviceId
:
API_KEY_MAP
[
'
no
-p
age
'
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
'
no
P
age
'
][
'
publicKey
'
],
interfacePublicKey
:
API_KEY_MAP
[
'
no
-p
age
'
][
'
publicKey
'
],
interfacePrivateKey
:
API_KEY_MAP
[
'
no
P
age
'
][
'
privateKey
'
],
interfacePrivateKey
:
API_KEY_MAP
[
'
no
-p
age
'
][
'
privateKey
'
],
reqParams
:
{
reqParams
:
{
sign
:
9
,
sign
:
'
9
'
,
pageNum
:
this
.
page
++
,
// 每次请求增加下一页
pageNum
:
this
.
page
++
,
// 每次请求增加下一页
pageSize
:
this
.
size
,
pageSize
:
this
.
size
,
...
@@ -195,57 +195,13 @@ window.onload = function () {
...
@@ -195,57 +195,13 @@ window.onload = function () {
// console.log('接口回调数据', JSON.parse(res))
// console.log('接口回调数据', JSON.parse(res))
var
result
=
JSON
.
parse
(
res
)
var
result
=
JSON
.
parse
(
res
)
this
.
list
.
push
(...
result
.
content
)
//
this.list.push(...result.content)
this
.
total
=
result
.
totalElements
//
this.total = result.totalElements
if
(
res
.
code
!==
200
&&
res
.
data
==
null
)
{
if
(
res
.
code
!==
200
&&
res
.
data
==
null
)
{
return
return
}
}
if
(
result
.
data
.
roleDeptNameVo
.
roleName
==
'
超级管理员
'
||
result
.
data
.
roleDeptNameVo
.
roleName
==
'
超级管理员
'
)
{
this
.
userInfo
=
{
this
.
userInfo
=
{
userType
:
'
gl
'
,
// 登录用户type
userType
:
result
.
data
.
roleDeptNameVo
.
userType
,
// 登录用户type
userId
:
'
1
'
,
// 登录用户id
userName
:
'
张三
'
,
// 登录用户name
deptId
:
'
1
'
,
// 登录用户部门id
deptName
:
result
.
data
.
roleDeptNameVo
.
deptName
,
// 登录用户部门name
role
:
'
dudao
'
,
roleName
:
'
督导人员
'
,
}
}
else
if
(
result
.
data
.
roleDeptNameVo
.
roleName
==
'
行业管理
'
)
{
this
.
userInfo
=
{
userType
:
'
gl
'
,
// 登录用户type
userId
:
'
1
'
,
// 登录用户id
userName
:
'
张三
'
,
// 登录用户name
deptId
:
'
1
'
,
// 登录用户部门id
deptName
:
result
.
data
.
roleDeptNameVo
.
deptName
,
// 登录用户部门name
role
:
'
dudao
'
,
roleName
:
'
行业检查
'
,
}
}
else
if
(
result
.
data
.
roleDeptNameVo
.
roleName
==
'
街道主管
'
)
{
this
.
userInfo
=
{
userType
:
'
gl
'
,
// 登录用户type
userId
:
'
1
'
,
// 登录用户id
userName
:
'
张三
'
,
// 登录用户name
deptId
:
'
1
'
,
// 登录用户部门id
deptName
:
result
.
data
.
roleDeptNameVo
.
deptName
,
// 登录用户部门name
role
:
'
dudao
'
,
roleName
:
'
行业检查
'
,
}
}
else
if
(
result
.
data
.
roleDeptNameVo
.
roleName
==
'
日常管理
'
)
{
this
.
userInfo
=
{
userType
:
'
gl
'
,
// 登录用户type
userId
:
'
1
'
,
// 登录用户id
userName
:
'
张三
'
,
// 登录用户name
deptId
:
'
1
'
,
// 登录用户部门id
deptName
:
result
.
data
.
roleDeptNameVo
.
deptName
,
// 登录用户部门name
role
:
'
dudao
'
,
roleName
:
'
日常检查
'
,
}
}
else
if
(
result
.
data
.
roleDeptNameVo
.
roleName
==
'
商户
'
)
{
this
.
userInfo
=
{
userType
:
'
sj
'
,
// 登录用户type
userId
:
'
1
'
,
// 登录用户id
userId
:
'
1
'
,
// 登录用户id
userName
:
'
张三
'
,
// 登录用户name
userName
:
'
张三
'
,
// 登录用户name
deptId
:
'
1
'
,
// 登录用户部门id
deptId
:
'
1
'
,
// 登录用户部门id
...
@@ -256,8 +212,7 @@ window.onload = function () {
...
@@ -256,8 +212,7 @@ 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
:
'
商家
'
,
roleName
:
result
.
data
.
roleDeptNameVo
.
roleName
,
}
}
}
// 生成最终菜单列表
// 生成最终菜单列表
...
...
sdk/jssdk2/apiKeyMap.js
View file @
5d9a2a34
const
API_KEY_MAP
=
{
const
API_KEY_MAP
=
{
'
login
'
:
{
// 高区应急管理平台-爱山东用户和原系统用户绑定
login
:
{
// 高区应急管理平台-爱山东用户和原系统用户绑定
id
:
'
gqyjglptbind
'
,
id
:
'
gqyjglptbind
'
,
publicKey
:
'
0450567ffc64139658baa28c5c9bc0415200b476baa3bcc3f9dc9dbbf8dbcff2fb5e93319127685469c84784d235220c0347e695fbf66c5ffede33e645bea8b3f0
'
,
publicKey
:
privateKey
:
'
00b92f5f2a7c40cb07d225f2e90df9b8b23569658e4f9e04dd0a4bf4a5b374063b
'
'
0450567ffc64139658baa28c5c9bc0415200b476baa3bcc3f9dc9dbbf8dbcff2fb5e93319127685469c84784d235220c0347e695fbf66c5ffede33e645bea8b3f0
'
,
privateKey
:
'
00b92f5f2a7c40cb07d225f2e90df9b8b23569658e4f9e04dd0a4bf4a5b374063b
'
,
},
},
'
page
'
:
{
// 隐患管理-列表
page
:
{
// 隐患管理-列表
id
:
'
gqyjglptsafecheckpage
'
,
id
:
'
gqyjglptsafecheckpage
'
,
publicKey
:
'
045c149a329b0b1ece8e82643044dcf689fd75cc837369cd354b6df96853e483b747e7d4a79c1847bbcb9c6fc57a14358c0def828d31c00f83b7399d6f14e1b152
'
,
publicKey
:
privateKey
:
'
00f3449a2e8ccb6724554a6126341b7f7ac4f99e98a313ed59851ed2a30eb69176
'
'
045c149a329b0b1ece8e82643044dcf689fd75cc837369cd354b6df96853e483b747e7d4a79c1847bbcb9c6fc57a14358c0def828d31c00f83b7399d6f14e1b152
'
,
privateKey
:
'
00f3449a2e8ccb6724554a6126341b7f7ac4f99e98a313ed59851ed2a30eb69176
'
,
},
},
'
no-page
'
:
{
// no-page
'
no-page
'
:
{
// no-page
id
:
'
gqyjglptsafecheckdetial
'
,
id
:
'
gqyjglptsafecheckdetial
'
,
publicKey
:
'
0432cc9a4b25646345f6ce116d566f08404e2fbb1da7e488b5333211ae82ec1c7938c46dcc9013a5e9fbd5235a482384c170f4c501991b1a9460af92dbd1ed1062
'
,
publicKey
:
privateKey
:
'
5e46fef0286f55aef6bb13f12373150023a4146edcd170be770b8823b24cb319
'
'
0432cc9a4b25646345f6ce116d566f08404e2fbb1da7e488b5333211ae82ec1c7938c46dcc9013a5e9fbd5235a482384c170f4c501991b1a9460af92dbd1ed1062
'
,
privateKey
:
'
5e46fef0286f55aef6bb13f12373150023a4146edcd170be770b8823b24cb319
'
,
},
},
}
}
src/_check_info.js
View file @
5d9a2a34
This diff is collapsed.
Click to expand it.
src/_shanghu_list.js
View file @
5d9a2a34
...
@@ -51,7 +51,7 @@ window.addEventListener('load', function () {
...
@@ -51,7 +51,7 @@ window.addEventListener('load', function () {
if
(
!
res
)
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
this
.
page
=
th
is
.
pag
e
-
1
// 重新请求后,分页数恢复上一次请求的值
this
.
page
=
th
e
-
1
// 重新请求后,分页数恢复上一次请求的值
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// this.getList()
// this.getList()
},
0
)
},
0
)
...
...
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