order-module.vue 1.3 KB
<template>
	<view class="order-module">
		<view class="top-wrap">
			<view class="sub-title">{{subTitle}}</view>
			<view class="right">
				全部订单 <uv-icon name="arrow-right" top="2rpx" size="12"></uv-icon>
			</view>
		</view>
		<view class="item-wrap">
			<view class="item-inner" @click="toDifPages(item.pageUrl)" v-for="item in mineOrderList" :key="item.name">
				<image class="status-img" :src="item.url" mode=""></image>
				<view class="status-text">{{item.name}}</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	defineProps({
		mineOrderList: {
			type: Array,
			default: () => ([])
		},
		subTitle: {
			type: String,
			default: '我的订单',
		}
	})
</script>

<style lang="scss">
	.order-module {
		padding: 28rpx;
		box-sizing: border-box;
		position: relative;
		top: -20rpx;
		border-radius: 24rpx;
		background: #ffffff;
	}

	.top-wrap {
		@include flexCj();

		.right {
			@include flexcenter();
			color: #00000066;
			font-size: 24rpx;
		}
	}

	.sub-title {
		font-size: 34rpx;
		font-weight: 700;
	}

	.item-wrap {
		@include flexcenter();
		flex-wrap: wrap;
		margin-top: 46rpx;

		.item-inner {
			@include flexColumn();
			width: 25%;
			font-size: 24rpx;
			font-weight: 700;

			.status-img {
				width: 48rpx;
				height: 48rpx;
				margin-bottom: 16rpx;
			}
		}
	}
</style>