<template>
	<view class="submit">
		<view class=""
		@click="$emit('share')">
			<button open-type="share"
			class="share">
				<uv-icon
				size="40rpx"
				name="share-square"></uv-icon>
				<view class="">
					分享
				</view>
			</button>
		</view>
		<view class=""
		@click="$emit('collect')">
			<button
			class="share">
				<uv-icon
				size="40rpx"
				name="star"></uv-icon>
				<view class="">
					收藏
				</view>
			</button>
		</view>
		<view class=""
		@click="$utils.navigateTo('/pages_order/mine/cart')">
			<button
			class="share">
				<uv-icon
				size="40rpx"
				name="shopping-cart"></uv-icon>
				<view class="">
					购物车
				</view>
			</button>
		</view>
		<view class="btn"
		@click="$emit('submit')">
			{{ submiitTitle }}
		</view>
	</view>
</template>

<script>
	export default {
		name:"submit",
		props : {
			submiitTitle : {
				default : '立即购买',
				type : String,
			},
			detail : {
				default : {}
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
.submit{
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100vw;
	background-color: #fff;
	height: 100rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24rpx;
	.btn{
		background: $uni-color;
		width: 340rpx;
		height: 80rpx;
		color: #fff;
		border-radius: 40rpx;
		font-size: 28rpx;
	}
	view{
		width: 100rpx;
		margin: 0 10rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
}
</style>
