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
36754da2
Commit
36754da2
authored
Jul 02, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:演练list
parent
86eb2fcf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
354 additions
and
0 deletions
+354
-0
_peixun_yanlian.css
src/_peixun_yanlian.css
+163
-0
_peixun_yanlian.html
src/_peixun_yanlian.html
+58
-0
_peixun_yanlian.js
src/_peixun_yanlian.js
+133
-0
No files found.
src/_peixun_yanlian.css
0 → 100644
View file @
36754da2
html
,
body
{
letter-spacing
:
.01rem
;
background
:
#F5F6FA
;
}
.wrapper
{}
.header
{
background-color
:
#fff
;
}
.header
.title
{
font-weight
:
bold
;
font-size
:
0.32rem
;
color
:
#000000
;
display
:
flex
;
justify-content
:
start
;
align-items
:
center
;
gap
:
0.2rem
;
padding
:
0.3rem
0.3rem
;
}
.header
.title
img
{
width
:
0.51rem
;
height
:
0.52rem
;
}
.detail
{
width
:
6.5rem
;
background
:
#F5F6FA
;
border-radius
:
0.01rem
;
margin
:
0
auto
;
padding
:
0.2rem
;
margin-bottom
:
0.2rem
;
display
:
flex
;
align-items
:
start
;
flex-direction
:
column
;
justify-content
:
space-around
;
}
.detail
.van-col
{
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
0.28rem
;
color
:
#737373
;
}
.detail
span
{
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
0.28rem
;
color
:
#737373
;
}
/* 添加以下样式 */
.van-tabs__line
{
background-color
:
#1989fa
;
}
.blue-text
{
color
:
#1989fa
;
font-weight
:
500
;
}
.van-list
{
background
:
#F5F6FA
;
border-radius
:
8px
;
margin
:
0.2rem
0.2rem
;
}
.van-list
.van-cell
{
margin-bottom
:
.2rem
;
}
.van-tab
{
color
:
#000
;
}
.van-tab__text
{
font-weight
:
bold
;
font-size
:
0.3rem
;
/* color: #000; */
}
.van-tab--active
{
color
:
#1081E3
;
}
.van-field__label
{
font-weight
:
bold
;
}
.van-field__control
{
color
:
#737373
;
}
.tab1-row1
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
margin-bottom
:
8px
;
}
.bold
{
color
:
#333
;
font-size
:
0.3rem
;
font-weight
:
bold
;
}
.tab1-row2
{
display
:
flex
;
justify-content
:
space-between
;
color
:
#666
;
font-size
:
0.28rem
;
margin-bottom
:
8px
;
}
.tab1-row2
span
{
display
:
inline-block
;
width
:
50%
;
}
.reminder-badge
{
position
:
absolute
;
top
:
0.15rem
;
right
:
0.1rem
;
min-width
:
.8rem
;
text-align
:
left
;
text-indent
:
.16rem
;
height
:
0.36rem
;
line-height
:
0.36rem
;
font-size
:
0.2rem
;
color
:
#FFFFFF
;
background-image
:
url(../image/code/home/tip.png)
;
background-size
:
contain
;
background-repeat
:
no-repeat
;
}
/* 应急演练提示内容样式 */
.msgTip
{
background
:
rgb
(
251
,
231
,
231
);
border-radius
:
0.04rem
;
font-weight
:
500
;
font-size
:
0.28rem
;
color
:
rgb
(
255
,
0
,
0
);
padding
:
.2rem
.3rem
;
margin-bottom
:
.2rem
;
}
.func_btn
{
width
:
7.12rem
;
height
:
0.8rem
;
background
:
#1081e3
;
border-radius
:
0.1rem
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
0.3rem
;
color
:
#ffffff
;
margin
:
0
auto
;
border-width
:
0
;
margin-left
:
0.2rem
;
cursor
:
pointer
;
}
.func_btn
span
{
font-size
:
0.5rem
;
vertical-align
:
-0.05rem
;
margin-right
:
0.1rem
;
}
\ No newline at end of file
src/_peixun_yanlian.html
0 → 100644
View file @
36754da2
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover"
>
<title>
培训演练
</title>
<script
type=
"text/javascript"
src=
"../sdk/includeHead.js"
></script>
</head>
<div
id=
"app"
>
<div
class=
"wrapper"
v-cloak
>
<!-- 商户头部信息 -->
<div
class=
"header"
>
<van-search
v-model=
"merName"
show-action
placeholder=
"请输入培训演练标题"
@
search=
"onSearch"
>
<template
#action
>
<div
@
click=
"onSearch"
></div>
</template>
</van-search>
<!-- 功能 -->
<button
type=
"info"
class=
"func_btn"
@
click=
"navTo('check_info')"
><span>
+
</span>
新增培训演练
</button>
<!-- Tab栏 -->
<van-tabs
v-model:active=
"activeTab"
@
click=
"tabChange"
title-active-color=
"#1989fa"
line-height=
"2px"
style=
"margin-bottom: 15px;"
>
<van-tab
title=
"培训演练"
name=
"0"
></van-tab>
<van-tab
title=
"特种作业培训"
name=
"1"
></van-tab>
</van-tabs>
</div>
<van-list
v-model:loading=
"loading"
:offset=
"10"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"getList"
:immediate-check=
"false"
>
<div
class=
"msgTip"
>
该商家4/5/6月份未进行特种作业培训 5月份未进行培训演练
</div>
<van-cell
v-for=
"item in hazardList"
:key=
"item.id"
@
click=
"viewDetail(item.id)"
>
<div
style=
"width: 100%;position: relative;"
>
<!-- 第一行:商户名称 -->
<div
class=
"tab1-row1 bold"
>
{{ item.merName }}
</div>
<!-- 第二行:场所类型 + 检查单位(两列) -->
<div
class=
"tab1-row1"
>
<span>
日期:{{ item.placeType }}
</span>
</div>
<!-- 第三行:监察人 + 检查日期(两列) -->
<div
class=
"tab1-row2"
>
<span>
培训人数:{{ item.pushDate }}
</span>
<span>
培训人:{{ item.pushPeople }}
</span>
</div>
</div>
</van-cell>
</van-list>
</div>
</body>
</html>
\ No newline at end of file
src/_peixun_yanlian.js
0 → 100644
View file @
36754da2
var
VUE
=
null
window
.
addEventListener
(
'
load
'
,
function
()
{
VUE
=
new
Vue
({
el
:
'
#app
'
,
data
()
{
return
{
merName
:
''
,
// 新增子Tab数据
activeTab
:
'
0
'
,
hazardList
:
[],
// 新增以下数据
userInfo
:
{},
userData
:
{
checkCount
:
0
,
//检查数
checkSelfCount
:
0
,
//自查数
hiddenCount
:
0
,
//隐患数
hiddenNoReCount
:
0
,
//未整改数
},
loading
:
false
,
finished
:
false
,
page
:
1
,
size
:
6
,
total
:
0
,
merId
:
null
,
// 商户id
unitName
:
''
,
// 单位名称
smallPlaceTypeName
:
''
,
// 场所类型
}
},
created
()
{
let
urlParams
=
gemhoUtil
.
getUrlParams
()
this
.
merId
=
urlParams
.
merId
this
.
unitName
=
urlParams
.
unitName
this
.
smallPlaceTypeName
=
urlParams
.
smallPlaceTypeName
this
.
init
()
},
computed
:
{},
methods
:
{
reset
()
{
this
.
page
=
1
this
.
size
=
10
this
.
total
=
0
this
.
hazardList
=
[]
},
onSearch
()
{
console
.
log
(
'
xxxx
'
,
this
.
merName
)
this
.
init
()
},
//初始化页面
init
()
{
this
.
reset
()
this
.
getList
()
},
tabChange
()
{
this
.
init
()
},
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
:
29
,
type
:
this
.
activeTab
,
pageNum
:
this
.
page
,
// 每次请求增加下一页
pageSize
:
this
.
size
,
merName
:
this
.
merName
},
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
this
.
page
=
this
.
page
-
1
// 重新请求后,分页数恢复上一次请求的值
setTimeout
(()
=>
{
this
.
getList
()
},
0
)
return
}
if
(
res
)
{
var
result
=
JSON
.
parse
(
res
)
console
.
log
(
'
接口信息
'
,
result
)
if
(
result
.
code
!==
200
&&
result
.
data
==
null
)
{
return
}
this
.
hazardList
.
push
(...
result
.
rows
)
this
.
total
=
result
.
total
if
(
this
.
page
*
this
.
size
>=
this
.
total
)
{
this
.
finished
=
true
// 下滑不在刷新数据
}
else
{
this
.
page
++
}
}
this
.
loading
=
false
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
)
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
window
.
scrollTo
(
0
,
gemhoUtil
.
getCookie
(
'
scrollPosition
'
))
})
}
)
},
0
)
},
viewDetail
(
item
)
{
let
urlParams
=
gemhoUtil
.
getUrlParams
()
let
param
=
{
...
urlParams
,
id
:
item
.
id
,
flag
:
item
.
status
,
pageName
:
'
_shangbao-list
'
,
addr
:
item
.
addr
,
merchantName
:
item
.
merName
,
}
let
url
=
gemhoUtil
.
setParameter
(
'
_check_info.html
'
,
param
)
gemhoUtil
.
navigatePage
(
url
,
'
跳转中...
'
)
// 这里添加跳转逻辑
},
},
})
})
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