<template>
	<view class="gg-container">
		<view class="gg-tit">
			<view class="gg-title">
				吉农宝
			</view>
			<view>
			  <image class="userinfo-avatar" :src="userInfo.avatarUrl" mode="cover"></image>
			  <text class="userinfo-nickname">{{userInfo.nickName}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo: {}
			}
		},
		onLoad(options) {
			this.userInfo = getApp().globalData.userInfo
		},
		methods: {
		}
	}
</script>

<style scoped lang="scss">
	.gg-container {
		background-color: #fff;
		display: flex;
		flex-direction: column;
	}

	.gg-tit {
		width: 100%;
		position: relative;
		top: 0;
		height: 40vh;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.gg-body {
		display: flex;
		position: absolute;
		bottom: 25rpx;
		width: 728rpx;
		height: 80rpx;
		background: linear-gradient(0deg, #90BDFF, #3F93FD, #20B9D5);
		border-radius: 40rpx;
		justify-content: center;
		align-items: center;

		.gg-body-tt {
			text-align: left;
			margin-left: 5px;
			width: 25%;
			display: flex;
			align-items: center;
			color: #FFFFFF;
			font-weight: bold;
			font-size: 30rpx;
		}
	}

	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.background {
		border: 15px solid hsla(0, 0%, 100%, .5);
		background: white;
		background-clip: padding-box;
		/*从padding开始往外面裁剪背景*/

	}

	.container {
		display: flex;
		margin-left: 10px;
		margin-top: 10px;
		margin-right: 10px;
		align-items: flex-start;
		justify-content: space-between;
	}

	.gg-title {
		width: 100%;
		position: absolute;
		z-index: 1;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 40rpx;
		font-weight: bold;
		color: #FFFFFF;
	}



	.notice {
		margin: 20rpx;
		padding: 20rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
		border-radius: 10rpx;
	}

	.text {
		border-left: 15rpx solid #3857F3;
		padding-left: 20rpx;
	}
</style>