<template>
	<view class="invoice">
		<view class="invoice-tab">
			 <u-tabs height="126" :list="list" :is-scroll="false" v-model="current" active-color="#FF2525" inactive-color="#6F6F6F" font-size="30" ></u-tabs>
		</view>
		<view class="invoice-bd" v-if="current == 0">
			<view class="item" v-for="i in 10" :key="i">
				<view class="a">飞科网络科技有限公司</view>
				<view class="b">
					<view class="p">￥<text>150</text></view>
					<view class="t">2023-12-31</view>
				</view>
			</view>
		</view>
		<view class="invoice-bd" v-else>
			<view class="li">
				<view class="a">普通发票抬头-个人</view>
				<view class="b">
					<view class="d">
						<view class="n">王大富</view>
					</view>
					<view class="e">
						<image src="@/static/order/edit.png"></image>
					</view>
				</view>
			</view>
			<view class="li">
				<view class="a">普通发票抬头-单位</view>
				<view class="b">
					<view class="d">
						<view class="n">飞科网络科技有限公司</view>
						<view class="s">税号：FHH123</view>
					</view>
					<view class="e">
						<image src="@/static/order/edit.png"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '发票记录'
				}, {
					name: '发票抬头'
				}],
				current: 1
			};
		}
	}
</script>

<style lang="scss" scoped>
.invoice{
	&-tab{
		margin-top: 6rpx;
		overflow: hidden;
	}
	&-bd{
		overflow: hidden;
		.li{
			padding: 40rpx 35rpx 40rpx 64rpx;
			overflow: hidden;
			background-color: #fff;
			.a{
				font-size: 32rpx;
				font-weight: 400;
				color: #454545;
			}
			.b{
				display: flex;
				align-items: baseline;
				justify-content: space-between;
				margin-top: 30rpx;
				.d{
					color: #AEAEAE;		
					font-size: 32rpx;
					line-height: 60rpx;
				}
				.e{
					width: 44rpx;
					height: 44rpx;
					image{
						width: 100%;
						height: 100%;
					}
				}
			}
		}
		.item{
			padding: 40rpx 35rpx 40rpx 64rpx;
			overflow: hidden;
			background-color: #fff;
			margin-top: 10rpx;
			.a{
				font-size: 32rpx;
				font-weight: 400;
				color: #454545;
			}
			.b{
				display: flex;
				align-items: baseline;
				justify-content: space-between;
				margin-top: 30rpx;
				.p{
					color: #F21A1C;		
					font-size: 24rpx;
					text{
						font-size: 32rpx;
					}
				}
				.t{
					font-size: 32rpx;
					font-weight: 400;
					color: #AEAEAE;
				}
			}
		}
	}
}
</style>
