<template>
	<view class="exchange_record">
		
	
	<div class="goods-list">
		<div class="goods-item" v-for="(item,index) in 4" :key="index" @click="btn">
			<div class="goods-info">
				<image :src="$util.img('/upload/weapp/user/jl.png')" mode="aspectFill" class="cover"></image>
				<div class="right">
					<div class="name">路易拉菲 法国 原瓶进口红酒原瓶进口红酒备份 5</div>
					<div class="integral">
						<div>2000积分</div>
						<div>x1</div>
					</div>
				</div>
			</div>
			<div class="status-box">
				<div class="status">待付款</div>
				<div class="disburse">
					实付积分：<span>2000</span>
				</div>
			</div>
			<div class="btns">
				<div class="cancel" @click="quxiao">取消</div>
				<div class="btn1" @click="duihuan">待兑换</div>
			</div>
		</div>
	</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods:{
			btn(){
				this.$util.redirectTo('/pages_tool/details/details');
			},
			quxiao(){
				//冒泡
				event.stopPropagation()
				this.$util.showToast({
					title: '取消成功'
				});
			},
			duihuan(){
				event.stopPropagation()
				this.$util.showToast({
					title: '兑换成功',
				})
			}
		}
}
</script>

<style lang="scss">
	
	.exchange_record {
		line-height: 1;
	
		.goods-list {
			padding: 32rpx;
	
			.goods-item {
				background: #FFFFFF;
				border-radius: 24rpx;
				padding: 32rpx;
				margin-bottom: 32rpx;
				.btns {
					display: flex;
					align-items: center;
					justify-content: flex-end;
	
					.btn1 {
						width: 176rpx;
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #fff;
						text-align: center;
						line-height: 60rpx;
						height: 60rpx;
						border-radius: 30rpx;
						margin-left: 24rpx;
						background: #21BBF3;
					}
	
					.cancel {
						width: 176rpx;
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #333333;
						text-align: center;
						line-height: 60rpx;
						height: 60rpx;
						border-radius: 30rpx;
						border: 2rpx solid #E8E8E8;
					}
				}
	
				.status-box {
					display: flex;
					align-items: center;
					justify-content: space-between;
	
					.status {
						font-size: 28rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #F33B50;
					}
	
					.disburse {
						margin: 36rpx 0 22rpx;
						font-size: 28rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #222222;
	
						span {
							font-size: 40rpx;
							font-family: DINAlternate-Bold, DINAlternate;
							font-weight: bold;
							color: #222222;
						}
					}
				}
	
				.goods-info {
					display: flex;
					align-items: center;
	
					.right {
						display: flex;
						flex-direction: column;
						justify-content: space-between;
						height: 176rpx;
	
						.name {
							font-size: 28rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #222222;
							line-height: 40rpx;
						}
	
						.integral {
							display: flex;
							align-items: center;
							justify-content: space-between;
							font-size: 24rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #999999;
						}
					}
	
					.cover {
						margin-right: 24rpx;
						width: 176rpx;
						min-width: 176rpx;
						height: 176rpx;
						border-radius: 8rpx;
					}
				}
			}
	
		}
	
		.tabs {
			background-color: #fff;
			padding: 10rpx 0 6rpx;
		}
	}
	
</style>