<template>
	<view>
		<z-navbar title="更新动态" back></z-navbar>
		<view class="ml-20">
			<z-timeline class="mt-24" align="top" v-if="dataList.length">
				<z-timeline-item v-for="(item,index) in dataList" :key="index">
					<view>
						<view class="state_card flex-n fac fjb">
							<view class="state_card_level">
								{{item.sysVersion}}
							</view>
							<view class="state_card_date">
								{{item.updateTime}}
							</view>
						</view>
						<z-card class="back_card mtb-20 " width="593">
							{{item.updateLog}}
						</z-card>
					</view>
				</z-timeline-item>
			</z-timeline>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: []
			};
		},
		mounted() {
			this.getData();
		},
		methods: {
			getData() {
				var productId=uni.getSystemInfoSync().platform == 'ios'?2:1;
				this.$axios.get('system/orderSysUpdateLog/'+productId).then(res => {
					console.log(res)
					this.dataList = res.data.list;
				}).then(err => {
					console.log(err)
				})
			}
		}

	}
</script>

<style scoped lang="scss">
	.state_card {
		font-size: 24rpx;
		width: 646rpx;

		.state_card_level {
			color: #2C8BFF;
		}

		.state_card_date {
			color: #888888;
		}
	}

	.back_card {
		margin-left: 0 !important;
		font-size: 24rpx;
		padding: 26rpx;
		color: #555555;
	}
</style>
