<template name="button">
	<view class="button-template">
		<!-- 底部按钮 -->
		<view class="button-content">
			<view class="btn btn-color" @click.stop="btnConfirm('cancel',hanldData)">撤销发货</view>
			<view class="btn btn-color" @click.stop="btnConfirm('add',hanldData)">添加物流</view>
		</view>
	</view>
</template>

<script>
	export default{
		name:"button",
		props:{
			hanldData: {
				type:Object
			}
		},
		data() {
			return{

			}
		},
		created(){
			
		},
		computed: {
			
		},
		methods:{
			btnConfirm(type,hanldData){
				let data = { hanldType:type,hanldData:hanldData }
				this.$emit('buttonConfirm',data)
			}
		}
	}
</script>

<style lang="scss">
	.button-template{
		width: 100%;
		height: auto;
		float: left;
		background: #FFFFFF;
		.button-content{
			width: 702rpx;
			padding: 0 24rpx;
			height: auto;
			float: left;
			position: relative;
			.share-code{
				width: 200rpx;
				height:  64rpx;
				line-height: 64rpx;
				color: #2A45FF;
				text-align: left;
				position: absolute;
				font-size: $font-size-28;
				font-weight: bold;
				left: 24rpx;
				top: 24rpx;
			}
			.btn{
				width: 160rpx;
				height:  64rpx;
				margin:22rpx;
				line-height: 64rpx;
				font-size:$font-size-26;
				color: #FFFFFF;
				text-align: center;
				border-radius: 10rpx;
				float: right;
			}
			.btn-color{
				background: $btn-confirm;
				margin: 22rpx 0 22rpx 22rpx;
			}
			.btn-cancel{
				background:#FFFFFF;
				color: #999999;
				float: left;
				margin: 22rpx 0;
				text-align: left;
			}
			.btn-delete{
				background:linear-gradient(315deg,rgba(255,163,3,1) 0%,rgba(255,53,1,1) 100%);
			}
			.btn-query{
				background:linear-gradient(135deg,rgba(255,212,129,1) 0%,rgba(198,129,0,1) 100%);
			}
			.btn-confirm{
				background:linear-gradient(315deg,rgba(231,0,0,1) 0%,rgba(255,104,1,1) 100%);
			}
			.btn-share{
				background:linear-gradient(315deg,rgba(0,212,150,1) 0%,rgba(126,243,174,1) 100%);
				margin-right: 0;
				position: relative;
				.tips{
					width: 160rpx;
					height: 34rpx;
					padding: 10rpx 10rpx;
					background:linear-gradient(45deg,rgba(0,0,0,1) 0%,rgba(87,87,87,1) 100%);
					box-shadow:0px 2px 4px 0px rgba(0,0,0,0.2);
					border-radius: 8rpx;
					position: absolute;
					color: #FFFFFF;
					line-height: 34rpx;
					font-size: $font-size-24;
					text-align: left;
					right: 0;
					top: -65rpx;
					&:before{
						content: "";
						width: 25rpx;
						height: 25rpx;
						background:linear-gradient(45deg,rgba(0,0,0,1) 0%,rgba(87,87,87,1) 100%);
						position: absolute;
						bottom: -8rpx;
						right: 30rpx;
						z-index: -1;
						transform:rotate(45deg);
					}
				}
			}
		}
	}
</style>
