123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <template>
- <view class="timeline">
- <view class="timelineItem">
- <view class="timeItem" v-for="(item, index) in timeList" :key="index">
- <view class="line">
- <view class="out" :style="{ background: color == '' ? '' : color }">
- <view class="inner" :style="{ background: color == '' ? '' : color }"></view>
- </view>
- </view>
- <view class="rightContent">
- <view class="time-content"> {{ item.PublishDate }}</view>
- <view class="title-content text_twoLine"> {{ item.Title }}</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { Home } from "@/config/api";
- export default {
- props: {
- timeList: {
- type: Array,
- default: [],
- required: true,
- },
- },
- data() {
- return {
- color: "#376cbb",
- };
- },
- computed: {},
- methods: {},
- };
- </script>
- <style lang="scss" scoped>
- .container-report-item {
- width: 100%;
- background: #ffffff;
- box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(0, 0, 0, 0.16);
- border-radius: 8rpx;
- padding: 20rpx;
- margin-bottom: 20rpx;
- overflow: hidden;
- }
- .timeline {
- padding: 20rpx;
- }
- .timelineItem {
- .timeItem {
- display: flex;
- margin-top: 10rpx;
- .line {
- width: 1px;
- background: rgba(204, 204, 204, 1);
- position: relative;
- .out {
- position: absolute;
- top: 0;
- left: 50%;
- transform: translateX(-50%);
- display: flex;
- justify-content: center;
- align-items: center;
- width: 28rpx;
- height: 28rpx;
- background: rgba(236, 104, 23, 0.6);
- border-radius: 50%;
- .inner {
- width: 18rpx;
- height: 18rpx;
- background: rgba(236, 104, 23, 1);
- border-radius: 50%;
- }
- }
- }
- .rightContent {
- flex: 1;
- margin-left: 20rpx;
- font-size: 24rpx;
- height: 110rpx;
- .time-content {
- color: #666666;
- }
- .title-content {
- color: #376cbb;
- line-height: 36rpx;
- }
- }
- }
- }
- </style>
|