1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <view>
- <view class="fs-version-list">
- <view class="fs-version-list-item" v-for="item in vList" :key="item.number">
- <view class="flex justify-between align-center">
- <view class="fs-version-bd primary">{{item.number}}</view>
- <view class="fs-version-time">
- <fs-date-format :date="item.date"></fs-date-format>
- </view>
- </view>
- <view class="title">本次更新</view>
- <view class="content">{{item.content}}</view>
- </view>
- </view>
- <fs-empty v-if="loaded && !vList.length"></fs-empty>
- </view>
- </template>
- <script setup>
- import { ref, reactive } from 'vue'
- import { getVersionList } from '@/services/common'
- let vList = ref([])
- let loaded = ref(false)
- getVersionList().then(res => {
- vList.value = res.data
- loaded.value = true
- }).catch(err => {
- loaded.value = true
- })
- </script>
- <style lang="scss" scoped>
- .fs-version-list{
- background-color: #fff;
- padding: 0 var(--gutter);
-
- &-item {
- padding: 20rpx 0;
- &+& {
- border-top: 2rpx solid #DDDFE5;
- }
- }
- .title{
- color: #162746;
- font-size: 15px;
- line-height: 26px;
- }
- .content {
- color: #5E6678;
- position: relative;
- padding-left: 30rpx;
- line-height: 26px;
- &::before {
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 8rpx;
- height: 8rpx;
- border-radius: 50%;
- background-color: var(--primary);
- content: '';
- }
- }
- }
-
- .fs-version{
- &-time{
- font-size: 13px;
- color: #5E6678;
- letter-spacing: 1px;
- }
- &-bd{
- font-size: 18px;
- position: relative;
-
- &::before {
- position: absolute;
- bottom: 5px;
- left: 0;
- width: 100%;
- height: 5px;
- background-color: currentColor;
- opacity: 0.2;
- content: '';
- }
- }
- }
- </style>
|