<template>
	<view class="page">
		<navbar :title="title[type]" leftClick @leftClick="$utils.navigateBack" />
		<view class="box">
			<view class="box-imgs">
				<view
				:key="index"
				@click="$utils.navigateTo(`/pages_order/home/notice?id=${item.id}&type=${type}`)"
				class="box-img"
				v-for="(item, index) in list">
					<image :src="item.image" mode="aspectFill"></image>
					<view>{{ item.title }}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import mixinsList from '@/mixins/list.js'
	export default {
		mixins: [mixinsList],
		data() {
			return {
				mixinsListApi: 'getInfoIntroduce',//获取相关介绍
				title : ['公司介绍', '产品介绍', '关于我们', '其他'],
				type : 0,
			}
		},
		onLoad({type}) {
			this.type = type || 0
			this.queryParams.type = this.type
		},
		computed: {},
		methods: {}
	}
</script>

<style scoped lang="scss">
	.page {
		height: 100Vh;
		background-color: #F3F3F3;

		.box {
			margin: 20rpx;
			image{
				width: 220rpx;
				height: 400rpx;
			}
			.box-imgs {
				display: flex;
				justify-content: space-between;
				flex-wrap: wrap;
				.box-img{
					border-radius: 20rpx;
					overflow: hidden;
					position: relative;
					view{
						position: absolute;
						left: 50%;
						transform: translate(-50%);
						bottom: 80rpx;
						color: #fff;
						background-color: #A3D250;
						border-radius: 30rpx;
						width: 80%;
						height: 60rpx;
						line-height: 60rpx;
						text-align: center;
					}
				}
			}
		}
	}
</style>