<template>
	<view>
		<u-navbar :is-back="false" :border-bottom="false" :background="background">
			<view style="width: 100%;padding: 0 10rpx;">
				<view class="flztoa inlbhhe ">
					<navigator class="indihh" url="../index/index" open-type="redirect" hover-class="none">
						<text>最新</text>
					</navigator>
					<!-- <navigator class="indihh" url="../index/hykt" open-type="redirect" hover-class="none">
						<text>会员</text>
					</navigator> -->
					<view class="indihh" style="width: 40%;">
						<text style="font-size: 44rpx;color:  #374B6E;">治愈练习</text>
						<view
							style="width: 26rpx;height: 4rpx;background: #374B6E;border-radius: 4rpx;margin-top: 10rpx;">
						</view>
					</view>
					<!-- <navigator class="indihh" url="../index/hd" open-type="redirect" hover-class="none">
						<text>活动</text>
					</navigator> -->
				</view>
			</view>
		</u-navbar>

		<view class="zyjjvko">
			<view class="zyddwwe" v-for="(item,index) in list" :key="index">
				<navigator class="zygdihh" :style="'background: url(../../static/zy/zy0' + (index+1) + '.png) center center no-repeat;'"
					:url="'../index/zyDetail?item=' + JSON.stringify(item)" hover-class="none">
					<view class="zywenzi">
						<text>{{item.title}}</text>
						<text class="zywenzib">{{item.desc}}</text>
					</view>
				</navigator>
			</view>
		</view>
		<view style="height: 120rpx;"></view>
		<view style="height: 130rpx;"></view>
		<view class="dibuboot">
			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
				<image src="/static/dibu/bob1.png" style="width: 48rpx;height: 48rpx;"></image>
				<text style="color: #374B6E">首页</text>
			</navigator>
			<!-- 			<navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
				<text>咨询</text>
			</navigator>
			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
				<text>解惑</text>
			</navigator> -->
			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
				<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
				<text>我的</text>
			</navigator>
		</view>

	</view>
</template>
<style>
	page {
		background: #FAFAFA;
	}
</style>
<script>
	export default {
		data() {
			return {
				background: {
					backgroundColor: '#ffffff',
				},
				list:[{},{}]
			}
		},
		onLoad() {
			// this.getclassifyList();
			this.getcureList();
		},
		methods: {
			getcureList(){
				let user_id = uni.getStorageSync('id');
				this.$request.getcureList({}).then(res => {
					console.log(res)
					this.list = res.data.splice(0,6);
					
				}).catch(err => {
					console.log(err)
				})
			},
			// 获取分类列表
			getclassifyList() {
				let user_id = uni.getStorageSync('id');
				this.$post({
					data: {
						do: 'TypeList',
						// data: {
						// 	user_id: user_id,
						// 	type_id: 14,
						// 	pw: '375'
						// }
					}
				}).then(res => {
					this.list = res.data

				})
			},

		}
	}
</script>

<style lang="scss" scoped>
	.zyjjvko {
		display: flex;
		flex-wrap: wrap;
		padding: 0 10rpx;
		margin-top: 30rpx;
	}

	.zyddwwe {
		width: 50%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 20rpx;
	}

	.zygdihh {
		background-size: 100%;
		width: 342rpx;
		height: 290rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		display: flex;
		flex-direction: column;
	}

	.zygdihhb {
		background-size: 100%;
		width: 702rpx;
		height: 290rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		display: flex;
		flex-direction: column;
	}

	.zywenzi {
		display: flex;
		flex-direction: column;
		padding: 40rpx 30rpx;
		font-size: 32rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #FFFFFF;
		line-height: 44rpx;
	}

	.zywenzib {
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 40rpx;
	}
</style>
