<template>
	<view class="page">
		<view class="listcell">
			<view class="cells" @tap="gotoprot(5)">
				<view class="title">租赁服务协议</view>
				<uni-icons type="right" size="18" color="#777777"></uni-icons>
			</view>
			<view class="cells" @tap="gotoprot(3)">
				<view class="title">用户注册协议</view>
				<uni-icons type="right" size="18" color="#777777"></uni-icons>
			</view>
			<view class="cells" @tap="gotoprot(1)">
				<view class="title">用户授权协议</view>
				<uni-icons type="right" size="18" color="#777777"></uni-icons>
			</view>
			<view class="cells" @tap="gotoprot(4)">
				<view class="title">征信授权协议</view>
				<uni-icons type="right" size="18" color="#777777"></uni-icons>
			</view>
			<view class="cells" @tap="gotoprot(2)">
				<view class="title">用户隐私协议</view>
				<uni-icons type="right" size="18" color="#777777"></uni-icons>
			</view>
		</view>
		
		<!-- service 客服-->
		<service ref="serviceId" @goservice="goservice"></service>

	</view>
</template>

<script>
	import service from "../components/service.vue";
	export default {
		components: {
			service
		},
		data() {
			return {
				id:0,
			};
		},
		onLoad(options) {
			if(options.id){
				this.id=options.id;
			}
		},
		 
		methods: {
			goservice(val){
				console.log(val);
			},
			gotoprot(key) {
				// 协议
				uni.navigateTo({
					url: `/pages/user/info?id=`+key
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		padding: 0;
		position: relative;
	}

	.cbtn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		background-color: #FFFFFF;
		line-height: 120rpx;
		border: none;
		padding-left: 0;
		padding-right: 0;
	}

	.cbtn::after {
		border: none;
	}

	.exitcon {
		width: 100%;
		height: 168rpx;
		opacity: 1;
		width: 100%;
	}

	.bbtn {
		margin: 0 auto 84rpx;
		font-size: 32rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		color: #A0A0A0;
		width: 566rpx;
		height: 96rpx;
		line-height: 96rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 12rpx 65rpx 2rpx rgba(186, 186, 188, 0.4);
		border-radius: 257rpx 257rpx 257rpx 257rpx;
		opacity: 1;
		border: 2rpx solid #A0A0A0;
		opacity: 1;

		&::after {
			border: none;
		}
	}

	::v-deep .uni-section .uni-section-header__decoration.line {
		width: 2rpx !important;
		height: 24rpx !important;
		background-color: #595959 !important;
	}

	.header {
		width: 750rpx;
		height: 420rpx;
		background: linear-gradient(180deg, #E1F2FF 0%, #FFFFFF 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		opacity: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.hcell {
			display: flex;
			align-items: center;
			justify-content: center;
			position: relative;

			.hcoin {
				width: 150rpx;
				height: 150rpx;
				border-radius: 50% 50%;
				margin-bottom: 40rpx;
			}

			.hedit {
				width: 50rpx;
				height: 50rpx;
				position: absolute;
				bottom: 22%;
				right: 10%;
			}

			.hname {
				font-size: 40rpx;
				font-family: PingFang SC-Semibold, PingFang SC;
				font-weight: 600;
				color: #000000;
				display: flex;
				flex-direction: row;
				justify-content: center;
				align-items: center;

				.sextip {
					width: 37rpx;
					height: 32rpx;
					margin-left: 20rpx;
				}
			}

			.hinfo {
				width: 100%;
				display: flex;
				flex-direction: row;
				justify-content: center;
				align-items: center;
				font-size: 24rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
				color: #595959;
			}
		}
	}

	.listcell {
		position: relative;
		display: block;
		overflow-y: auto;
		margin: 50rpx 20rpx 30rpx;
		box-sizing: content-box;

		.cells {
			background: #FFFFFF;
			display: flex;
			padding: 15rpx 20rpx 5rpx;
			height: 110rpx;
			flex-direction: row;
			align-items: center;
			justify-content: center;
			border-bottom: 1rpx solid #f5f5f5;
			.img {
				width: 48rpx;
				height: 48rpx;
				margin-left: 10rpx;
			}

			.title {
				height: 44rpx;
				font-size: 28rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color: #0E1521;
				margin-left: 20rpx;
				flex: 1;
				display: flex;
			}
		}
	}
</style>