<template>
	<view class="page">
		<u-tabs :font-size='28' :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<view class="list">
			<view class="box">
				<view class="u-flex u-row-between">
					<text class="order">订单编号:</text>
					<view class="">
						<text class="state">
							待支付
						</text>
					</view>
				</view>
				<view class="book">
					<view class="u-flex" style="margin-top: 26rpx;">
						<view class="" style="padding: 0 20rpx;">
							<image src="../../static/logo.png" style="width: 120rpx;height: 160rpx;" mode=""></image>
						</view>
						<view class="" style="margin-left: 20rpx;">
							<view class="name u-line-1">中医基础理论(全国中医药行业高等…</view>
							<view class="type">资源类型：付费资源</view>
							<view class="money">¥324.5</view>
						</view>
					</view>
					<view class="shapping u-flex " style="justify-content: end;">
						<text class="font1">商品金额:</text>
						<text class="font3">¥</text>
						<text class="font2">325.00</text>
					</view>
					<view class="u-flex " style="margin-top: 28rpx;justify-content: end;">
						<view class="cancel">取消订单</view>
						<view class="pay">立即支付</view>
						<view class=" cancel" @click="delect">删除订单</view>
						<view class="details cancel">查看详情</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '全部'
				}, {
					name: '待支付'
				}, {
					name: '已完成',
				}, {
					name: '已取消',
				}],
				current: 0
			};
		},
		methods: {
			change(index) {
				this.current = index;
			},
			delect() {

			}
		}
	}
</script>

<style lang="scss">
	.cancel {
		width: 148rpx;
		height: 68rpx;
		border-radius: 8rpx;
		border: 2rpx solid #979797;
		line-height: 68rpx;
		text-align: center;
		margin-left: 20rpx;
	}

	.pay {
		width: 160rpx;
		height: 68rpx;
		background: #06A971;
		border-radius: 8rpx;
		line-height: 68rpx;
		text-align: center;
		margin-left: 20rpx;
	}

	.name {
		font-size: 28rpx;
		font-family: PingFangHK, PingFangHK;
		font-weight: 400;
		color: #333333;
	}

	.font1 {
		font-size: 26rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #222222;
	}

	.font2 {
		font-size: 36rpx;
		font-family: JDZhengHT, JDZhengHT;
		font-weight: 500;
		color: #222222;
	}

	.font3 {
		font-size: 26rpx;
		font-family: JDZhengHT, JDZhengHT;
		font-weight: 300;
		color: #222222;
		margin-left: 14rpx;
		margin-top: 10rpx;
	}

	.type {
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #444444;
		margin-top: 8rpx;
	}

	.shapping {
		margin-top: 28rpx;

	}

	.money {
		font-size: 32rpx;
		font-family: SFPro, SFPro;
		font-weight: 400;
		color: #333333;
		margin-top: 42rpx;
	}

	::v-deep .u-tab-bar {
		background-color: #06A971 !important;
	}

	.state {
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #CF1534;
	}

	::v-deep .u-tab-item {
		color: #222 !important
	}

	.book {
		margin: 28rpx 0 0 0;
		border-top: 2rpx solid rgba(151, 151, 151, 0.2);
	}

	.order {
		font-size: 24rpx;
		font-family: SFPro, SFPro;
		font-weight: 400;
		color: #222222;
	}

	.box {
		width: 694rpx;
		height: 472rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		padding: 28rpx 20rpx 0;
	}

	.list {
		padding: 20rpx 28rpx;
	}

	.page {
		background: #F6F6F6;
		min-height: 100vh;

	}
</style>