<template>
	<view class="container">
		平台运维
	</view>
</template>

<script setup>
	import {
		onMounted,
	} from "vue";
	import {
		onShow,
		onLoad
	} from '@dcloudio/uni-app'

	onMounted(() => {
		console.log('平台运维')
	})
</script>

<style lang="scss" scoped>
	@keyframes rotate {
		from {
			transform: rotate(0deg);
		}

		to {
			transform: rotate(359deg);
		}
	}

	.u-notice-bar {
		padding: 9px 12rpx !important;
	}

	.container {
		padding-bottom: 88rpx;
		position: relative;

		.nav-style {
			font-size: 32rpx;
			font-weight: bold;
			color: #fff;
		}

		// 统计信息
		.total {
			width: 724rpx;
			margin-left: 14rpx;
			overflow: hidden;
			border-radius: 14rpx;
			background-color: #fff;
			margin-top: 10rpx;

			.total-sale {
				width: 724rpx;
				height: 205rpx;
				background: url('https://cdn.ossfile.mxrvending.com/assets/xy_merc_mini/images/home/home-bg.png') no-repeat left top;
				background-size: 100% 100%;
				position: relative;

				.sale-item {
					margin-top: 46rpx;
					padding-left: 30rpx;

					.sale-name {
						font-size: 26rpx;
						font-weight: 500;
						color: #EEEDFF;
						line-height: 26rpx;
					}

					.sale-num {
						line-height: 50rpx;
						font-size: 50rpx;
						font-weight: 800;
						color: #FFFFFF;
						margin-top: 55rpx;
					}
				}

				.sale-more {
					font-size: 26rpx;
					font-weight: 500;
					color: #FFFFFF;
					padding-right: 18rpx;
					position: absolute;
					right: 12rpx;
					top: 22rpx;
					line-height: 26rpx;

					image {
						width: 24rpx;
						height: 24rpx;
						position: absolute;
						right: 0;
						top: 0;
					}
				}

				.update {
					width: 50rpx;
					height: 50rpx;
					position: absolute;
					right: 16rpx;
					bottom: 16rpx;

					&.load {
						animation: rotate 1s linear;
						animation-iteration-count: 3;
					}

					image {
						width: 50rpx;
						height: 50rpx;
					}
				}
			}

			.refund-order {
				padding-left: 34rpx;
				overflow: hidden;
				padding-bottom: 26rpx;

				.refund-item {
					text-align: center;
					color: #2E2E2E;
					margin-top: 68rpx;

					&:nth-child(1) {
						margin-right: 70rpx;
					}

					.refund-num {
						font-size: 36rpx;
						font-weight: 800;
						line-height: 32rpx;
					}

					.refund-name {
						font-size: 28rpx;
						font-weight: 500;
						line-height: 28rpx;
						margin-top: 27rpx;
					}
				}
			}

			.notice {
				width: 100%;
				position: relative;

				// .notice-tips {
				// 	padding: 10rpx;
				// 	color: #fff;
				// 	font-size: 24rpx;
				// 	text-align: center;
				// 	position: absolute;
				// 	right: 56rpx;
				// 	top: 50%;
				// 	transform: translateY(-50%);
				// 	z-index: 999;
				// 	background-color: #fff;

				// 	>view {
				// 		width: 36rpx;
				// 		height: 36rpx;
				// 		background-color: #E60012;
				// 		border-radius: 36rpx;
				// 		line-height: 36rpx;
				// 	}
				// }

				.notice-tips {
					padding: 10rpx;
					text-align: center;
					position: absolute;
					right: 40rpx;
					top: 50%;
					transform: translateY(-54%);
					z-index: 999;
					background-color: #fff;
				}
			}
		}

		//常用菜单
		.useful-menu {
			width: 724rpx;
			margin-left: 14rpx;

			.useful-menu-item {
				margin-top: 20rpx;
				width: 352rpx;
				height: 168rpx;
				background: #FFFFFF;
				box-shadow: 0px 0px 10px 0px rgba(174, 201, 255, 0.2);
				border-radius: 14rpx;
				padding: 0 66rpx 0 46rpx;
				position: relative;

				>.image {
					width: 75rpx;
					height: 75rpx;
				}

				>.menu-name {
					font-size: 32rpx;
					font-weight: 500;
					color: #333333;
				}

				.tips {
					// width: 40rpx;
					// height: 40rpx;
					// background-color: #E60012;
					// color: #fff;
					// font-size: 24rpx;
					// text-align: center;
					// line-height: 28rpx;
					// border-radius: 40rpx;
					// position: absolute;
					// right: -8rpx;
					// top: -8rpx;
					// padding: 6rpx;

					width: 40rpx;
					height: 40rpx;
					position: absolute;
					right: -8rpx;
					top: -8rpx;
					padding: 6rpx;
				}
			}
		}

		// 便捷功能
		.menu {
			width: 724rpx;
			margin-left: 14rpx;
			background: #FFFFFF;
			box-shadow: 0px 0px 10rpx 0px rgba(174, 201, 255, 0.2);
			border-radius: 14rpx;
			display: flex;
			flex-flow: row nowrap;
			justify-content: space-around;
			margin-top: 20rpx;
			position: relative;
			padding: 101rpx 36rpx 0rpx;

			.menu-title {
				font-size: 28rpx;
				font-weight: 800;
				color: #000;
				position: absolute;
				left: 28rpx;
				top: 28rpx;
			}

			.menu-item {
				margin-bottom: 48rpx;
			}

			.menu-content {
				width: 100%;
				flex-flow: row wrap;
			}

			.menu-item {
				text-align: center;
				width: 25%;
				display: flex;
				flex-direction: column;
				align-items: center;

				>.image {
					width: 57rpx;
					height: 57rpx;
				}

				>view {
					color: #333;
					font-size: 24rpx;
					line-height: 24rpx;
					font-size: 28rpx;
					line-height: 28rpx;
					margin-top: 16rpx;
				}
			}
		}
	}
</style>