<template>
	<view class="promotion">
		<uni-nav-bar dark :fixed="true" background-color="#00aaff" :border="false" status-bar title="推广" />
		<view class="promotion-card">
			<view class="user-info">
				<!-- <image :src="userInfo.headImage" mode=""></image> -->
				<image class="image" src="../../static/logo.png" mode="widthFix"></image>
				<!-- <view class="user-name">{{ userInfo.nickName }}</view> -->
				<view class="user-name">湖南第一深情</view>
			</view>
			<view class="invitation-code-img">
				<image class="image" src="../../static/logo.png" mode="widthFix"></image>
			</view>
			<view class="invitation-code">邀请码: sjflshf</view>
		</view>
		<view class="btns">
			<view class="btn">保存海报</view>
			<view class="btn">立即邀请</view>
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	export default {
		name: 'Promotion',
		computed: {
			...mapState(['userInfo']),
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.promotion {
		.promotion-card {
			width: 90%;
			margin: 100rpx auto 0rpx auto;
			box-shadow: 0rpx 0rpx 15rpx rgba(0, 0, 0, .2);
			border-radius: 15rpx;
			padding: 40rpx 30rpx;
			box-sizing: border-box;

			.user-info {
				display: flex;
				align-items: center;

				.image {
					width: 80rpx;
					height: 80rpx;
					border-radius: 50%;
					margin-right: 10rpx;
				}

				.user-name {
					font-size: 30rpx;
				}
			}

			.invitation-code-img {
				display: flex;
				align-items: center;
				justify-content: center;
				margin: 100rpx 0rpx;

				.image {
					width: 30%;
					border-radius: 50%;
				}
			}

			.invitation-code {
				text-align: center;
				color: #818181;
				font-size: 28rpx;
			}
		}

		.btns {
			position: fixed;
			left: 0;
			bottom: 0;
			width: 100%;
			height: 90rpx;
			display: flex;
			background: #00aaff;
			color: white;
			font-size: 28rpx;

			.btn {
				width: 50%;
				display: flex;
				align-items: center;
				justify-content: center;

				&:nth-child(2) {
					background: orange;
				}
			}
		}
	}
</style>