<template>
	<view class="content">
		<view class="head_bg">
			<image src="../../static/wanshan.png"></image>
		</view>

		<view class="personal_box">
			<u-grid :col="4">
				<u-grid-item>
					<u-icon name="photo" :size="46"></u-icon>
					<view class="grid-text">图片</view>
				</u-grid-item>
				<u-grid-item>
					<u-icon name="lock" :size="46"></u-icon>
					<view class="grid-text">锁头</view>
				</u-grid-item>
				<u-grid-item>
					<u-icon name="hourglass" :size="46"></u-icon>
					<view class="grid-text">沙漏</view>
				</u-grid-item>
				<u-grid-item>
					<u-icon name="hourglass" :size="46"></u-icon>
					<view class="grid-text">沙漏</view>
				</u-grid-item>
			</u-grid>
			<view class="bigbox">
				<view class="flex-box">
					<view class="">
						骑车去旅行
					</view>
					<view class="login-button" @click="goLogin">
						去登陆
					</view>
				</view>
				<view class="smallbox">

				</view>
			</view>
		</view>


	</view>
</template>

<script>
	// import uActionSheet from "../../uview-ui/components/u-action-sheet/u-action-sheet.vue";
	// import uSelection from '../../uview-ui/components/u-select/u-select.vue';

	export default {
		data() {
			return {
				title: 'Hello',
				list: [{
					text: '点赞',
					color: 'blue',
					fontSize: 28
				}, {
					text: '分享'
				}, {
					text: '评论'
				}],
				// show: true
				lists: [
					'寒雨连江夜入吴',
					'平明送客楚山孤',
					'洛阳亲友如相问',
					'一片冰心在玉壶'
				]
			}
		},
		onLoad() {

		},
		methods: {
			goPricate() {
				console.log("aa")
				uni.navigateTo({
					url: '/pages/pricate/pricate'
				})
			},
			goLogin() {
				uni.navigateTo({
					url:'/pages/login/index'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		.head_bg {
			width: 100%;
			height: 400rpx;

			image {
				width: 100%;
				height: 400rpx;
			}
		}

		.personal_box {
			position: absolute;
			top: 70rpx;
			width: 90%;
			z-index: 99;
			box-shadow: 0 4rpx 20rpx 0 rgba(99, 251, 172, 0.35);
			border-radius: 10rpx;
			margin: 0 5%;
		}
	}

	.bigbox {
		height: 300rpx;
		width: 100%;
		background: red;
		position: relative;
		border-radius: 10px;
		margin-top: 100rpx;
		// margin: 0 4%;	
		overflow: hidden;

		.flex-box {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin: 4%;

			.login-button {
				border: 1rpx solid black;
				padding: 10rpx;
				box-sizing: border-box;
			}
		}

		.smallbox {
			position: absolute;
			bottom: 0;
			height: 190rpx;
			width: 100%;
			background: white;
			z-index: 99;
			border-radius: 10px;
		}
	}
</style>
