<template>
	<view class="app">
		<view class="content">
			<view class="name">
				2022-10-11 15:44
				<span>待服务</span>
			</view>
			<view class="details">
				<view class="detailslist">
					<image src="/static/fuwutu.png" mode=""></image>
					<view class="model">
						<view class="top">
							<span>换药</span>
							<span>￥50.0</span>
						</view>
						<view class="bottom">
							<span>服务时长：1小时</span>
						</view>
					</view>
				</view>
				<view class="submit" @tap="gofinished" >
					确认完成
				</view>
			</view>
		</view>
		<view class="content">
			<view class="name">
				2022-10-11 15:44
				<span>完成</span>
			</view>
			<view class="details">
				<view class="detailslist">
					<image src="/static/fuwutu.png" mode=""></image>
					<view class="model">
						<view class="top">
							<span>换药</span>
							<span>￥50.0</span>
						</view>
						<view class="bottom">
							<span>服务时长：1小时</span>
						</view>
					</view>
				</view>
				<view class="submit" @tap="gofinished">
					确认完成
				</view>
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			gofinished() {
				uni.navigateTo({
					url: '/pages/Service Details/Service Details'
				})
			},
		}
	}
</script>

<style lang="scss">
	.app {
		height: 100vh;
		padding: 2%;

		.content {
			// margin-top: 3%;
			width: 99%;
			height: 386rpx;
			background: #FFFFFF;
			box-shadow: 0px 9px 31px 9px rgba(0, 0, 0, 0.03);
			border-radius: 20px;
			margin: 0 auto;
			margin-top: 2%;

			.name {
				width: 95%;
				height: 90rpx;
				font-size: 30rpx;
				color: #969394;
				line-height: 90rpx;
				border-bottom: 1rpx solid #D8D4D4;
				margin: 0 auto;

				span {
					color: #4C7BC9;
					float: right;
				}

				image {
					width: 15rpx;
					height: 23rpx;
					padding-left: 25rpx;
				}
			}

			.details {
				height: 250rpx;

				.detailslist {
					display: flex;

					image {
						width: 182rpx;
						height: 182rpx;
						margin: 20rpx 0 0 20rpx;
					}

					.model {
						width: 70%;
						margin: 30rpx 0 0 20rpx;

						span {
							font-size: 38rpx;
							color: #000000;
						}

						span:nth-child(2) {
							color: #969394;
							float: right;
							margin-right: 30rpx;
						}

						.bottom {
							margin-top: 20rpx;

							span {
								font-size: 35rpx;
								color: #969394;
							}
						}
					}
				}

				.submit {
					width: 175rpx;
					height: 68rpx;
					line-height: 68rpx;
					background: #4C7BC9;
					border-radius: 26rpx;
					text-align: center;
					font-size: 32rpx;
					color: #FFFFFF;
					float: right;
					margin-right: 30rpx;
				}

			}
		}
	}
</style>
