<template>
	<view class="content">
		<!-- 消息列表 -->
		<block v-for="(item,index) in maglistDemo" :key='index'>
			<msg-list :item='item' :index="index"></msg-list>
		</block>
	</view>
</template>

<script>
	import msgList from '@/components/msg/msg-list.vue'
	export default {
		components: {
			msgList
		},
		data() {
			return {
				maglistDemo: [{
						avatar: '/static/img/msg.png',
						updata_time: 1580649044, //时间戳
						username: '系统消息',
						data: '恭喜你,你已从营长升级至团长'
					},
					{
						avatar: '/static/img/msg.png',
						updata_time: 1580649044, //时间戳
						username: '系统消息',
						data: '恭喜你,你已从营长升级至团长'
					},
				]
			}
		}
	}
</script>
<style lang="scss">
	
</style>
