<template>
	<view class="grade" :style="{marginTop:margin+'rpx'}">
		<image :src="path + 'icon-grade'+grade+'.png'" mode=""></image>
	</view>
</template>

<script>
	export default{
		name:"grade",
		props:{
			grade:{	//等级
				type: Number,
			},
			margin:{
				type:Number,
				default:12
			}
		},
		data() {
			return {
				path:'https://static.caimei365.com/app/img/icon/'
			};
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	.grade{
		width: 114rpx;
		height: 33rpx;
		float: left;
		image{
			width: 110rpx;
			height: 29rpx;
			display: block;
		}
	}
</style>
