<template>
	<view style="background-color: #EBF4F7;letter-spacing: 1rpx;">
		<tn-nav-bar :isBack="false" :bottomShadow="true" backgroundColor="#FFFFFF">
			<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
				<view class="tn-margin-top"
					style="text-shadow:  1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
					<tn-tabs :list="[{name:'协会活动'}]" :current="topCurrent" activeColor="#000" :bold="false"
						:fontSize="36"></tn-tabs>
				</view>
			</view>
		</tn-nav-bar>
		<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
			<!-- <view style="padding: 30rpx;">
				<view class="tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between"
					style="text-align: center;padding: 30rpx;background-color: #FFF;border-radius: 20rpx;">
					<view>
						<view>
							<image src="/static/ico1.png" style="width: 70rpx;height: 70rpx;"></image>
						</view>
						<view style="margin-top: 10rpx;">
							<text>协会活动</text>
						</view>
					</view>
					<view>
						<view>
							<image src="/static/ico2.png" style="width: 70rpx;height: 70rpx;"></image>
						</view>
						<view style="margin-top: 10rpx;">
							<text>知识学堂</text>
						</view>
					</view>
					<view>
						<view>
							<image src="/static/ico3.png" style="width: 70rpx;height: 70rpx;"></image>
						</view>
						<view style="margin-top: 10rpx;">
							<text>供需服务</text>
						</view>
					</view>
					<view>
						<view>
							<image src="/static/ico4.png" style="width: 70rpx;height: 70rpx;"></image>
						</view>
						<view style="margin-top: 10rpx;">
							<text>金融服务</text>
						</view>
					</view>
				</view>
			</view> -->
		</view>
		<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
			style="padding:10rpx 30rpx;margin-top: 20rpx;">
			<view style="font-size: 36rpx;">协会活动</view>
			<view style="color: #808080;" @click="openUrl('/pages/index/events_list')">
				<text>更多</text>
				<text class="tn-icon-right"></text>
			</view>
		</view>
		<view style="padding-bottom: 30rpx;">
			<scroll-view :scroll-x="true" style="padding:0rpx 30rpx;white-space: nowrap;">
				<view v-for="(item,index) in 3" @click="openUrl('/pages/index/events_info')"
					style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;;display: inline-block;width: 300rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;">
					<view>
						<image src="/static/hd1.jpg" mode="widthFix" style="width: 300rpx;"></image>
					</view>
					<view style="padding:10rpx 20rpx;font-weight: 400;">
						<view class="tn-text-ellipsis-2" style="letter-spacing: 1px;">青年企业家能力提升 计划培训班(第20期)</view>
					</view>
					<view style="position: absolute;top: 10rpx;left: 10rpx;">
						<tn-button v-if="index==0" width="80rpx" height="40rpx" size="sm" backgroundColor="#6BC7F0 "
							fontColor="tn-color-white">报名中</tn-button>
						<tn-button v-if="index==1" width="80rpx" height="40rpx" size="sm" backgroundColor="#EE9556 "
							fontColor="tn-color-white">预告</tn-button>
						<tn-button v-if="index==2" width="80rpx" height="40rpx" size="sm" backgroundColor="#E12B33 "
							fontColor="tn-color-white">进行中</tn-button>
					</view>
				</view>
			</scroll-view>
		</view>
		<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center" style="padding:10rpx 30rpx;">
			<view style="font-size: 36rpx;">知识学堂</view>
			<view style="color: #808080;" @click="openUrl('/pages/index/knowledge_list')">
				<text>更多</text>
				<text class="tn-icon-right"></text>
			</view>
		</view>
		<view style="padding:0rpx 30rpx;">
			<view @click="openUrl('/pages/index/new_info')"
				style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;width: 100%;background-color: #FFF;border-radius: 20rpx;overflow: hidden;">
				<view>
					<image src="/static/s1.jpg" mode="widthFix" style="width: 100%;"></image>
				</view>
				<view style="padding:10rpx 20rpx;font-weight: 400;">
					<view class="tn-text-ellipsis-2">青年企业家能力提升 计划培训班(第20期)</view>
					<view class="tn-flex tn-flex-row-between"
						style="font-size: 24rpx;color:#808080;padding: 20rpx 0rpx;">
						<view>河南青企协</view>
						<view>
							<text class="tn-icon-eye"></text>
							<text style="margin-left: 5rpx;">568</text>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view style="padding: 30rpx 0rpx;">
			<scroll-view :scroll-x="true" style="padding:0rpx 30rpx;white-space: nowrap;">
				<view v-for="(item,index) in 3" @click="openUrl('/pages/index/new_info')"
					style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;;display: inline-block;width: 335rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;">
					<view>
						<image src="/static/hd1.jpg" style="width: 335rpx;height: 200rpx;"></image>
					</view>
					<view style="padding:10rpx 20rpx;font-weight: 400;">
						<view class="tn-text-ellipsis" style="letter-spacing: 1px;">青年企业家能力提升 计划培训班(第20期)</view>
						<view class="tn-flex tn-flex-row-between"
							style="font-size: 24rpx;color:#808080;padding: 15rpx 0rpx;">
							<view>河南青企协</view>
							<view>
								<text class="tn-icon-eye"></text>
								<text style="margin-left: 5rpx;">568</text>
							</view>
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
		<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center" style="padding:10rpx 30rpx;">
			<view style="font-size: 36rpx;">供需服务</view>
			<view style="color: #808080;" @click="openUrl('/pages/index/goods_list')">
				<text>更多</text>
				<text class="tn-icon-right"></text>
			</view>
		</view>
		<view style="padding:10rpx  30rpx 100rpx 30rpx;">
			<view v-for="(item,index) in 3" @click="openUrl('/pages/index/goods_info')" style="background-color: #FFF;padding: 20rpx;border-radius: 20rpx;
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);margin-bottom: 20rpx;">
				<view class="tn-text-ellipsis">
					<tn-tag v-if="index%2==0" shape="radius" size="sm" backgroundColor="tn-main-gradient-red--reverse"
						width="60rpx">需求</tn-tag>
					<tn-tag v-if="index%2!=0" shape="radius" size="sm" backgroundColor="tn-main-gradient-blue"
						width="60rpx">供应</tn-tag>
					<text style="vertical-align: middle;padding-left: 20rpx;font-size:30rpx;">
						劲捷飞燕系列P056C旅拍三脚架碳纤维摄影旅拍三脚架碳纤维摄影</text>
				</view>
				<view style="font-size: 24rpx;color: #808080;margin-top: 20rpx;">洛阳灵睿网络技术有限公司</view>
				<view>
					<tn-tag shape="radius" width="auto" backgroundColor="#F7F7F7" fontColor="#808080">洛阳市</tn-tag>
					<tn-tag shape="radius" margin="20rpx" width="auto" backgroundColor="#EBF4F7"
						fontColor="#3377FF">合作意向18人</tn-tag>
					<tn-tag shape="radius" width="auto" backgroundColor="#F7F3EB" fontColor="#FF8C19">项目金额1万以下</tn-tag>
				</view>
				<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
					style="margin-top: 20rpx;">
					<view style="color: #808080;font-size: 24rpx;">2023-12-19</view>
					<view>
						<tn-button shape="round" :fontSize="22" width="148rpx" height="50rpx"
							backgroundColor="tn-main-gradient-orange" fontColor="#ffffff">意向合作</tn-button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				topCurrent: 0
			}
		},
		methods: {
			openUrl(e) {
				uni.navigateTo({
					url: e
				})
			}
		}
	}
</script>

<style>

</style>