<template>
	<view>
		<view @click="$jump('/pages/order/detail?id='+item.id)" class="card" v-for="(item,index) in list" :key="index">
			<view class="center">
				<image
					src="https://guosen-bucket-ldt.obs.cn-south-1.myhuaweicloud.com:443/b15e8992179b4b30b9bdb943d8ad9c07-uWGk0l5GutNQ3013850822b2cdb5f77a445ce68ab57e.jpeg"
					mode="aspectFill"></image>
			</view>
			<view class="content">
				<view class="flex justify-between">
					<text class="text-bold text-lg">杨国福麻辣烫</text>
					<view class="">
						<text v-if="item.payStatus=='付款成功'" class="text-base">{{item.orderStatus}}</text>
						<text v-else class="text-base">{{item.payStatus}}</text>
					</view>
				</view>
				
				<view style="font-size: 26rpx;color: #888888;">
					<view class="margin-bottom-10">
						<text>{{item.id}}</text>
						<text @click.stop="$util.copy(item.id)" class="margin-left-10 text-black">复制</text>
					</view>
					<view class="flex justify-between ">
						<text class="center">{{item.createTime}}</text>
						<text class="">消费：{{item.totalPrice / 100}}元</text>
					</view>
				</view>

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

<script>
	export default {
		props:{
			list:Array
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.card {
		margin: 10rpx;
		background-color: #FFFFFF;
		display: flex;
		padding: 18rpx;

		image {
			width: 150rpx;
			height: 150rpx;
			border-radius: 8rpx;
		}

		.content {
			width: calc(100% - 140rpx - 20rpx - 20rpx);
			margin-left: 20rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
		}
	}
</style>
