<template>
	<view class="task">
		<view class="task-navbar">
			<u-navbar title="任务中心" back-icon-color="#333333" title-color="#333333" :background="background"></u-navbar>
		</view>
		<view class="task-content">
			<view class="title">新手任务</view>
			<view class="content">
				<view class="item">
					<view class="a">完善个人资料<view class="num">金币<text>+5</text></view></view>
					<view class="b">去完成</view>
				</view>
				<view class="item">
					<view class="a">上传照片<view class="num">金币<text>+5</text></view></view>
					<view class="b b-on">已完成</view>
				</view>
				<view class="item">
					<view class="a">真人认证<view class="num">金币<text>+5</text></view></view>
					<view class="b b-on">已完成</view>
				</view>
				<view class="item">
					<view class="a">语音签名<view class="num">金币<text>+5</text></view></view>
					<view class="b b-on">已完成</view>
				</view>
			</view>
			<view class="title">每日任务</view>
			<view class="content">
				<view class="item">
					<view class="a">签到<view class="num">金币<text>+5</text></view></view>
					<view class="b">去完成</view>
				</view>
				<view class="item">
					<view class="a">发布动态<view class="num">金币<text>+5</text></view></view>
					<view class="b b-on">已完成</view>
				</view>
				<view class="item">
					<view class="a">私信10名异性<view class="num">金币<text>+5</text></view></view>
					<view class="b b-on">已完成</view>
				</view>
				<view class="item">
					<view class="a">与10名异性语音通话<view class="num">金币<text>+5</text></view></view>
					<view class="b b-on">已完成</view>
				</view>
				<view class="item">
					<view class="a">与10名异性视频通话<view class="num">金币<text>+5</text></view></view>
					<view class="b b-on">已完成</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				background: {
					// 导航栏背景图
					background: 'url(@/static/task-bg.png) center top no-repeat',
					// 还可以设置背景图size属性
					backgroundSize: '100 auto',
				},
			};
		}
	}
</script>

<style scoped lang="scss">
.task{
	background: url(@/static/task-bg.png) center top no-repeat;
	background-size: 100% auto;
	overflow: hidden;
	min-height: 100vh;
	&-content{
		padding: 0 25rpx;
		.title{
			font-weight: 500;
			font-size: 32rpx;
			color: #222222;
			margin-top: 40rpx;
		}
		.content{
			padding-bottom: 20rpx;
			overflow: hidden;
			.item{
				width: 100%;
				height: 100rpx;
				background: #FFFFFF;
				border-radius: 20rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 20rpx;
				padding: 0 20rpx;
				box-sizing: border-box;
				.a{
					flex: 1;
					font-weight: 500;
					font-size: 30rpx;
					color: #222222;
					display: flex;
					align-items: center;
					.num{
						margin-left: 40rpx;
						font-size: 24rpx;
						text{
							font-size: 36rpx;
						}
					}
				}
				.b{
					width: 130rpx;
					line-height: 60rpx;
					border-radius: 60rpx;
					text-align: center;
					font-weight: 500;
					font-size: 24rpx;
					background: linear-gradient(0deg, #000000, #3D3B38);
					// box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
					color: #FFFFFF;
					&-on{
						background: #EDEDED;
						color: #222222;
					}
				}
			}
		}
	}
}
</style>
