<template>
	<view class="productBigBox">
		<!--开票列表-->
		<view class="billing-record" v-for="(item,index) in tableDate" :key="index" @click="tableDateCheckFun(index)">
			<view class="record-title">
				<view class="title-message">
					<view class="message-timer">{{item.timer}}</view>
					<u-icon name="arrow-right"></u-icon>
				</view>
				<view class="title-subject">
					<view class="subject-name">{{item.name}}</view>
					<view class="subject-money">
						<text>¥</text>
						{{item.money}}
					</view>
				</view>
			</view>
			<view class="record-bottom">
				<view class="bottom-name" v-if="item.onType==0">开票中</view>
				<view class="bottom-name bottom-name2" v-else>已开票</view>
				<view class="bottom-btnCase">
					<view class="bottom-btn">催一催</view>
					<view class="bottom-btn bottom-btn2">已催促</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
  data() {
    return {
      tableDate:[
        {
          name:'长江索道 (索道南站单程)',
          timer:'2025-02-20 11.20',
          money:'20.00',
          onType:'0'
        },
        {
          name:'长江索道 (索道南站单程)',
          timer:'2025-02-21 11.20',
          money:'21.00',
          onType:'0'
        },
        {
          name:'长江索道 (索道南站单程)',
          timer:'2025-02-22 11.20',
          money:'22.00',
          onType:'1'
        }
      ],//列表内容
      pageIndex:1,//当前页
      pageTotal:0,//总条数
    }
  },
  onLoad(option) {
			
  },
  methods: {
    getData(){//列表加载
      console.log('加载了')
    },
  },
  onReachBottom(){//上拉加载
    this.pageIndex++
    this.getData()
  },
}
</script>

<style scoped="scoped" lang="scss">
.productBigBox{
	background: #F7F8FA;
	min-height: 100vh;
	position: relative;
	padding:20rpx 0 20rpx 0;
}
.billing-record{
	width: 710rpx;
	height: 260rpx;
	background: #FFFFFF;
	border-radius: 8rpx;
	margin-bottom: 20rpx;
	.record-title{
		padding: 36rpx 36rpx 26rpx 36rpx;
		border-bottom: solid 2rpx #F5F5F5;
		.title-message{
			display: flex;
			justify-content: space-between;
			margin-bottom: 22rpx;
			.message-timer{
				font-weight: 400;
				font-size: 28rpx;
				color: #999999;
				line-height: 32rpx;
			}
			::v-deep .u-icon__icon{
				font-size: 28rpx !important;
				line-height: 28rpx !important;
				color: #D8D8D8 !important;
			}
		}
		.title-subject{
			display: flex;
			justify-content: space-between;
			.subject-name{
				font-weight: 600;
				font-size: 28rpx;
				color: #333333;
				line-height: 44rpx;
			}
			.subject-money{
				font-weight: 600;
				font-size: 32rpx;
				color: #333333;
				line-height: 44rpx;
				text{
					font-size: 28rpx;
				}
			}
		}
	}
	.record-bottom{
		display: flex;
		justify-content: space-between;
		padding: 18rpx 36rpx 16rpx 36rpx;
		.bottom-name{
			font-weight: bold;
			font-size: 28rpx;
			color: #FE6600;
			line-height: 64rpx;
		}
		.bottom-name2{
			color: #00B42B;
		}
		.bottom-btnCase{
			display: flex;
		}
		.bottom-btn{
			width: 160rpx;
			height: 64rpx;
			background: #FFFFFF;
			border-radius: 8rpx;
			border: 2rpx solid #D5D5D5;
			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
			line-height: 60rpx;
			text-align: center;
		}
		.bottom-btn2{
			margin-left: 24rpx;
			background: #F9F9F9;
			color: #999999;
		}
	}
}
</style>
