首页细节调整
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
<template>
|
||||
<div class="pr-8">
|
||||
<d-card class="mt-10 bg-white">
|
||||
<d-card shadow="never" class="mt-10 bg-white">
|
||||
<template #title>
|
||||
<div class="flex items-center">
|
||||
<icon-time class="w-5 mr-2"></icon-time>
|
||||
节日天气
|
||||
时间日期
|
||||
</div>
|
||||
</template>
|
||||
<template #content>
|
||||
<div class="w-full text-center text-[#ec66ab] font-500 text-2xl font-[yj]">{{ t }}</div>
|
||||
<div class="mt-2 text-center">{{ d }}</div>
|
||||
<div class="w-full text-center text-[#ec66ab] font-500 text-4xl font-[yj]">{{ t }}</div>
|
||||
<div class="mt-3 text-right">{{ d }}</div>
|
||||
</template>
|
||||
</d-card>
|
||||
|
||||
<d-card class="mt-10 bg-white">
|
||||
<d-card shadow="never" class="mt-10 bg-white">
|
||||
<template #title>
|
||||
<div class="flex items-center">
|
||||
<icon-date class="w-5 mr-2"></icon-date>
|
||||
@ -29,7 +29,7 @@
|
||||
</template>
|
||||
</d-card>
|
||||
|
||||
<d-card class="mt-10 bg-white">
|
||||
<d-card shadow="never" class="mt-10 bg-white">
|
||||
<template #title>
|
||||
<div class="flex items-center">
|
||||
<icon-news class="w-5 mr-2"></icon-news>
|
||||
@ -39,12 +39,21 @@
|
||||
<template #content>
|
||||
<div class="py-1" v-for="i in bdNews" :key="i.id">
|
||||
<a class="devui-link flex justify-between" :href="i.url" target="_blank">
|
||||
<span>{{ i.index }}. {{ i.title }}</span>
|
||||
<span>{{ i.index }}. {{ i.title }}
|
||||
<icon-hot v-show="i.index < 4" class="w-4 text-[#ec66ab] inline-block"></icon-hot>
|
||||
</span>
|
||||
<span class="text-primary">{{ i.hot }}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="mt-2 text-center">
|
||||
<a class="devui-link" href="https://www.baidu.com/s?ie=utf-8&wd=百度新闻" target="_blank">更多</a>
|
||||
<div class="mt-2 justify-between flex items-center">
|
||||
|
||||
<div class="w-2/5 h-px bg-[#ec66ab]"></div>
|
||||
<a class="devui-link text-[#ec66ab] flex items-center" href="https://www.baidu.com/s?ie=utf-8&wd=百度新闻"
|
||||
target="_blank">
|
||||
更多
|
||||
<icon-right class="ml-1 w-4 text-primary inline-block"></icon-right>
|
||||
</a>
|
||||
<div class="w-2/5 h-px bg-[#ec66ab]"></div>
|
||||
</div>
|
||||
</template>
|
||||
</d-card>
|
||||
@ -108,7 +117,4 @@ onUnmounted(() => {
|
||||
src: url('@/assets/font/LCDML.woff2');
|
||||
}
|
||||
|
||||
:deep(.devui-card__shadow--hover:hover, .devui-card__shadow--always) {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user