<template>
	<view class="flex-col page">
		<view class="flex-col">
			<view class="flex-col justify-start items-start image-wrapper">
				<image class="image"
					src="https://ide.code.fun/api/image?token=672dbef4c471750012de4bf6&name=c450ffa87845363012613b1e0f522a87.png" />
			</view>
			<view class="flex-col group">
				<view class="flex-row items-center section">
					<image class="image_2"
						src="https://ide.code.fun/api/image?token=672dbef4c471750012de4bf6&name=d7c7e8f082bbf68fe1e60091fa650fcd.png" />
					<view class="ml-6 flex-col items-start flex-1">
						<text class="font text">等待买家付款</text>
						<text class="font_2 text_2 mt-5">请于13分51秒内付款，超时订单将自动关闭</text>
					</view>
				</view>
				<view class="mt-8 flex-row items-center section_2">
					<image class="shrink-0 image_3"
						src="https://ide.code.fun/api/image?token=672dbef4c471750012de4bf6&name=19ebf0fd3bd190ff882354f39ef52d3e.png" />
					<view class="ml-8 flex-col items-start flex-1">
						<!-- <text class="font text_3">张三 15888610253</text> -->
						<view class="font text_3">{{Status.addressSnapshot.name+Status.addressSnapshot.phone}}</view>
						<!-- <text class="mt-12 font_2 text_4">黑龙江省哈尔滨市呼兰区学院路街道288号哈尔滨华德学院</text> -->
						<view class="mt-12 font_2 text_4">{{Status.addressSnapshot.region+Status.addressSnapshot.detailAddress}}
						</view>
					</view>
				</view>
				<view class="mt-8 flex-col section_3">
					<view class="flex-row justify-between self-stretch group_2">
						<view class="flex-row self-center">
							<!--    <image
	              class="image_4"
	              src="https://ide.code.fun/api/image?token=672dbef4c471750012de4bf6&name=be4a0c4089866e086291773796509ef4.png"
	            /> -->
							<view v-for="i in Status.orderItemList" :key="i">
								<image :src="i.goodSnapshot.goodImg" style="height: 50px;width: 50px;" class="image_4"></image>
							</view>
							<view class="flex-col group_3 ml-17">
								<view class="flex-col">
									<view class="flex-row self-stretch">
										<!-- <text class="font">非遗绒花</text> -->
										<view v-for="i in Status.orderItemList" :key="i" class="font">
											{{i.goodSnapshot.name}}
										</view>
										<!-- <text class="ml-4 font">【材料包】</text> -->
										<view v-for="i in Status.orderItemList" :key="i" class="ml-4 font">
											【{{i.goodSnapshot.type}}】
										</view>
									</view>
									<text class="self-start font_2 text_5 mt-11">已选种类：紫色</text>
								</view>
								<view class="mt-38 flex-row items-center">
									<view class="flex-row items-center group_4">
										<!-- <text class="text_6">138.</text> -->
										<view v-for="i in Status.orderItemList" :key="i" class="text_6">
											{{i.goodSnapshot.price}}
										</view>
										<image class="image_5 image_6"
											src="https://ide.code.fun/api/image?token=672dbef4c471750012de4bf6&name=53a8efcd2031289983433ba21eb70050.png" />
									</view>
								</view>
							</view>
						</view>
						<text class="self-start font_3 text_8">×1</text>
					</view>
					<view class="flex-row justify-between items-center self-stretch group_5">
						<text class="font_4 text_9">商品金额</text>
						<view class="flex-row items-center">
							<!-- <text class="font_3">138.00</text> -->
							<view v-for="i in Status.orderItemList" :key="i" class="font_3">
								{{i.goodSnapshot.price}}
							</view>
						</view>
					</view>
					<view class="flex-row justify-between items-center self-stretch group_6">
						<text class="font_4 text_10">优惠券</text>
						<view class="flex-row items-center">
							<text class="font_3">-50.00</text>
						</view>
					</view>
					<view class="flex-row justify-end items-center self-stretch group_7">
						<view class="flex-row items-center group_8">
							<image class="image_5 image_8"
								src="https://ide.code.fun/api/image?token=672dbef4c471750012de4bf6&name=4713f88f0f01fcb4c33fac4a8eba7f0f.png" />
							<text class="font text_11">合计：</text>
						</view>
						<text class="font_3 text_12">88.00</text>
					</view>
					<view class="self-stretch divider view"></view>
					<text class="self-start font_4 text_13">买家留言</text>
					<view class="flex-col justify-start self-stretch text-wrapper">
						<text class="font_2 text_14">
							希望所使用的材料是可持续来源的，并且制作工艺要精细，以确保每一朵花瓣都能生动地展现出绒花的质感和美感。
						</text>
					</view>
					<view class="self-stretch divider view_2"></view>
					<view class="flex-row justify-between self-stretch group_9">
						<text class="font_2 text_15">订单编号：</text>
						<view class="flex-row items-center">
							<!-- <text class="font_5 text_16">E20241005095840091406189</text> -->
							<text class="font_5 text_16">{{Status.orderNumber}}</text>
							<view class="ml-2 flex-col justify-start items-center shrink-0 text-wrapper_2">
								<text class="text_17">复制</text>
							</view>
						</view>
					</view>
					<view class="flex-row justify-between items-center self-stretch group_10">
						<text class="font_2 text_18">创建时间：</text>
						<text class="font_5 text_19">2024-10-05 09:58:41</text>
					</view>
				</view>
			</view>
		</view>
		<view class="flex-row justify-between items-center section_4 mt-284">
			<view class="flex-row items-center" style="margin-left:80px;">
				<!-- <text class="text_21">88.</text> -->
				<text class="font_6 text_20"> 合计：</text>
				<!-- <text class="text_23">00</text> -->
				<view v-for="i in Status.orderItemList" :key="i" class="text_21">
					{{i.goodSnapshot.price}}
				</view>
			</view>
			<view class="flex-col justify-start items-center text-wrapper_3">
				<!-- <text class="font_6 text_22">去支付</text> -->
				<view v-if="Status.orderStatus==='待支付'" class="font_6 text_22">去支付</view>
				<view v-if="Status.orderStatus==='待发货'" class="font_6 text_22">取消订单</view>
				<view v-if="Status.orderStatus==='待收货'" class="font_6 text_22">查看物流</view>
				<view v-if="Status.orderStatus==='待收货'" class="font_6 text_22">确认收货</view>
				<view v-if="Status.orderStatus==='售后'" class="font_6 text_22">售后详情</view>
			</view>
		</view>
	</view>
