<template>
	<view>
		<view class="elec-content">
			<view class="elec-card bg-white" v-for="(i, index) in custInvoiceHisDetailDTOList">
				<view class="elec-card-left float-left">
					<view class="elec-card-msg">{{i.plName}}</view>
					<view class="elec-card-msg">{{i.carNumber}}</view>
					<view class="elec-card-msg">{{$common.formatDate(i.orderDate)}}</view>
					<!--<view class="elec-card-msg">应收¥{{(i.orderTotalFee/100).toFixed(2)}}</view>-->
				</view>
				<view class="elec-card-right float-right">
					<view class="elec-card-text">
						实收    ¥{{(i.orderActFee/100).toFixed(2)}}元
					</view>
				</view>
			</view>
			<!--<view class="elec-card bg-white">-->
			<!--<view class="elec-card-left float-left">-->
			<!--<view class="elec-card-msg">黄石肯特科技发展有限公司</view>-->
			<!--<view class="elec-card-msg">折扣券</view>-->
			<!--<view class="elec-card-msg">万达车场8折折扣券</view>-->
			<!--<view class="elec-card-msg">¥5元/张 X 15张</view>-->
			<!--</view>-->
			<!--<view class="elec-card-right float-right">-->
			<!--<view class="elec-card-text">-->
			<!--75.00元-->
			<!--</view>-->
			<!--</view>-->
			<!--</view>-->

			<!--<view  class="novipcard_Mid">-->
			<!--<image class="novipcard" src="../../static/vipcard/novipcard.png" mode="aspectFit"></image>-->
			<!--<view class="novipcard_txt">-->
			<!--暂无记录-->
			<!--</view>-->

			<!--</view>-->

		</view>
	</view>
</template>

<script>
export default {
  data() {
    return {
      custInvoiceHisDetailDTOList:'',
      index:0,
    }
  },
  onLoad(params) {
    var pages = getCurrentPages();//当前页
    var beforePage = pages[pages.length - 3];//上二个页面
    console.log(beforePage.$vm.list)
    console.log(params)
    this.index = params.index
    this.custInvoiceHisDetailDTOList = beforePage.$vm.list[this.index].custInvoiceHisDetailDTOList
    console.log(this.custInvoiceHisDetailDTOList)
  },
  methods: {}
}
</script>

<style lang="scss">
	.elec-content {
		width: 100%;
		height: 100vh;
	}

	.elec-card {
		width: 100%;
		/*height: 200upx;*/
		padding: 22upx 30upx;
		line-height: 32upx;
		border-bottom: 1px solid #e5e5e5;
		overflow: hidden;
	}

	.elec-card-left {
		width: 70%;
		/*height: 200upx;*/

	}

	.elec-card-right {
		width: 30%;
		/*height: 200upx;*/
		/*line-height: 200upx;*/
	}

	.elec-card-msg {
		line-height: 50upx;
		color: rgba(0, 0, 0, .7);

	}

	.elec-card-text {
		font-size: 32upx;
		font-weight: bold;
	}
</style>
