<template>
	<view class="gallery" :style="{background:'url('+ bannerImage +')#ffffff'}">
		<view><nav-bar title="none" icon="none" background="transparent" border-color="transparent" noPlaceholder></nav-bar></view>
		<view class="logo"><re-image imgSrc="/retail/main/img_logo.png" width="300" height="56"></re-image></view>
		<view class="content">
			<view class="news">
				<view class="info flex">
					<re-image imgSrc="/" width="104" height="104"></re-image>
					<view class="info-text flex-column jcsa">
						<view class="info-top flex">
							<view class="name">王安安</view>
							<view class="level flex aic">
								<re-image imgSrc="/retail/main/ic_chuji.png" width="40" height="44"></re-image>
								<view class="level-text">初级</view>
							</view>
						</view>
						<view class="phone">13630639549</view>
					</view>
				</view>
				<view class="news-total flex jcsa">
					<view class="total-item">
						<view class="item-num">156</view>
						<view class="item-text">总销订单</view>
					</view>
					<view class="total-item">
						<view class="item-num">156</view>
						<view class="item-text">总销游戏币</view>
					</view>
					<view class="total-item">
						<view class="item-num orange">¥156</view>
						<view class="item-text">预估总收益</view>
					</view>
				</view>
			</view>
			<div class="list-title-wrapper flex jcsb aic">
				<div class="list-title flex aic">
					<span class="title-line"></span>
					套餐充值
				</div>
				<div class="timer">
					赠送游戏币倒计时
					<span>
						<span class="lb" id="day">2</span>
						天
						<span class="lb" id="hours">17</span>
						时
						<span class="lb" id="mins">56</span>
						分
					</span>
				</div>
			</div>
			<div class="list-wrapper"></div>
		</view>

	</view>
</template>

<script>
	import {
		toRpx
	} from '@/utils/calculate.js'
	import defaultConfig from '@/config/default.js'

	export default {
		components: {},
		computed: {
			statusBarHeight() {
				return this.$store.state.info.systemInfo?.statusBarHeight
			},
		},
		data() {
			return {
				bannerImage: defaultConfig.ossImgUrl + '/retail/main/img_bgtop.png',
				title: 'Hello',
				navBarHeight:uni.getStorageSync('navBarHeight')
			}
		},
		onLoad() {

		},
		
		methods: {

		},
		mounted() {
			
		},
	}
</script>

<style lang="scss" scoped>
	.gallery {
		background-repeat: no-repeat !important;
		background-size: contain !important;
		// background-position: top;
		width: 100%;
		position: absolute;
		top: 0;
		bottom: 0;

		.logo {
			margin-top: 16rpx;
			margin-left: 24rpx;
		}

		.content {
			padding: 32rpx;

			.news {
				background: #FFFFFF;
				box-shadow: 0rpx 6rpx 16rpx 0rpx #E3E6F2;
				border-radius: 24rpx;
				margin-top: 48rpx;
				padding: 40rpx;

				.info {
					.info-text {
						.info-top {
							.name {
								font-weight: 500;
								font-size: 32rpx;
								color: #363531;
							}

							.level {
								margin-left: 12rpx;

								.level-text {
									width: 80rpx;
									height: 36rpx;
									padding: 6rpx 12rpx 6rpx 20rpx;
									background: linear-gradient(130deg, #FFB873 0%, #FEC287 0%, #E69349 100%);
									border-radius: 0rpx 18rpx 18rpx 0rpx;
									font-weight: 500;
									font-size: 24rpx;
									color: #FFFFFF;
									line-height: 24rpx;
									margin-left: -12rpx;
									// text-align: left;
								}
							}
						}

					}

					.phone {
						font-weight: 400;
						font-size: 28rpx;
						color: #989897;
					}
				}

				.news-total {
					margin-top: 44rpx;

					.item-num {
						font-weight: bold;
						font-size: 40rpx;
						color: #363531;
					}

					.orange {
						color: #FF6400;
					}

					.item-text {
						font-weight: 400;
						font-size: 28rpx;
						color: #9598A6;
					}
				}

			}
			.list-title-wrapper {
				margin-top: 48rpx;
				.list-title {
					color: #363531;
					font-weight: bold;
					font-size: 36rpx;
					line-height: 36rpx;

					.title-line {
						width: 8rpx;
						height: 32rpx;
						background-color: #FF8800;
						margin-right: 20rpx;
					}
				}
				.timer{
					font-size: 24rpx;
					.lb{
						display: inline-block;
						vertical-align: top;
						width: 32rpx;
						height: 32rpx;
						background-color: #FFE4DA;
						color: #FF4300;
						text-align: center;
						line-height: 32rpx;
						border-radius: 6rpx;
						margin: 0 2rpx;
					}
				}
			}
		}

	}
</style>