123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <view class="trajectory">
- <view class="title">访问轨迹</view>
- <time-axis v-for="item in trajectoryList" :key="item.id">
- <template #title>
- <text>{{item.time}}</text>
- </template>
- <template #content>
- <view class="time-axis-content">
- <image :src="item.image || '../../../../static/temp/icon-new@2x.png'" class="axis-product" mode=""></image>
- <view class="axis-product-info">
- <view class="product-title">【{{item.title}}】</view>
- <view class="product-info">{{item.content}}</view>
- </view>
- </view>
- </template>
- </time-axis>
- </view>
- </template>
- <script>
- import TimeAxis from './time-axis.vue'
- export default {
- props: {
- trajectoryList: {
- type: Array,
- default: () => ([
- {}
- ])
- }
- },
- components: {
- TimeAxis
- },
- data() {
- return {}
- }
- }
- </script>
- <style lang="scss">
- .trajectory {
- margin: 24rpx auto;
- width: 702rpx;
- background-color: #fff;
- border-radius: 16rpx;
- padding: 40rpx 32rpx;
- box-sizing: border-box;
- .title {
- color: #333333;
- font-size: 28rpx;
- font-weight: bold;
- margin-bottom: 30rpx;
- }
- }
- .axis-product {
- width: 136rpx;
- height: 136rpx;
- object-fit: contain;
- }
- .axis-product-info {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- height: 136rpx;
- width: 426rpx;
- color: #333333;
- font-size: 26rpx;
- margin-left: 24rpx;
- }
- .time-axis-content {
- display: flex;
- align-items: center;
- }
- </style>
|