<template>
	<view class="headInfo">
		<uni-icons class="icon" type="back" size="21" @click="toBack" />
		{{title}}
		<uni-icons type="bottom" size="18" />
	</view>
</template>

<script>
	export default {
		name: "headView",
		props: {
			title: {
				type: String
			},
		},
		methods: {
			toBack() {
				uni.navigateBack('-1')
			}

		}
	}
</script>

<style lang="less" scoped>
	.headInfo {
		position: relative;
		background-color: #fff;
		border-bottom: 1px solid #999999;
		height: 40px;
		line-height: 40px;
		font-size: 18px;
		text-align: center;

		.icon {
			position: absolute;
			top: 3px;
			left: 10px;
		}

	}
</style>