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
2bc79d95
Commit
2bc79d95
authored
Apr 10, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:入驻后接口对接
parent
371b927e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
136 deletions
+119
-136
apiKeyMap.js
sdk/jssdk2/apiKeyMap.js
+9
-65
util.js
sdk/util.js
+4
-3
_shanghu_list.html
src/_shanghu_list.html
+24
-68
_shanghu_list.js
src/_shanghu_list.js
+82
-0
No files found.
sdk/jssdk2/apiKeyMap.js
View file @
2bc79d95
...
...
@@ -4,71 +4,15 @@ const API_KEY_MAP = {
publicKey
:
'
0450567ffc64139658baa28c5c9bc0415200b476baa3bcc3f9dc9dbbf8dbcff2fb5e93319127685469c84784d235220c0347e695fbf66c5ffede33e645bea8b3f0
'
,
privateKey
:
'
00b92f5f2a7c40cb07d225f2e90df9b8b23569658e4f9e04dd0a4bf4a5b374063b
'
},
'
yh-list
'
:
{
// 隐患管理-列表
id
:
'
gqyjglptthHiddenDanger
'
,
publicKey
:
'
041a0802713d674bfc3db46293d83e2b3ebe99cd0ee9b5ae507a0aa07f41cd8bf1407d8c16fab3ceb28bfa233452417373ac0c7864e085895a27b4ebf14b2eb3b1
'
,
privateKey
:
'
73ae80b0f34740ce795821bf4354f1621e4ab7d01d9f3f7fc7c05e52c527c528
'
},
'
yh-list-detail
'
:
{
// 隐患管理-修改
id
:
'
gqyjglptupdate
'
,
publicKey
:
'
04cc5dfef4a8f0bb28298d4b06d02d2c933791b09d4d746a3e4aa7119f4402b3eb3f0c5df31127e96cc46bf9675cad52b95e3af6d7345040a05c7d17ced8a80f8f
'
,
privateKey
:
'
2152ba9b1a9c6526fab2e6f5985da1c36ecc9476fd4ab4b19a43206836d8e496
'
},
'
dw-list
'
:
{
// 危险作业备案管理-查询
id
:
'
gqyjglptpage
'
,
publicKey
:
'
04f09896234db417d7dcf1d7e56d69101590106b08d6ae752c2f59c8041ef5a9d4cc8535a9487806f5ed23ad6e9a62a9e031f6eb5d0181d007e73c685b4127f098
'
,
privateKey
:
'
0093df6762d7371cdc039ce5bc42d70ce411ea2c7cf6e9a269a3f4b974f30961f8
'
},
'
dw-list-detail
'
:
{
// 危险作业备案管理-新增/修改
id
:
'
gqyjglptcreate
'
,
publicKey
:
'
043cbdee5e137b43241c72481f023f0c937b383586fdfdbf8dc012e6e1dc6e3ee1cdd5d6c48aef3453c4ca55eaae2d583e74eb6844254be0fe393dcaccb14af65f
'
,
privateKey
:
'
2f6c6b20e29ba96d03ea6dbc5975484cf96f99fcb99caf2cde1556ca68a31138
'
},
'
notice-list
'
:
{
// 通知公告-列表
id
:
'
gqyjglptfindOwnTag
'
,
publicKey
:
'
049ba9d80cb4284f6cc9f55935b3cd57cec034b5f242c390bf70d2a62ee917cf525b83d524eb700c68af330c9e5bcb82bd1101370318cdce19418a342fa31217ed
'
,
privateKey
:
'
00d97af0c76917729cec802a38d061f1f08aa4310c9a5642374aa18945b3dd412b
'
},
'
notice-list-detail
'
:
{
// 通知公告-详情
id
:
'
gqyjglptfindOwn
'
,
publicKey
:
'
04f65369ca1f06c23dca1428414495078097aaeab5ff58561bcf307ecb5db5c81abe731e4428799217def11507053530193aaa165a51ece5356c3a661ec455386b
'
,
privateKey
:
'
00a47e6d4a77bd16d3e508c6d27c8349bd32a93a6033b8a920c4d55f5f2517a661
'
},
'
law-lv
'
:
{
// 法律法规-分类列表
id
:
'
gqyjglptlawCategory
'
,
publicKey
:
'
0408156c9416ad5a092907640183a3f0cf235f4fe651c9e96f89093b1db148ff66c89fe63d9eb1620243e3e96bb7900c87e5551b033d49a09ac4018599fa72dbad
'
,
privateKey
:
'
00dbd58eb615663adf7d078c6532d0eff3f2713ea1fe85fc1ae132f9aa196a5bf0
'
},
'
law-list
'
:
{
// 法律法规-根据分类查询列表
id
:
'
gqyjglptthLaw
'
,
publicKey
:
'
0458df2864b796fa483084190b0908c554eb848fd9117cb6dc88c7df21f07e2e8cf7face6b9a31afe56c6910a35308c5631491307f78c30ce90b399629597bcad9
'
,
privateKey
:
'
00b3872079b70e21605edf2d5a18706cf075985a954551afd2f3970d4fc9756107
'
},
'
law-list-detail
'
:
{
// 法律法规-详情
id
:
'
gqyjglptfindLawDetailsMobile
'
,
publicKey
:
'
04032817278e7ddf328535df4d0a9180f4006a757c8d62aabd07b89eb380c353ce6e9b5882dddd18673e2adeae840a1058321624898397bf1237240d8c5e2fdadd
'
,
privateKey
:
'
5adadd253436c736bc5036bc1399b4110df4153ffd856a574774d0a5d165a7dd
'
},
'
emergency
'
:
{
// 高区应急管理平台-应急演练计划-列表
id
:
'
gqyjglptcompany
'
,
publicKey
:
'
04496980a74b74a564d207756881064302de45009209d36a2b283086c25bf4e16a2c4de3cebf4a83669bdda4218e273bedf49652158425e0f1ed4d2f8df6f2f38e
'
,
privateKey
:
'
41bf61090a6d2fa5292d50f285d1e38b91cc06c1965a715a031170ce18b6c6ad
'
},
'
emergency-detail
'
:
{
// 高区应急管理平台-应急演练计划-详情
id
:
'
gqyjglptenterpriseDrills
'
,
publicKey
:
'
04fcdb9f752aa40e2f75078ae4817b3c4684042747d82b7bd9640146001aaf885e9b9627c2273498bc9940174132af52ed19cbe2f871bcaab52018123e5311e58f
'
,
privateKey
:
'
0092ba7d7629e681f4a82cede0c129749710e4f7cd2437ac83141036053896c08e
'
},
'
emergency-add
'
:
{
// 应急演练新增
id
:
'
yjyljhxzenterpriseDrills
'
,
publicKey
:
'
048d58d3d7083d8c349c49132efb0c3f77e76018f7d71c41395668c35fbb2876536d1a19e8383c960db0360625b45a0d6b566d2204573e0e556727c5c5cb3d7fbc
'
,
privateKey
:
'
57960a25ce1f4968586be888fe4980586aca9bed6fd5a08e69c92be63829473e
'
},
'
upload
'
:
{
// 应急演练图片上传(危险备案和应急演练可以共用)
id
:
'
wjscjkupload
'
,
publicKey
:
'
042e41f442af21dcbed1431e20510db26bdd1ccc54a327e42daf8621a0b5291f4586ea56ccd59aeef12ba0528911ed93c338a270948fe4e2d5b64adb87eb0e7cc5
'
,
privateKey
:
'
00bb211356bb9b883066cbd221feaf82a9492944d4082a881ed77ffdc812d6f908
'
'
page
'
:
{
// 隐患管理-列表
id
:
'
gqyjglptsafecheckpage
'
,
publicKey
:
'
045c149a329b0b1ece8e82643044dcf689fd75cc837369cd354b6df96853e483b747e7d4a79c1847bbcb9c6fc57a14358c0def828d31c00f83b7399d6f14e1b152
'
,
privateKey
:
'
00f3449a2e8ccb6724554a6126341b7f7ac4f99e98a313ed59851ed2a30eb69176
'
},
'
no-page
'
:
{
// no-page
id
:
'
gqyjglptsafecheckdetial
'
,
publicKey
:
'
0432cc9a4b25646345f6ce116d566f08404e2fbb1da7e488b5333211ae82ec1c7938c46dcc9013a5e9fbd5235a482384c170f4c501991b1a9460af92dbd1ed1062
'
,
privateKey
:
'
5e46fef0286f55aef6bb13f12373150023a4146edcd170be770b8823b24cb319
'
},
}
sdk/util.js
View file @
2bc79d95
...
...
@@ -228,11 +228,12 @@ gemhoUtil.navigatePage = function(path, title) {
* 跳转页面 更新版本号
* @param path
* @returns
* @demo nav
igatePage('/warehouse/company/companyDetail.html?companyI
d=1002');
* @demo nav
2asd('src/_shanghu_home.html?i
d=1002');
*/
gemhoUtil
.
nav2asd
=
function
(
url
,
title
)
{
gemhoUtil
.
nav2asd
=
function
(
opt
)
{
const
baseUrl
=
'
https://web1.isdapp.shandong.gov.cn/jmopen_files/unzip/d14b94db457149eab6260efd27deba47/gqyjglptxiefn/
'
lightAppJssdk
.
navigation
.
show
({
url
:
'
http://www.baidu.com
'
,
url
:
baseUrl
+
(
opt
.
url
||
'
index.html
'
)
,
title
:
title
||
'
高区安全“码”上查监管平台
'
,
isgoback
:
'
0
'
,
success
:
function
(
data
)
{
...
...
src/_shanghu_list.html
View file @
2bc79d95
...
...
@@ -9,37 +9,37 @@
<title>
高区“码”上
</title>
<script
type=
"text/javascript"
src=
"../sdk/includeHead.js"
></script>
<style>
html
,
body
{
/* background-color: #fff; */
html
,
body
{
background
:
#F5F6FA
;
}
.wrapper
{
/* padding: 0.2rem; */
/* background-color: #fff; */
}
.header
{
.header
{
width
:
100vw
;
/* margin-top: -.15rem;
margin-left: -.15rem; */
}
/* 条件查询样式 */
.header
.van-search__label
{
.header
.van-search__label
{
background-color
:
#fff
;
padding-right
:
.24rem
;
}
.header
.van-search__content
{
.header
.van-search__content
{
padding-left
:
0
;
}
.header
.van-search__content
.van-cell
{
.header
.van-search__content
.van-cell
{
padding-left
:
0.24rem
;
}
.van-list
{
.van-list
{
padding-left
:
0.2rem
;
padding-right
:
0.2rem
;
}
</style>
</head>
...
...
@@ -48,21 +48,17 @@
<div
class=
"wrapper"
>
<!-- 商户头部信息 -->
<div
class=
"header"
>
<van-search
v-model=
"shanghuName"
show-action
placeholder=
"请输入商家关键词"
@
search=
"onSearch"
>
<template
#action
>
<div
@
click=
"onSearch"
></div>
</template>
<van-search
v-model=
"unitName"
show-action
placeholder=
"请输入商家关键词"
@
search=
"onSearch"
>
<template
#action
>
<div
@
click=
"onSearch"
></div>
</template>
</van-search>
</div>
<!-- 隐患列表 -->
<van-list>
<van-cell
v-for=
"item in hazardList"
:key=
"item.id"
style=
"margin-bottom: 0.25rem;margin-top: 0.25rem;"
@
click=
"viewDetail(item.id)"
>
<van-list
v-model:loading=
"loading"
:offset=
"10"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"getList"
:immediate-check=
"false"
>
<van-cell
v-for=
"item in list"
:key=
"item.id"
style=
"margin-bottom: 0.25rem;margin-top: 0.25rem;"
@
click=
"viewDetail(item.id)"
>
<div
style=
"width: 100%;"
>
<!-- 第一行:隐患描述 -->
<div
style=
"
...
...
@@ -74,12 +70,13 @@
font-weight: bold;
font-family: PingFang SC;
"
>
{{ item.unitName }}
</div>
<!-- 第二行:状态和时间 -->
<div
style=
"display: flex; justify-content: space-between; margin: 8px 0;"
>
<span
style=
"color: #737373; font-size: 0.28rem;"
>
场所类型:{{ item.smallPlaceTypeName }}
</span>
<span
style=
"color: #737373; font-size: 0.28rem;"
>
场所类型:{{ item.smallPlaceTypeName }}
</span>
</div>
<!-- 第三行:商家和箭头 -->
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
>
<span
style=
"color: #666; font-size: 0.28rem;"
>
{{item.businessAddress}}
</span>
...
...
@@ -88,46 +85,5 @@
</van-cell>
</van-list>
</div>
<script>
// 在原有Vue实例中添加
new
Vue
({
el
:
'
#app
'
,
data
()
{
return
{
shanghuName
:
''
,
// 新增子Tab数据
hazardList
:
[],
}
},
computed
:
{
},
methods
:
{
onSearch
(){
console
.
log
(
'
xxxx
'
)
},
viewDetail
(
id
)
{
console
.
log
(
'
查看详情:
'
,
id
);
gemhoUtil
.
navigatePage
(
`_checkrecord.html`
)
// 这里添加跳转逻辑
},
getMerchantList
(){
http
.
get
(
'
/gq/merchant/getUserCheckMerchantList
'
)
.
then
((
res
)
=>
{
this
.
hazardList
=
res
.
data
;
})
},
init
(){
// 初始化方法
this
.
getMerchantList
()
}
},
created
()
{
this
.
init
()
}
});
</script>
</body>
</html>
\ No newline at end of file
src/_shanghu_list.js
0 → 100644
View file @
2bc79d95
/**
* author: dabao
*/
var
VUE
=
null
window
.
addEventListener
(
"
load
"
,
function
()
{
VUE
=
new
Vue
({
el
:
'
#app
'
,
data
()
{
return
{
unitName
:
''
,
value
:
''
,
list
:
[],
loading
:
false
,
finished
:
false
,
page
:
0
,
size
:
9999
,
total
:
0
}
},
mounted
()
{
this
.
getList
()
},
methods
:
{
onSearch
()
{
console
.
log
(
'
xxxx
'
,
this
.
unitName
)
},
detail
(
index
)
{
gemhoUtil
.
navigatePage
(
'
_sh.html?law_id=
'
+
this
.
list
[
index
].
lawId
)
},
getList
()
{
vant
.
Toast
.
loading
({
message
:
'
正在加载...
'
,
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
setTimeout
(()
=>
{
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
page
"
][
"
privateKey
"
],
reqParams
:
{
sign
:
9
,
pageNum
:
this
.
page
++
,
// 每次请求增加下一页
pageSize
:
this
.
size
,
sort
:
'
lawId,desc
'
,
}
},
(
res
)
=>
{
if
(
!
res
){
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
this
.
page
=
this
.
page
-
1
// 重新请求后,分页数恢复上一次请求的值
setTimeout
(()
=>
{
// this.getList()
},
0
);
return
}
if
(
res
)
{
// console.log('接口回调数据', JSON.parse(res))
var
result
=
JSON
.
parse
(
res
)
this
.
list
.
push
(...
result
.
content
);
this
.
total
=
result
.
totalElements
if
(
this
.
page
*
this
.
size
>=
this
.
total
)
{
this
.
finished
=
true
;
// 下滑不在刷新数据
}
}
this
.
loading
=
false
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
window
.
scrollTo
(
0
,
gemhoUtil
.
getCookie
(
'
scrollPosition
'
));
})
})
},
0
)
}
},
});
});
\ No newline at end of file
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