<template>
	<view class="main-block">
		<view class="page-block">
			<view class="btn-list">

				<navigator :url="`../order/refundRecord?store_id=${store_id}`" class="item flex flex-col flex-center">
					<image src="../static/images/icon_15.png" class="icon-img" mode="aspectFit"></image>
					<view class="name">退款记录</view>
				</navigator>

				<navigator :url="`../orderList/orderList?store_id=${store_id}`" class="item flex flex-col flex-center">
					<image src="../static/images/icon_1.png" class="icon-img" mode="aspectFit"></image>
					<view class="name">小程序订单</view>
				</navigator>

				<navigator url="../order/juheOrder?type=2" class="item flex flex-col flex-center">
					<image src="../static/images/icon_2.png" class="icon-img" mode="aspectFit"></image>
					<view class="name">订单列表</view>
				</navigator>

				<navigator url="../order/delivery?type=2" class="item flex flex-col flex-center">
					<image src="../static/images/ps.png" class="icon-img" mode="aspectFit"></image>
					<view class="name">聚合配送费记录</view>
				</navigator>
				<navigator url="../order/yuyueOrder" class="item flex flex-col flex-center">
					<image src="../static/images/icon_order_yuyue.png" class="icon-img" mode="aspectFit"></image>
					<view class="name">预约订单</view>
				</navigator>
				<navigator url="../order/miaoshaOrder" class="item flex flex-col flex-center">
					<image src="../static/images/icon_order_miaosha.png" class="icon-img" mode="aspectFit"></image>
					<view class="name">秒杀订单</view>
				</navigator>
				<navigator url="../order/pintuanOrder" class="item flex flex-col flex-center">
					<image src="../static/images/icon_order_pintuan.png" class="icon-img" mode="aspectFit"></image>
					<view class="name">拼团订单</view>
				</navigator>

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

<script>
	export default {
		data() {
			return {
				store_id: ""
			}
		},
		onLoad(e) {
			this.store_id = uni.getStorageSync("store_id");
		},
	}
</script>

<style>
	.main-block {
		padding: 50rpx 25rpx 0;
	}

	.btn-list {
		display: -webkit-box;
		display: -webkit-flex;
		display: flex;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-webkit-flex-flow: row wrap;
		flex-flow: row wrap;
		-webkit-box-pack: start;
		-webkit-justify-content: flex-start;
		justify-content: flex-start;
		-webkit-align-content: flex-start;
		align-content: flex-start;
	}

	.page-block {
		width: 700rpx;
		background-color: #fff;
		box-sizing: border-box;
		border-radius: 8rpx;
		margin-bottom: 30rpx;

	}

	.btn-list .item {
		width: 33.33%;
		height: 145rpx;
	}

	.btn-list .item .icon-img {
		display: block;
		width: 48rpx;
		height: 48rpx;
	}

	.btn-list .item .name {
		font-size: 24rpx;
		line-height: 33rpx;
		margin-top: 16rpx;
		color: #666;
	}
</style>
