Merge branch 'main' of https://git.zdool.com/xs/yxdt/h5 into main

This commit is contained in:
liuyalei 2023-12-07 15:59:48 +08:00
commit 4d9f42fe46
4 changed files with 40 additions and 63 deletions

BIN
src/assets/cc4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,14 +1,9 @@
<template> <template>
<div class="list-1"> <div class="list-1">
<div class="top"> <div class="top">
<strong :class="[newData.title.length < 40 ? 'yesDevelop' : 'noDevelop']" <strong class="yesDevelop"
>{{ newData.title >{{ newData.title
}}<a }}</strong
href="javascript:;"
v-if="newData.title.length > 40"
@click="quanwen"
>全文</a
></strong
> >
</div> </div>
<div class="bottom-1"> <div class="bottom-1">
@ -39,7 +34,8 @@ const quanwen = () => {
.noDevelop { .noDevelop {
display: inline-block; display: inline-block;
width: 343px; // width: 343px;
width: 90vw;
height: 44px; height: 44px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -74,7 +70,8 @@ const quanwen = () => {
.yesDevelop { .yesDevelop {
display: inline-block; display: inline-block;
width: 343px; // width: 343px;
width: 90vw;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;

View File

@ -1,15 +1,9 @@
<template> <template>
<div class="list-1"> <div class="list-1">
<div class="left"> <div class="left">
<strong :class="[newData.title.length < 26 ? 'yesDevelop' : 'noDevelop']" <strong class="yesDevelop"
>{{ newData.title >{{ newData.title
}}<a }}</strong
href="javascript:;"
v-if="newData.title.length > 26"
@click="quanwen"
>
全文</a
></strong
> >
<div class="bottom-1"> <div class="bottom-1">
<div class="left">{{ newData.createdAt }}</div> <div class="left">{{ newData.createdAt }}</div>
@ -19,7 +13,7 @@
</div> </div>
</div> </div>
<div class="right"> <div class="right">
<img src="@/assets/cc3.png" alt="" /> <img :src="newData.imgUrl" alt="" />
</div> </div>
</div> </div>
</template> </template>
@ -36,9 +30,9 @@ const quanwen = () => {
.list-1 { .list-1 {
display: flex; display: flex;
min-height: 70px; min-height: 70px;
justify-content: space-around; justify-content:space-between;
padding-left: 12px; padding-left: 16px;
padding-right: 12px; padding-right: 16px;
.left { .left {
width: 230px; width: 230px;
@ -83,7 +77,8 @@ const quanwen = () => {
.yesDevelop { .yesDevelop {
display: inline-block; display: inline-block;
width: 231px; // width: 231px;
width: 61vw;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;

View File

@ -81,27 +81,15 @@ const mainList = reactive([
}, },
{ {
id: 2, id: 2,
title: "老有康养", title: "幼有善育",
}, },
{ {
id: 3, id: 3,
title: "老有康养", title: "学有优教",
}, },
{ {
id: 4, id: 4,
title: "老有康养", title: "劳有所得",
},
{
id: 5,
title: "老有康养",
},
{
id: 6,
title: "老有康养",
},
{
id: 7,
title: "老有康养",
}, },
]); ]);
const chooseId = ref("1"); const chooseId = ref("1");
@ -113,46 +101,42 @@ const records = reactive({
list: [ list: [
{ {
id: 1, id: 1,
display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日",
imgUrl: "/src/assets/cc4.png",
eye: "8888",
},
{
id: 2,
display: 1,
title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日",
imgUrl: "/src/assets/cc3.png",
eye: "8888",
},
{
id: 3,
display: 0, display: 0,
title: "2023年养老金政策震撼发布你的养老金将发生这样的变化", title: "2023年养老金政策震撼发布你的养老金将发生这样的变化",
createdAt: "11月27日", createdAt: "11月27日",
eye: "8888", eye: "8888",
}, },
{ {
id: 1, id: 4,
display: 1, display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?", title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日", createdAt: "11月27日",
imgUrl: "/src/assets/cc3.png",
eye: "8888", eye: "8888",
}, },
{ {
id: 1, id: 5,
display: 0, display: 0,
title: "2023年养老金政策震撼发布你的养老金将发生这样的变化", title: "2023年养老金政策震撼发布你的养老金将发生这样的变化",
createdAt: "11月27日", createdAt: "11月27日",
eye: "8888", eye: "8888",
}, },
{
id: 1,
display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日",
eye: "8888",
},
{
id: 1,
display: 0,
title: "2023年养老金政策震撼发布你的养老金将发生这样的变化",
createdAt: "11月27日",
eye: "8888",
},
{
id: 1,
display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日",
eye: "8888",
},
], ],
}); });
</script> </script>
@ -297,12 +281,13 @@ const records = reactive({
display: none; display: none;
} }
.line { .line {
width: 100%; width: 100vw;
height: 0px; height: 0px;
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
opacity: 1; opacity: 1;
border: 1px solid #f1f1f1; border: 1px solid #f1f1f1;
margin-top: 16px; margin-top: 16px;
margin-bottom: 16px; margin-bottom: 16px;
text-align: center;
} }
</style> </style>