<script setup>
	import {ref} from 'vue';
	const historyList = ref([
	      {
	        imgUrl: 'https://img.zcool.cn/community/0105ec5b5ac3cba801206a35cf08a8.jpg@1280w_1l_2o_100sh.jpg',
	        title: '大表哥',
			sale:'167',
			star:'4',
			time:'刚才',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
			
	      },
	      {
	        imgUrl: 'https://ts1.cn.mm.bing.net/th/id/R-C.63e4b0a881283cbd46f07e77c2bbd491?rik=vWq%2fKkimZ5n2XQ&riu=http%3a%2f%2fseopic.699pic.com%2fphoto%2f50014%2f5917.jpg_wh1200.jpg&ehk=KCX2DzgqaiIJnMJZUyFc%2btT9ILzKGslHE8oaSAKORdE%3d&risl=&pid=ImgRaw&r=0',
	        title: '美食猎人',
	        sale:'324',
	        star:'4',
	        time:'刚才',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
	      },
	     {
	       imgUrl: 'https://img.zcool.cn/community/0189d85c3c421aa80121fbb0284f6c.jpg@1280w_1l_2o_100sh.jpg',
	       title: '吃货小能手',
	       sale:'566',
	       star:'4',
	       time:'刚才',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
	     },
	     {
	       imgUrl: 'https://ts1.cn.mm.bing.net/th/id/R-C.b3a7697d2793ba094a861d546c31190d?rik=NevOIW4XmkUuMA&riu=http%3a%2f%2fseopic.699pic.com%2fphoto%2f50069%2f5445.jpg_wh1200.jpg&ehk=wuLPicg%2b9wXz8QAwp%2fAVFBtJQ6loBUiVfQZu2bbZODA%3d&risl=&pid=ImgRaw&r=0',
	       title: '午夜觅食者',
	       sale:'567',
	       star:'4',
	       time:'1分钟前',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
	     },
	     {
	       imgUrl: 'https://img.zcool.cn/community/0192885d01b363a801213ec27c862a.jpg@1280w_1l_2o_100sh.jpg',
	       title: '素食爱好者',
	       sale:'234',
	       star:'4',
	       time:'40min',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
	     },
		 {
		   imgUrl: 'https://img.zcool.cn/community/018aab5cc14900a801214168fdffc2.jpg@1280w_1l_2o_100sh.jpg',
		   title: '加班狗',
		   sale:'123',
		   star:'4',
		   time:'40min',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
		 },
		 {
		   imgUrl: 'https://ts1.cn.mm.bing.net/th/id/R-C.68978afc71576a94a1d50ef5016dbd9e?rik=cDDsy5SLmDvDHQ&riu=http%3a%2f%2fseopic.699pic.com%2fphoto%2f50075%2f0779.jpg_wh1200.jpg&ehk=FG4Hd5S711LYcuLBIcDagQyk4KhcH1oIfqyk1MWUOyg%3d&risl=&pid=ImgRaw&r=0',
		   title: '甜品达人',
		   sale:'234',
		   star:'4',
		   time:'40min',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
		 },
		 {
		   imgUrl: 'https://img95.699pic.com/photo/50093/6813.jpg_wh860.jpg',
		   title: '快餐侠',
		   sale:'234',
		   star:'4',
		   time:'40min',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
		 },
		 {
		   imgUrl: 'https://bpic.588ku.com/back_origin_min_pic/23/04/19/05f178d63677c98d3db402d63fac38d2.jpg',
		   title: '大表哥',
		   sale:'23',
		   star:'4',
		   time:'40min',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
		 },
		 {
		   imgUrl: 'https://img95.699pic.com/photo/50093/6813.jpg_wh860.jpg',
		   title: '大表哥',
		   sale:'12',
		   star:'4',
		   time:'40min',
			message:'这次点的外卖真是超乎预期的好吃！【香辣鸡腿堡】外皮酥脆，鸡肉鲜嫩多汁，辣度适中，每一口都是满满的幸福感。【薯条】也是惊喜，又脆又香，完全没有油腻感。最棒的是配送员【小张】，准时送达，态度亲切，还特意提醒我餐品有点烫，小心食用。整体体验满分，下次还会再点！'
		 },
	    ])
</script>
<template>
	<view class="container">
	  <view class="history-list">
	    <view class="history-item" v-for="(item, index) in historyList" :key="index">
	      <view class="history-info">
			<image class="history-img" :src="item.imgUrl"></image>
			<view class="nameTime">
				<text class="history-title">{{ item.title }}</text>
				<text class="time">{{item.time}}</text>
			</view>
			  <view class="star">
				  <text class="history-sale">{{ item.sale }}</text>
			      <uni-icons type="hand-up" size="24" class="star"></uni-icons>
			  </view>
	      </view>
		<view class="extend">
			<text>{{item.message}}</text>
		</view>
	    </view>
	  </view>
	  </view>
</template>
<style lang="scss">
page {
  height: 100%;
  overflow: hidden;
}

.viewport {
  height: 100%; 
  display: flex;
  flex-direction: column;
}
.container {
  align-items: center;
  padding: 20rpx;
}

.history-list {
  width: 100%;
}

.history-item {
  padding: 10px 0px 10px 5px;
  margin-bottom: 20rpx;
}
.history-img {
  width: 100rpx;
  height: 100rpx;
  margin-right: 20rpx;
  border-radius: 20rpx;
}

.history-info {
  display: flex;
  flex-direction: row;
}
.nameTime {
	display: flex;
	flex-direction: column;
}

.history-title {
  font-size: 32rpx;
  font-weight: bold;
  width: 170px;
}
.time {
	font-size: 24rpx;
	color: #999;
}

.star {
	display: inline-block;
	line-height: 15px;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	padding-left: 70px;
}
.history-sale {
	font-size: 30rpx;
	color: #000;
	float: right;
	display: inline-block;
	line-height: 15px;
	font-weight: 700;
}
.extend {
	font-size: 24rpx;
	color: #999;
	padding-top: 10px;
}

</style>