fix bug
parent
1f20c6f589
commit
a79a3dfa14
|
|
@ -3,6 +3,7 @@ import { getArticlePage, report, cateFileList, newDataList } from '@/api/daikin/
|
||||||
import { message } from '@/utils/message'
|
import { message } from '@/utils/message'
|
||||||
import { Swiper, SwiperSlide } from 'swiper/vue'
|
import { Swiper, SwiperSlide } from 'swiper/vue'
|
||||||
import { Autoplay, Navigation, Pagination, A11y } from 'swiper'
|
import { Autoplay, Navigation, Pagination, A11y } from 'swiper'
|
||||||
|
import { isNotOneWeekAgo } from '@/utils'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
// import { NCarousel } from 'naive-ui'
|
// import { NCarousel } from 'naive-ui'
|
||||||
|
|
||||||
|
|
@ -208,6 +209,14 @@ fetchNewDataList()
|
||||||
>
|
>
|
||||||
<swiper-slide v-for="(i, index) of newsData" :key="index"> -->
|
<swiper-slide v-for="(i, index) of newsData" :key="index"> -->
|
||||||
<div height="310px" class="h-310px overflow-hidden">
|
<div height="310px" class="h-310px overflow-hidden">
|
||||||
|
<!-- <div
|
||||||
|
class="absolute flex flex-col w-full h-full z-200 top-0 left-0 text-center bg-red justify-center items-center"
|
||||||
|
style="background-color: rgba(255, 255, 255, 0.8)"
|
||||||
|
>
|
||||||
|
<img src="@/assets/images/chah.png" />
|
||||||
|
<br />
|
||||||
|
<div class="text-#5683DB text-36px">【做成中,敬请期待】</div>
|
||||||
|
</div> -->
|
||||||
<!-- <div class="text-black mb-10px" v-for="(item, index) of newsData" :key="index"> -->
|
<!-- <div class="text-black mb-10px" v-for="(item, index) of newsData" :key="index"> -->
|
||||||
<div class="text-black mb-10px" v-for="(i, index) in newsData" :key="index">
|
<div class="text-black mb-10px" v-for="(i, index) in newsData" :key="index">
|
||||||
<div class="flex justify-between items-center mb4px" v-if="index === 0">
|
<div class="flex justify-between items-center mb4px" v-if="index === 0">
|
||||||
|
|
@ -224,7 +233,12 @@ fetchNewDataList()
|
||||||
@click="toDetail2(i)"
|
@click="toDetail2(i)"
|
||||||
class="text-#142142 truncate text-18px font-bold w-95% no-underline text-#142142 cursor-pointer hover:underline h-16px leading-16px"
|
class="text-#142142 truncate text-18px font-bold w-95% no-underline text-#142142 cursor-pointer hover:underline h-16px leading-16px"
|
||||||
>
|
>
|
||||||
<!-- <img class="h-20px" src="@/assets/images/NEW.gif" alt="" /> -->
|
<img
|
||||||
|
v-if="isNotOneWeekAgo(i.createTime)"
|
||||||
|
class="h-20px"
|
||||||
|
src="@/assets/images/NEW.gif"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
<span>{{ i.title || '' }}</span>
|
<span>{{ i.title || '' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-#808696 ml20px text-14px flex items-center justify-between mb-10px">
|
<div class="text-#808696 ml20px text-14px flex items-center justify-between mb-10px">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue