<template>
	<view class="">
		<view class="box">
			<view class="box_top">
				<image style="width: 100%; height: 100%" src="https://huli-app.wenlvti.net/app_static/minnanhun/image/ccbg.png"></image>
			</view>
			<view class="box_search" @click="searchBtn">
				<view class="">
					<uni-icons type="search" size="20"></uni-icons>
				</view>
				<view class="">请输入搜索内容</view>
			</view>
			<view class="box_tab">
				<u-tabs
					:duration="200"
					:list="listTab"
					:lineWidth="25"
					:lineHeight="12"
					lineColor="#4E7198"
					:lineColor="`url(${tabImg}) 100% 100%`"
					:activeStyle="{
						color: '#4E7198',
						fontSize: '34rpx'
					}"
				></u-tabs>
			</view>
			<!-- 瀑布流 -->

			<custom-waterfalls-flow :value="list" style="width: 90%; margin: auto">
				<view class="item" style="position: relative" v-for="(item, index) in list" :key="index" slot="slot{{index}}">
					<view class="title_pubu">
						{{ item.title }}
					</view>
					<!-- <view class="desc">{{ item.desc }}</view> -->
				</view>
			</custom-waterfalls-flow>
		</view>
		<mntabBar footerTab="2" :messageCount="0"></mntabBar>
	</view>
</template>

<script>
import { mapState } from 'vuex';
let that;

export default {
	components: {},
	data() {
		return {
			tabImg: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tab.png',
			list: [
				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy1.png',
					title: '传统捏泥人',
					desc: '描述描述描述描述描述描述描述描述2'
				},
				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy2.png',
					title: '青龙宫',
					desc: '描述描述描述描述描述描述描述描述1'
				},
				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy3.png',
					title: '火把节',
					desc: '11'
				},
				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy9.png',
					title: '老物件',
					desc: '描述描述描述描述描述描述描述描述2'
				},
				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy4.png',
					title: '林后青龙宫',
					desc: '描述描述描述描述描述描述描述描述2'
				},
				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy10.png',
					title: '书籍',
					desc: '描述描述描述描述描述描述描述描述2'
				},
				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy7.png',
					title: '建筑',
					desc: '描述描述描述描述描述描述描述描述2'
				},

				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy8.png',
					title: '老钟表',
					desc: '描述描述描述描述描述描述描述描述2'
				},

				{
					image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy14.png',
					title: '老物件',
					desc: '描述描述描述描述描述描述描述描述2'
				}
			],
			listTab: [
				{
					name: '书法',
					tabid: 1
				},
				{
					name: '戏曲',
					tabid: 2
				},
				{
					name: '非遗',
					tabid: 3
				},
				{
					name: '文化',
					tabid: 4
				},
				{
					name: '创作',
					tabid: 5
				}
			]
		};
	},
	onLoad(option) {
		that = this;
	},
	computed: {},
	methods: {
		searchBtn() {
			uni.navigateTo({
				url: '/chuanCheng_fenbao/search/search'
			});
		}
	}
};
</script>

<style>
.body {
	/* background-image: url('https://huli-app.wenlvti.net/uploads/20230512/88f8347924d08296bbde9d55afd74c15.jpg');
	background-size: 100% 100%; */
	background-attachment: fixed;
}
/deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
	padding: 0 40rpx !important;
}
/deep/.u-tabs__wrapper__nav__line.data-v-48634e29 {
	bottom: 16rpx !important;
}
/deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
	align-items: end !important;
}
/deep/.column-value.data-v-ddfcbb1c {
	border-radius: 25rpx 60rpx 0rpx 30rpx !important;
}
.box {
	height: auto;
	width: 100%;
	background-color: #eff6ff;
	background-attachment: fixed;
	border-radius: 16px 16px 0 0;
	position: relative;
	display: flex;
	flex-direction: column;
}
.box_top {
	width: 100%;
	height: 410rpx;
}
.box_search {
	display: flex;
	align-items: center;
	padding-left: 20rpx;
	box-sizing: border-box;
	width: 685rpx;
	height: 80rpx;
	color: #999999;
	font-size: 28rpx;
	background-color: #ffffff;
	z-index: 2;
	border-radius: 40rpx;
	margin: -90rpx 32rpx 0 34rpx;
}
.box_tab {
	margin: 45rpx 32rpx 0 32rpx;
}
.title_pubu {
	width: 100%;
	height: 65rpx;
	line-height: 65rpx;
	background-color: #ca5642;
	font-size: 30rpx;
	color: #ffffff;
	text-align: center;
	position: absolute;
	bottom: 0;
	left: 0;
}
</style>