</template>
<script setup>
import { onMounted, ref } from 'vue'
import { onLoad } from "@dcloudio/uni-app";
const Status = ref({})
console.log(Status.value, 34)
onLoad((options) => {
	Status.value = JSON.parse(options.info);
	console.log(Status.value, 111)
	console.log(Status.value.orderStatus, 222)
})
</script>
<style lang="scss" scoped>
	.mt-5 {
		margin-top: 9.38rpx;
	}

	.ml-17 {
		margin-left: 31.88rpx;
	}

	.mt-11 {
		margin-top: 20.63rpx;
	}

	.mt-284 {
		margin-top: 532.5rpx;
	}

	.page {
		background-color: #f8e8c1;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	.image-wrapper {
		padding: 15rpx 0;
		background-color: #fffef8;
	}

	.image {
		margin-left: 16.88rpx;
		width: 37.5rpx;
		height: 37.5rpx;
	}

	.group {
		padding: 15rpx 15rpx 0;
	}

	.section {
		padding: 16.88rpx 18.75rpx;
		background-color: #fffef8;
		border-radius: 18.75rpx;
	}

	.image_2 {
		width: 75rpx;
		height: 75rpx;
	}

	.section_2 {
		padding: 33.75rpx 18.75rpx;
		background-color: #fffef8;
		border-radius: 18.75rpx;
	}

	.image_3 {
		width: 43.13rpx;
		height: 43.13rpx;
	}

	.font_2 {
		font-size: 22.5rpx;
		font-family: Open Sans;
		line-height: 19.39rpx;
		color: #818181;
	}

	.text_2 {
		color: #6b6e72;
		line-height: 21.34rpx;
	}

	.text_4 {
		line-height: 20.91rpx;
	}

	.section_3 {
		padding: 0 18.75rpx 26.25rpx 24.38rpx;
		background-color: #fffef8;
		border-radius: 18.75rpx;
	}

	.group_2 {
		padding: 22.5rpx 0;
		border-bottom: solid 1.88rpx #dfdfdf;
	}

	.image_4 {
		margin-bottom: 5.63rpx;
		border-radius: 9.38rpx;
		width: 146.25rpx;
		height: 165rpx;
	}

	.group_3 {
		margin-top: 3.75rpx;
	}

	.font {
		font-size: 26.25rpx;
		font-family: Open Sans;
		line-height: 24.43rpx;
		color: #323232;
	}

	.text_3 {
		line-height: 23.77rpx;
	}

	.text {
		color: #323233;
		font-size: 28.13rpx;
		line-height: 26.08rpx;
	}

	.text_5 {
		line-height: 20.79rpx;
	}

	.group_4 {
		width: 90.66rpx;
	}

	.text_6 {
		margin-left: 26.25rpx;
		color: #323232;
		font-size: 33.75rpx;
		font-family: Open Sans;
		font-weight: 600;
		line-height: 24.88rpx;
	}

	.image_5 {
		width: 30rpx;
		height: 30rpx;
	}

	.image_6 {
		margin-left: -90rpx;
	}

	.font_3 {
		font-size: 26.25rpx;
		font-family: Open Sans;
		line-height: 19.39rpx;
		color: #323232;
	}

	.text_7 {
		font-weight: 600;
		line-height: 19.29rpx;
	}

	.text_8 {
		margin-right: 7.5rpx;
		margin-top: 146.25rpx;
		line-height: 18.73rpx;
	}

	.group_5 {
		margin-top: 26.25rpx;
	}

	.font_4 {
		font-size: 26.25rpx;
		font-family: Open Sans;
		line-height: 24.43rpx;
		color: #818181;
	}

	.text_9 {
		line-height: 24.28rpx;
	}

	.group_6 {
		margin-top: 13.13rpx;
	}

	.text_10 {
		line-height: 24.26rpx;
	}

	.image_7 {
		width: 41.25rpx;
		height: 30rpx;
	}

	.group_7 {
		margin-top: 16.88rpx;
	}

	.group_8 {
		width: 102.26rpx;
	}

	.image_8 {
		margin-left: 71.25rpx;
	}

	.text_11 {
		margin-left: -101.25rpx;
		line-height: 24.09rpx;
	}

	.text_12 {
		color: #fb8b05;
	}

	.divider {
		background-color: #dfdfdf;
		height: 1.88rpx;
	}

	.view {
		margin-top: 16.88rpx;
	}

	.text_13 {
		margin-top: 30rpx;
		line-height: 24.21rpx;
	}

	.text-wrapper {
		margin-top: 15rpx;
		padding: 15rpx 0 11.25rpx;
		background-color: #fffef8;
		border-radius: 9.38rpx;
		border-left: solid 1.88rpx #f0f0b5;
		border-right: solid 1.88rpx #f0f0b5;
		border-top: solid 1.88rpx #f0f0b5;
		border-bottom: solid 1.88rpx #f0f0b5;
	}

	.text_14 {
		margin-left: 15rpx;
		margin-right: 18.75rpx;
		line-height: 26.25rpx;
	}

	.view_2 {
		margin-top: 18.75rpx;
	}

	.group_9 {
		margin-top: 22.5rpx;
	}

	.text_15 {
		line-height: 20.85rpx;
	}

	.font_5 {
		font-size: 22.5rpx;
		font-family: Open Sans;
		color: #323232;
	}

	.text_16 {
		line-height: 16.54rpx;
	}

	.text-wrapper_2 {
		background-color: #fffef8;
		width: 50.63rpx;
		height: 22.5rpx;
		border-left: solid 0.94rpx #d1d1d1;
		border-right: solid 0.94rpx #d1d1d1;
		border-top: solid 0.94rpx #d1d1d1;
		border-bottom: solid 0.94rpx #d1d1d1;
	}

	.text_17 {
		color: #323232;
		font-size: 18.75rpx;
		font-family: Open Sans;
		line-height: 17.38rpx;
	}

	.group_10 {
		margin-top: 11.25rpx;
	}

	.text_18 {
		line-height: 20.7rpx;
	}

	.text_19 {
		margin-right: 157.5rpx;
		line-height: 16.63rpx;
	}

	.section_4 {
		padding: 15rpx 26.25rpx;
		background-color: #fffef8;
	}

	.image_9 {
		margin-left: 86.25rpx;
		width: 33.75rpx;
		height: 33.75rpx;
	}

	.text_21 {
		color: #fbb612;
		font-size: 37.5rpx;
		font-family: Open Sans;
		font-weight: 700;
		line-height: 27.62rpx;
	}

	.font_6 {
		font-size: 30rpx;
		font-family: Open Sans;
		line-height: 27.62rpx;
	}

	.text_20 {
		margin-left: -172.5rpx;
		color: #000000;
		line-height: 27.54rpx;
	}

	.text_23 {
		margin-left: 78.75rpx;
		color: #fbb612;
		font-size: 30rpx;
		font-family: Open Sans;
		font-weight: 700;
		line-height: 22.05rpx;
	}

	.text-wrapper_3 {
		padding: 22.5rpx 0;
		background-color: #fbb612;
		border-radius: 75rpx;
		width: 204.38rpx;
		height: 71.25rpx;
	}

	.text_22 {
		color: #ffffff;
		line-height: 27.86rpx;
	}

	@import url(/common/css/global.css);
</style>