<template>
	<view class="content">
		<!-- 轮播 -->
		<view class="carousel-section">
			<swiper class="carousel" :autoplay="true" :interval="3000" :duration="1000">
				<swiper-item v-for="item in carouselList" :key="item.id">
					<image :src="baseURL + item.image" mode="widthFix"></image>
				</swiper-item>
			</swiper>
		</view>
		<!-- 分类 -->
		<view class="cate-section flex">
			<view class="cate-item flex" @click="navTo('/pages/applic/contribution')">
				<view class="img-wrapper flex">
					<image src="../../static/icon/icon1.png" mode="" class="img1"></image>
				</view>
				<view class="item-title">爱心捐款</view>
			</view>
			<view class="cate-item flex" @click="tocontribution">
				<view class="img-wrapper flex">
					<image src="../../static/icon/icon2.png" mode="" class="img1"></image>
				</view>
				<view class="item-title">遗体器官捐献</view>
			</view>
			<view class="cate-item flex" @click="toapplic">
				<view class="img-wrapper flex">
					<image src="../../static/icon/icon3.png" mode="" class="img1"></image>
				</view>
				<view class="item-title">造血干细胞捐献</view>
			</view>
			<view class="cate-item flex" @click="navTo('/pages/cart/jxdetail')">
				<view class="img-wrapper flex">
					<image src="../../static/icon/icon4.png" mode="" class="img1"></image>
				</view>
				<view class="item-title">无偿献血</view>
			</view>
		</view>
		<!-- 加入我们 -->
		<view class="join-us">
			<view class="join-top flex">
				<view class="top-tit">
					加入我们
				</view>
				<image src="../../static/img/join-logo.png" mode=""></image>
			</view>
			<view class="item-wrap">
				<!-- <view class="join-item flex" @click="navTo('/pages/form/tovolApply')"> -->
				<view class="join-item flex" @click="showEwm('zyzbm')">
					<!-- #小程序://荆楚志愿红/HDZnYXqy2A1EKPq -->
					<image src="../../static/icon/icon5.png" mode="" class="join-log"></image>
					<view class="join-tit">
						<view class="tit-top">
							志愿者报名
						</view>
						<view class="">
							志愿服务你我他
						</view>
					</view>
					<image src="../../static/icon/jointo.png" mode="" class="join-to"></image>
				</view>
				<view class="join-item flex" @click="navTo('/pages/train/index')">
					<image src="../../static/icon/icon6.png" mode="" class="join-log"></image>
					<view class="join-tit">
						<view class="tit-top">
							普及培训报名
						</view>
						<view class="">
							扶危济困爱心无限
						</view>
					</view>
					<image src="../../static/icon/jointo.png" mode="" class="join-to"></image>
				</view>
				<view class="join-item flex" @click="showEwm('hybm')">
					<image src="../../static/icon/icon7.png" mode="" class="join-log"></image>
					<view class="join-tit">
						<view class="tit-top">
							红十字会员登记
						</view>
						<view class="">
							做慈善事业的行动者
						</view>
					</view>
					<image src="../../static/icon/jointo.png" mode="" class="join-to"></image>
				</view>
			</view>
		</view>
		<!-- 就在身边 -->
		<view class="help-wrap">
			<view class="help-tit">
				就在身边
			</view>
			<view class="help-item flex">
				<image src="../../static/img/jzsb-bg.png" mode="" class="item-left" @click="navTo('/pages/applic/location')"></image>
				<view class="item-right flex">
					<image src="../../static/img/jhz-bg.png" mode=""  @click="navTo('/pages/applic/aid')"></image>
					<image src="../../static/img/aed-bg.png" mode="" @click="navTo('/pages/applic/aed')"></image>
				</view>
			</view>
		</view>
		<!-- 红会科普 -->
		<view class="kp-wrap" v-if="(science.length != 0) && loaded">
			<view class="wrap-tit">
				红会科普
			</view>
			<view class="readmore" @click="navTo('/pages/applic/science')">
				更多<image src="../../static/icon/next.png" mode="widthFix"></image>
			</view>
			<scroll-view scroll-x="true" class="kp-scroll flex">
				<view class="kp-item" v-for="sitem in science" @click="navTo('/pages/applic/info?id=' + sitem.id)">
					<view class="kp-item-img">
						<image src="../../static/img/002.png" mode="heightFix" ></image>
					</view>
					<view class="kp-item-tit clamp">
						{{sitem.title}}
					</view>
				</view>
			</scroll-view>
		</view>
		<uni-popup ref="zyzbm" type="center" >
			<view class="zyzbm">
				<image src="../../static/img/zyzbm1.png" mode=""></image>
				<image src="../../static/icon/close.png" mode="" class="close" @click="closePup('zyzbm')"></image>
			</view>
		</uni-popup>
		<uni-popup ref="hybm" type="center" >
			<view class="zyzbm">
				<image src="../../static/img/hydj.png" mode=""></image>
				<image src="../../static/icon/close.png" mode="" class="close" @click="closePup('hybm')"></image>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import {
		getAed,
		getAidList,
		getRescuerList,
		sos,
		geocoder
	} from '@/api/category.js'
	import {
		loadIndexs,
		bannerlist,
		getListAED,
		getDistance,
		getListMechanism,
		getdis,
		tocall
	} from '@/api/index.js';
	import {
		saveUrl,
		interceptor
	} from '@/utils/loginUtils.js';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	import {
		userinfo
	} from '@/api/user.js';
	import uniPopup from '@/components/uni-popup/uni-popup.vue';
	import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
	import {
		getLoca
	} from '@/utils/wxAuthorized.js';
	import {
		getcomAddress,
		getArticList
	} from '@/api/index.js';
	import topTitle from '../../components/top-title/top-title.vue';
	export default {
		components: {
			uniPopup,
			uniLoadMore,
			topTitle
		},
		data() {
			return {
				user_address: '',
				shareShow: true,
				user_id: '',
				rescuers_id: '',
				name: '',
				uid: '',
				phone: '',
				to_phone: '',
				jzsbmarker: [],
				jzsblist: [],
				jhzmarker: [],
				aedmarker: [],
				carouselList: [], //轮播
				science: [], //文章列表
				page: 1,
				limit: 10,
				AEDList: [],
				Mechanism: [],
				latitude2: '',
				longitude2: '',
				latitude4: '',
				longitude4: '',
				address: '',
				loadingType: 'more',
				markerList: [],
				marker: [],
				longitude: '121.15829821166992',
				latitude: '30.044394499237708',
				longitude1: '120.553638',
				latitude1: '30.547011',
				scale: '12', //地图缩放程度
				scale1: '15',
				showbox: false,
				showTEXT: false,
				addressData: {
					name: '',
					mobile: '',
					latitude: 0, //纬度
					longitude: 0, //经度
					address: {
						province: '',
						city: '',
						district: '',
						detail: ''
					},
					area: '',
					default: false
				}
			};
		},
		onShow() {
			// 测试git上传
			saveUrl();
			// let token = uni.getStorageSync('token');
			console.log(11, this);
			if (!this.hasLogin) {
				// 登录拦截
				// interceptor();
				uni.showModal({
					title: '登录',
					content: '您未登录，是否马上登陆?',
					success: e => {
						if (e.confirm) {
							interceptor();
						}
					},
					fail: e => {
						console.log('err',e);
					}
				});
			} else {
			}
		},
		onLoad() {
			this.getPkList();
			this.loadIndex()
			saveUrl();
			let obj = this;
			let weichatBrowser = uni.getStorageSync('weichatBrowser')
			if (weichatBrowser) {
				try {
					let locationAddress;
					// #ifdef H5
					let wxOjb = require('jweixin-module');
					locationAddress = wxOjb.getLocation;
					// #endif
					// #ifdef MP
					locationAddress = uni.getLocation;
					// #endif
					// #ifdef H5
					wxOjb.ready(() => {
						console.log('加载完毕注册事件');
						locationAddress({
							type: 'gcj02',
							success: function(res) {
								console.log('获取经纬度', res);
								obj.longitude4 = res.longitude;
								obj.latitude4 = res.latitude;
								obj.marker = [{
									longitude: res.longitude,
									latitude: res.latitude,
									iconPath: '/static/img/img19.png',
									width: '45',
									height: '45'
								}];
							},
							fail(e) {
								console.log('失败', e);
								// window.location.reload();
							}
						});
					});
					// #endif

					// #ifdef MP
					locationAddress({
						type: 'gcj02',
						success: function(res) {
							console.log('获取经纬度', res);
							obj.longitude4 = res.longitude;
							obj.latitude4 = res.latitude;
							obj.marker = [{
								longitude: res.longitude,
								latitude: res.latitude,
								iconPath: '/static/img/img19.png',
								width: '45',
								height: '45'
							}];
						},
						fail(e) {
							console.log('失败', e);
							obj.tishi()
						}
					});
					// #endif
				} catch (e) {
					let locationAddress;
					// #ifdef H5
					let wxOjb = require('jweixin-module');
					locationAddress = wxOjb.getLocation;
					// #endif
					// #ifdef MP
					locationAddress = uni.getLocation;
					// #endif
					// #ifdef H5
					wxOjb.ready(() => {
						console.log('加载完毕注册事件');
						locationAddress({
							type: 'gcj02',
							success: function(res) {
								console.log('获取经纬度', res);
								obj.longitude4 = res.longitude;
								obj.latitude4 = res.latitude;
							},
							fail(e) {
								console.log('失败', e);
							}
						});
					});
					// #endif
					// #ifdef MP
					locationAddress({
						type: 'gcj02',
						success: function(res) {
							console.log('获取经纬度', res);
							obj.longitude4 = res.longitude;
							obj.latitude4 = res.latitude
						},
						fail(e) {
							console.log('失败', e);
						}
					});
					// #endif
				}
			} else {
				uni.getLocation({
					type: 'gcj02',
					success: function(res) {
						console.log('获取经纬度', res);
						obj.longitude4 = res.longitude;
						obj.latitude4 = res.latitude;
						obj.marker = [{
							longitude: res.longitude,
							latitude: res.latitude,
							iconPath: '/static/img/img19.png',
							width: '45',
							height: '45'
						}];
					},
					fail(e) {
						console.log('失败', e);
					}
				})
			}

		},
		computed: {
			...mapState('user', ['userInfo', 'hasLogin']),
			...mapState(['baseURL']),
		},
		methods: {
			...mapMutations('user', ['setUserInfo']),
			...mapMutations(['setUserInfo']),
			showEwm(ref) {
				this.$refs[ref].open()
			},
			closePup(ref) {
				this.$refs[ref].close()
			},
			loadIndex() {
				let obj = this;
				loadIndexs({}).then(({
					data
				}) => {
					this.carouselList = data.banner
				});
			},
			tocontribution() {
				uni.navigateTo({
					url: '/pages/form/applicationForm'
				});
			},
			tolocation() {
				uni.navigateTo({
					url: '/pages/applic/location'
				});
			},
			toapplic() {
				uni.navigateTo({
					url: '/pages/applic/appliSystem'
				});
			},
			tohelpActi() {
				uni.navigateTo({
					// url: "/pages/applic/tohelpActi"
					url: '/pages/form/tovolApply'
				});
			},
			toOrgan() {
				console.log('kepuxingbaoming');
				uni.navigateTo({
					url: '/pages/train/index'
				});
			},
			Jump(item) {
				// console.log(item);
				if (item.url != '') {
					window.open(item.url);
					return;
				}
				uni.navigateTo({
					url: '/pages/applic/info?id=' + item.id
				});
			},
			navTo(url) {
				uni.navigateTo({
					url,
					fail() {
						uni.switchTab({
							url
						})
					}
				});
			},
			// 获取科普文章列表
			getPkList() {
				let obj = this
				getArticList({
					page: obj.page,
					limit: obj.limit,
					ifyid: 69
				}).then(res => {
					obj.loaded = true
					console.log(res,'获取科普文章列表')
					obj.science = res.data.list
				})
			}
		}
	};
</script>

<style lang="scss">
	page {
		background: #fff;
	}
	a {
		text-decoration: none;
		color: #5f5f5f;
	}
	.content {
		background-color: #fff;
		height: 100%;

		/* 头部 轮播图 */
		.carousel-section {
			// padding-top: 10px;
			overflow: hidden;
			background-color: #fff;

			.carousel {
				width: 750rpx;
				height: 462rpx;
				margin: 0 auto;
				// border-radius: 20rpx;
				overflow: hidden;

				.carousel-item {
					width: 100%;
					height: 100%;
					padding-left: 30rpx;
					padding-right: 30rpx;
					overflow: hidden;
				}

				image {
					width: 100%;
					// height: 375rpx;
					// border-radius: 20rpx;
				}
			}
		}

		// 分类
		.cate-section {
			justify-content: space-around;
			background-color: #fff;
			padding: 46rpx 0 30rpx;

			.cate-item {
				width: 25%;
				flex-direction: column;
				text-align: center;
				align-items: center;
				justify-content: center;

				.img-wrapper {
					width: 100rpx;
					height: 88rpx;
					background: #eef4ff;
					border-radius: 14rpx;
					position: relative;

					image {
						position: absolute;
						left: 50%;
						top: 50%;
						transform: translate(-50%, -50%);
					}

					.img1 {
						width: 102rpx;
						height: 102rpx;
					}

				}

				.item-title {
					margin-top: 15rpx;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #333333;
				}
			}
		}

		// 红会科普
		.science-section {
			width: 100%;
			background-color: #ffffff;
			margin-top: 18rpx;
			padding-top: 30rpx;

			.science-title {
				display: flex;
				justify-content: center;
				align-items: center;
				padding-bottom: 22rpx;

				.title {
					width: 285rpx;
					height: 64rpx;
					background-color: #ca121e;
					border-radius: 32rpx;
					color: #ffffff;
					font-size: 32rpx;
					line-height: 64rpx;
					text-align: center;
				}

				image {
					width: 68rpx;
					height: 43rpx;
					margin-left: 16rpx;
					margin-right: 16rpx;
				}
			}

			.science-box {
				padding-left: 15rpx;
				padding-right: 15rpx;
				padding-bottom: 20rpx;
				border-bottom: 1rpx solid #f0f0f0;
				white-space: nowrap;
				display: flex;
				width: 100%;

				// .uni-scroll-view-content{
				// 	display: flex;
				// }
				.science-content {
					// width: 100%;

					// display: flex;
					display: -webkit-box;

					.science-item {
						margin-right: 24rpx;
						width: 198rpx;
						display: flex;
						flex-direction: column;
						align-items: center;
						text-align: center;

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

						.article-title {
							width: 198rpx;
							color: #333;
							font-size: 25rpx;
							padding-top: 20rpx;
							padding-bottom: 16rpx;
							font-weight: 900;
						}

						.article-content {
							width: 198rpx;
							color: #999999;
							font-size: 18rpx;
							overflow: hidden;
							text-overflow: ellipsis;
							display: -webkit-box;
							word-break: break-all;
							-webkit-box-orient: vertical;
							-webkit-line-clamp: 2;
						}
					}
				}
			}

			.science-more {
				display: flex;
				justify-content: center;
				align-items: center;
				color: #cb131c;
				font-size: 30rpx;
				padding-top: 18rpx;
				padding-bottom: 18rpx;

				image {
					width: 20rpx;
					height: 27rpx;
				}
			}
		}

		// sos急救中心
		.system {
			width: 100%;
			background-color: #ffffff;
			margin-top: 18rpx;
			padding: 40rpx 30rpx 35rpx 30rpx;
			margin-bottom: 20rpx;

			.system-map {
				margin: 30rpx auto 0;
				width: 689rpx;
				height: 312rpx;
				background-color: #ffffff;
				padding-bottom: 45rpx;
			}
		}

		// AED
		.list-box {
			padding: 0rpx 25rpx 24rpx;
			background-color: #fff;

			.system-title {
				display: flex;
				justify-content: flex-start;
				align-items: center;
				height: 130rpx;
				// padding-bottom: 22rpx;
				background-color: #ffffff;

				.title {
					width: 285rpx;
					height: 64rpx;
					background-color: #ca121e;
					border-radius: 32rpx;
					color: #ffffff;
					font-size: 32rpx;
					line-height: 64rpx;
					text-align: center;
				}

				.img {
					width: 68rpx;
					height: 43rpx;
					margin-left: 16rpx;
					margin-right: 16rpx;

					image {
						width: 68rpx;
						height: 43rpx;
					}
				}
			}
		}

		.map-box {
			width: 100%;
			height: 366rpx;
		}

		.list-tpl {
			background-color: #ffffff;
			margin: 25rpx 0rpx;
			padding: 25rpx 25rpx;
			font-size: 28rpx;
			border-radius: 15rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-bottom: 1px solid #f1f1f1;

			.list-left {
				display: flex;
				width: 100%;

				.number {
					font-size: 32rpx;
					margin-right: 14rpx;
				}

				.info {
					width: 100%;

					.title {
						font-size: 32rpx;
						color: #222222;
						font-weight: 500;
					}

					.addr {
						width: 400rpx;
						margin-top: 20rpx;
						font-size: 20rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #999999;
					}
				}
			}

			.image {
				width: 20%;
				text-align: center;

				image {
					width: 50rpx;
					height: 50rpx;
				}

				.tip {
					color: #7f7f7f;
					font-size: 21rpx;
				}
			}
		}
	}

	// 高配爱心红会
	// .red-box {
	// 	margin: 20rpx 0;
	// 	height: 521rpx;
	// 	padding: 40rpx 23rpx 35rpx 23rpx;
	// 	background-color: #fff;

	// 	.red-nav {
	// 		justify-content: space-between;
	// 		margin-top: 23rpx;

	// 		.left-nav {
	// 			width: 332rpx;
	// 			height: 392rpx;
	// 			background: #FFF3F5;
	// 			background-image: url(../../static/img/m1.png);
	// 			background-size: 100% 100%;
	// 		}

	// 		.right-nav {
	// 			width: 357rpx;
	// 			height: 392rpx;
	// 			flex-direction: column;
	// 			justify-content: space-between;
	// 			.right-top-nav {
	// 				width: 357rpx;
	// 				height: 204rpx;
	// 				background: #F6F6FF;
	// 				background-image: url(../../static/img/m2.png);
	// 				background-size: 100% 100%;
	// 			}

	// 			.right-bottom-nav {
	// 				width: 357rpx;
	// 				height: 173rpx;
	// 				justify-content: space-between;

	// 				view {
	// 					width: 171rpx;
	// 					height: 173rpx;
	// 				}

	// 				.left-item {
	// 					background: #F5EFFE;
	// 					background-image: url(../../static/img/m3.png);
	// 					background-size: 100% 100%;
	// 				}

	// 				.right-item {
	// 					background: #EDFEFE;
	// 					background-image: url(../../static/img/m4.png);
	// 					background-size: 100% 100%;
	// 				}
	// 			}
	// 		}
	// 	}
	// }

	// 低配爱心红会
	.red-box {
		margin: 20rpx 0;
		padding: 30rpx 30rpx 40rpx 30rpx;
		background-color: #fff;

		.red-nav {
			padding-top: 25rpx;
			display: flex;
			justify-content: space-between;

			.nav-item {
				width: 330rpx;
				height: 175rpx;
				background: #FFF4F2;
				border-radius: 15rpx;

				image {
					width: 330rpx;
					height: 175rpx;
				}
			}
		}
	}

	.popup_row2 {
		// margin-top: 108rpx;
		height: 440rpx;
		border-radius: 25rpx;
		width: 100%;
		padding: 24rpx;
		background-color: #f8f8f8;
		z-index: 999;

		.title {
			border-bottom: 2rpx solid #F2F2F2;
			color: #E63931;
			font-size: 32rpx;
			padding-left: 4rpx;
			padding-bottom: 16rpx;
			display: flex;
			justify-content: space-between;

			// align-items: center;
			.cancel {
				margin-left: 52rpx;
				width: 36rpx;
				height: 36rpx;

				image {
					width: 36rpx;
					height: 36rpx;
				}
			}
		}

		.inpBox {
			margin-top: 52rpx;
			border: 2px solid #f2f2f2;
			padding: 12rpx 24rpx;
			color: #FF9797;
			border-radius: 8rpx;

			.input-placeholder {
				// height: 70rpx;
				font-size: 32rpx;
				color: #FF9797;
			}
		}

		.inpedit {
			margin-top: 24rpx;
			margin-left: 14rpx;
			font-size: 28rpx;
			color: #FF9797;
		}

		.comfirm {
			display: flex;
			justify-content: flex-end;
			margin-top: 54rpx;

			.comfirm1 {
				padding: 12rpx 24rpx;
				border-radius: 12rpx;
				color: #FFFFFF;
				background-color: #E63931;
			}
		}
	}

	.location-item {
		z-index: 1000;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1rpx solid #E7E8EA;
		padding: 15rpx 0;

		.box-left {
			display: flex;

			.img01 {
				width: 8rpx;
				height: 28rpx;
				margin-right: 18rpx;

				image {
					width: 8rpx;
					height: 28rpx;
				}
			}

			.img02 {
				width: 117rpx;
				height: 117rpx;
				border-radius: 50%;

				image {
					width: 117rpx;
					height: 117rpx;
					border-radius: 50%;
				}
			}

			.info {
				margin-left: 16rpx;

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

					.name {
						font-size: 32rpx;
						color: #333333;
					}

					.distance {
						margin-left: 25rpx;
						font-size: 28rpx;
						color: #303133;
					}

					.location-icon {
						margin-left: 10rpx;
						width: 20rpx;
						height: 26rpx;

						image {
							width: 20rpx;
							height: 26rpx;
							display: inline;
						}
					}
				}

				.address {
					font-size: 26rpx;
					color: #333333;
					margin-top: 33rpx;
				}
			}
		}

		.box-right {
			.img {
				height: 107rpx;

				image {
					width: 107rpx;
					height: 107rpx;
				}
			}

			.called {
				margin-right: 16rpx;
				height: 107rpx;
				line-height: 107rpx;
				font-size: 28rpx;
				color: #CB131C;
			}
		}
	}

	.ewm {
		width: 75rpx;
		height: 75rpx;
		position: absolute;
		right: 10rpx;
		bottom: 200rpx;
		background-color: #fff;
		border-radius: 50%;

		box-shadow: 0 0 10rpx rgba($color: #000000, $alpha: 0.6);

		image {
			width: 50rpx;
			height: 50rpx;
			position: absolute;
			top: 0;
			left: 0;
			bottom: 0;
			right: 0;
			margin: auto;
		}

		.ewm-tit {
			position: absolute;
			bottom: 10rpx;
			font-size: 10rpx;
		}

		.closeEwm {
			width: 40rpx;
			height: 40rpx;
			position: absolute;
			top: -40rpx;
			right: -20rpx;

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

	}
	// 加入我们
	.join-us {
		width: 710rpx;
		margin: auto;
		background-color: #ffebeb;
		padding: 30rpx 0;
		border-radius: 20rpx;
		.join-top {
			height: 87rpx;
			align-items: center;
			justify-content: space-between;
			padding: 0 31rpx 0 36rpx;
			.top-tit {
				font-size: 38rpx;
				font-weight: bold;
				color: #FF4C4C;
				flex-grow: 1;
			}
			image {
				flex-shrink: 0;
				width: 195rpx;
				height: 87rpx;
			}
		}
		.item-wrap {
			width: 670rpx;
			margin: auto;
			border-radius: 7rpx;
			background: #fff;
		}
		.join-item {
			width: 670rpx;
			height: 140rpx;
			
			
			align-items: center;
			padding: 0 40rpx 0 30rpx;
			.join-log {
				width: 80rpx;
				height: 80rpx;
				flex-shrink: 0;
			}
			.join-tit {
				flex-grow: 1;
				padding-left: 17rpx;
				font-size: 26tpx;
				font-weight: 500;
				color: #999999;
				.tit-top {
					font-size: 34rpx;
					font-weight: bold;
					color: #3A4256;
				}
			}
			.join-to {
				flex-shrink: 0;
				width: 54rpx;
				height: 54rpx;
			}
		}
	}
	// 就在身边
	.help-wrap {
		width: 750rpx;
		
		.help-tit {
			// padding-left: 40rpx;
			font-size: 38rpx;
			font-weight: bold;
			color: #3A4256;
			padding: 45rpx 0 27rpx 40rpx;
		}
		.help-item {
			padding: 0 20rpx;
			justify-content: center;
			.item-left {
				height: 351rpx;
				width: 343rpx;
				flex-shrink: 0;
				margin-right: 23rpx;
			}
			.item-right {
				flex-direction: column;
				justify-content: space-between;
				image {
					width: 343rpx;
					height: 165rpx;
					border-radius: 20rpx;
				}
			}
		}
	}
	// 科普
	.kp-wrap {
		width: 750rpx;
		height: 353rpx;
		background-color: #fff;
		margin: 20rpx auto;
		position: relative;
		.wrap-tit {
			display: inline-block;
			line-height: 115rpx;
			padding-left: 40rpx;
			position: relative;
			font-size: 38rpx;
			font-weight: bold;
			color: #3A4256;
		}
		.readmore {
			width: 150rpx;
			padding-right: 27rpx;
			font-size: 28rpx;
			font-weight: 500;
			color: #999999;
			position: absolute;
			text-align: right;
			top: 0;
			right: 0;
			line-height: 110rpx;
			image {
				width: 35rpx;
				vertical-align: text-bottom;
			}
		}
		.kp-scroll {
			height: 200rpx;
			width: 750rpx;
			padding-left: 23rpx;
			white-space: nowrap;
			.kp-item {
				display: inline-block;
				width: 286rpx;
				height: 200rpx;
				background: #FFFFFF;
				border: 1px solid #F5F5F5;
				box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
				border-radius: 15rpx;
				margin-right:15rpx;
				.kp-item-img {
					height: 155rpx;
					margin-bottom: 5rpx;
					image {
						display: block;
						margin: auto;
						height: 155rpx;
						max-width: 286rpx;
					}
				}
				.kp-item-tit {
					text-align: center;
					width: 246rpx;
					height: 33rpx;
					background: #a1a1a1;
					border-radius: 17rpx;
					color: #fff;
					margin: auto;
					position: relative;
					font-size: 24rpx;
					font-weight: 500;
					color: #FEFEFE;
					line-height: 33rpx;
					padding-left: 23rpx;
					padding-right: 23rpx;
					overflow: hidden;
					// &::before {
					// 	content: '';
					// 	width: 4rpx;
					// 	height: 4rpx;
					// 	background: #F3392C;
					// 	border-radius: 50%;
					// 	position: absolute;
					// 	top: 0;
					// 	bottom: 0;
					// 	left: 12rpx;
					// 	margin: auto;
					// }
				}
			}
		}
	}
	.zyzbm {
		height: 900rpx;
		width: 563rpx;
		position: relative;
		image {
			width: 100%;
			height: 100%;
		}
		.close {
			width: 50rpx;
			height: 50rpx;
			position: absolute;
			bottom: -60rpx;
			left: 0;
			right: 0;
			margin: auto;
		}
	}
</style>
