Commit 64375ade authored by xinzhedeai's avatar xinzhedeai

add:安全常识-应知应会列表

parent 3f4f1c74
......@@ -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
......@@ -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>
......
......@@ -74,8 +74,6 @@ window.addEventListener("load", function () {
merName: this.shanghuName,
pageNum: this.page++, // 每次请求增加下一页
pageSize: this.size,
sort: 'lawId,desc',
status: this.yhstatus()
},
},
(res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment