<template>
	<div class="bar_menu">
		<div class="list">
			<div @click="event_click(o)" class="item" v-for="(o, i) in list" :key="i">
					<div class="media">
						<mm_icon :src="o[vm.img]"></mm_icon>
					</div>
					<div class="title">
            <span>{{ o[vm.title] }}</span>
					</div>
			</div>
		</div>
	</div>
</template>

<script>
	import mixin from '/src/mixins/component.js'
	export default {
		mixins: [mixin],
		props: {
			list: {
				type: Array,
				default () {
					return [{
							title: "手机兑换",
							img: "/img/default.png",
							url:"#"
						},
						{
							title: "生活",
							img: "/img/default.png",
							url:"#"
						},
						{
							title: "Q币兑换",
							img: "/img/default.png",
							url:"#"
						},
						{
							title: "城市服务",
							img: "/img/default.png",
							url:"#"
						},
						{
							title: "腾讯公益",
							img: "/img/default.png",
							url:"#"
						},
					];
				},
			},
		},
		methods: {
      // 发射事件
      event_click(o) {
      	if (this.func) {
      		this.func(o);
      	}
      },
		},
		components: {},
	};
</script>

<style scoped>

</style>
