| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <template>
- <view class="journal">
- <view class="item" v-for="(item, index) in list" :key="index">
- <view class="time">
- <view>{{ $util.timeFormat(item.action_time).split(' ')[0] }}</view>
- <view>{{ $util.timeFormat(item.action_time).split(' ')[1] }}</view>
- </view>
- <view class="unit">
- <view class="top">
- <view class="core"></view>
- <view class="unit-separate"></view>
- </view>
- </view>
- <view class="message">{{ item.action }}</view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- list: {
- type: Array,
- default: []
- }
- },
- data() {
- return {};
- },
- mounted() {},
- methods: {}
- };
- </script>
- <style scoped lang="scss">
- .journal {
- padding-left: 0.1rem;
- box-sizing: border-box;
- .item {
- width: 100%;
- height: 0.7rem;
- display: flex;
- .time {
- margin-right: 0.1rem;
- min-width: 1rem;
- view:nth-child(1) {
- font-size: 0.16rem;
- margin-bottom: 0.1rem;
- text-align: right;
- }
- view:nth-child(2) {
- font-size: 0.14rem;
- color: #999999;
- text-align: right;
- }
- }
- }
- .unit {
- width: 0.18rem;
- height: 100%;
- margin-right: 0.1rem;
- .top {
- width: 0.18rem;
- height: 0.18rem;
- border-radius: 50%;
- background: $uni-color-primary;
- position: relative;
- .core {
- background: #ffffff;
- width: 0.08rem;
- height: 0.08rem;
- border-radius: 50%;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- z-index: 999;
- }
- .unit-separate {
- position: absolute;
- width: 0.01rem;
- height: 0.7rem;
- position: absolute;
- top: 0;
- left: 50%;
- transform: translateX(-50%);
- background: $uni-color-primary;
- z-index: 555;
- }
- }
- }
- .message {
- font-size: 0.14rem;
- }
- }
- </style>
|