<template>
	<view class="groupOfCarFriends">
		<u-navbar title="车友群" leftIconColor="#000" rightIcon='../../static/common/white_left_arrrow.png' placeholder
			leftIconSize='38rpx' autoBack="true">
		</u-navbar>
		<view class="headBg">
			<!-- <image src="" mode=""></image> -->
			<image src="../../static/common/bg.png" class="bgImg" mode=""></image>
			<image src="../../static/common/car.png" class="carImg" mode=""></image>
			<view class="headText">
				<view class="p">欢迎回家</view>
				<view class="span">
					加入爱车车友会
				</view>
				<view class="p">驭见生活另一面</view>
			</view>
		</view>
		<view class="code">
			<image :src="friendsData.carGroupQrCode" @click="previewImage(friendsData.carGroupQrCode)" class="codeImg"
				mode=""></image>
		</view>
		<view class="textLabel">
			保存图片
		</view>
		<view class="textLabel">
			使用微信扫码入群吧
		</view>
		<view class="labelcode">
			【长按识别二维码】
		</view>
		<view class="desccontent">
			<view class="descTitle">
				入会须知
			</view>
			<view class="descCon">
				<scroll-view scroll-y style="height: 200rpx;">

					<view class="descLabel">
						{{friendsData.membershipNotice}}
					</view>
					<!-- <view class="descLabel">
						2.入会审核在5个工作日内
					</view>
					<view class="descLabel">
						3.若有疑问可咨询平台客服
					</view>
					<view class="descLabel">
						4.后台配置后台配置
					</view> -->
				</scroll-view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				friendsData: ""
			}
		},
		onShow() {
			this.getcarfriendsdata()
		},
		methods: {
			getcarfriendsdata() {
				this.$http.get('/api/client/userInfo/carEnthusiastGroup').then((res) => {
					this.friendsData = res.data.data
				})
			},
			//预览图片
			previewImage(urls, current) {
				uni.previewImage({
					urls: [urls],
					current
				})
			},
		}
	}
</script>

<style lang="scss">
	.groupOfCarFriends {
		min-height: 100vh;
		background: #FBF6F4;

		.u-status-bar {
			background: #fbf0e3 !important;
		}

		.u-navbar__content {
			background: #fbf0e3 !important;
		}

		.headBg {
			position: relative;
			width: 750rpx;
			height: 420rpx;

			.bgImg {
				position: absolute;
				width: 750rpx;
				height: 420rpx;
			}

			.carImg {
				position: absolute;
				top: 10rpx;
				right: 24rpx;
				width: 287rpx;
				height: 160rpx;
			}

			.headText {
				padding-top: 20rpx;
				padding-left: 20rpx;
				box-sizing: border-box;

				.p {
					font-family: zihunbiantaoti, zihunbiantaoti;
					font-weight: 400;
					font-size: 32rpx;
					color: #333333;
				}

				.span {
					display: block;
					margin: 18rpx 0;
					font-family: zihunbiantaoti, zihunbiantaoti;
					font-weight: 400;
					font-size: 48rpx;
					color: #FF4502;
				}
			}
		}

		.code {
			margin: auto;
			margin-bottom: 25rpx;
			padding: 22rpx;
			box-sizing: border-box;
			width: 377rpx;
			height: 377rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 0rpx 10rpx 1rpx rgba(239, 239, 239, 0.16);
			border-radius: 18rpx 18rpx 18rpx 18rpx;

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

		.textLabel {
			text-align: center;
			margin-bottom: 10rpx;
			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
		}

		.labelcode {
			text-align: center;
			margin-top: 10rpx;
			font-family: zihunbiantaoti, zihunbiantaoti;
			font-weight: 400;
			font-size: 48rpx;
			color: #FF4502;
		}

		.desccontent {
			margin: auto;
			margin-top: 73rpx;
			width: 702rpx;

			.descTitle {
				padding-left: 10rpx;
				font-weight: 400;
				font-size: 28rpx;
				color: #333333;
				border-left: 6rpx #FF4502 solid;
			}

			.descCon {
				padding: 30rpx;
				margin-top: 12rpx;
				width: 702rpx;
				background: #FFFFFF;
				border-radius: 18rpx 18rpx 18rpx 18rpx;
				box-sizing: border-box;

				.descLabel {
					font-weight: 400;
					font-size: 24rpx;
					color: #999999;
					line-height: 44rpx;
				}
			}
		}
	}
</style>