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
64375ade
Commit
64375ade
authored
Jun 21, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:安全常识-应知应会列表
parent
3f4f1c74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
4 deletions
+35
-4
_anquan_changshi.css
src/_anquan_changshi.css
+11
-1
_anquan_changshi.html
src/_anquan_changshi.html
+24
-1
_anquan_changshi.js
src/_anquan_changshi.js
+0
-2
No files found.
src/_anquan_changshi.css
View file @
64375ade
...
...
@@ -239,4 +239,14 @@ body {
-webkit-box-orient
:
vertical
;
/* 垂直排列 */
-webkit-line-clamp
:
2
;
/* 限制2行 */
max-height
:
calc
(
0.28rem
*
1.4
*
2
+
30px
);
/* 2行高度 + 上下padding(15px*2) */
}
\ No newline at end of file
}
.list-item
{
margin-bottom
:
0.2rem
;
}
.container
.van-cell
{
padding
:
12px
16px
;
height
:
1.5rem
;
}
\ No newline at end of file
src/_anquan_changshi.html
View file @
64375ade
...
...
@@ -30,7 +30,7 @@
</van-tabs>
<!-- 隐患列表 -->
<van-list
v-model:loading=
"loading"
:offset=
"10"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"getList"
:immediate-check=
"false"
>
<div
class=
"container"
>
<div
class=
"container"
v-if=
"activeTab!=2"
>
<div
class=
"card"
v-for=
"item in 11"
>
<div
class=
"image-wrapper"
>
<img
src=
"https://dummyimage.com/340x206"
alt=
"视频封面1"
>
...
...
@@ -39,6 +39,29 @@
<div
class=
"card-title"
>
这是第一个视频标题,展示基本,烧烤料上岛咖啡就水电费收快递费就
</div>
</div>
</div>
<div
style=
"width: 100%; background-color: #f5f6fa;padding-top: .2rem;"
v-if=
"activeTab==2"
v-for=
"item in hazardList"
>
<van-cell
v-for=
"item in hazardList"
:key=
"item.id"
class=
"list-item"
@
click=
"viewDetail(item)"
>
<!-- 第一行:隐患描述 -->
<div
style=
"
position: relative; /* 新增:相对定位容器 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #333;
font-size: 0.3rem;
font-weight: bold;
font-family: PingFang SC;
"
>
{{ item.description }}
</div>
<div
class=
"date-tag-wrapper"
>
<spa
style=
"color: #737373; font-size: 0.28rem;"
>
日期:{{ item.checkDate || '-' }}
</spa>
<van-icon
name=
"arrow"
class=
"navToBtn"
/>
</div>
</van-cell>
</div>
</van-list>
</div>
</body>
...
...
src/_anquan_changshi.js
View file @
64375ade
...
...
@@ -74,8 +74,6 @@ window.addEventListener("load", function () {
merName
:
this
.
shanghuName
,
pageNum
:
this
.
page
++
,
// 每次请求增加下一页
pageSize
:
this
.
size
,
sort
:
'
lawId,desc
'
,
status
:
this
.
yhstatus
()
},
},
(
res
)
=>
{
...
...
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