detail.html 5.0 KB
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="user-scalable=0,width=device-width, initial-scale=0.3">
		<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/scompetition_detial.css" />
		<link rel="stylesheet" type="text/css" href="__CDN__/assets/libs/swiper/package/swiper-bundle.min.css" />
		<title></title>
		<style type="text/css">
			@media screen and (min-width:600px) {
				.main_left{
					min-height: 79.4vh !important;
				}
				.main{
					min-height: 79.4vh !important;
				}

			}
			.resource {
				margin-bottom: 25px;
			}
			.resource_title {
				font-size: 17px;
				font-weight: bold;
			}
			.resource li a{
				font-size: 16px;
				margin-left: 10px;
			}
			#modal2{
				padding:0.5rem 1rem;
			}
			.m_item{
				padding:0.5rem 0;
				font-size: 1rem;
				border-bottom: 1px solid #eee;
			}
			.title_right a {
				display: block;
				float: right;
				margin-right: 12px;
			}
			.rotation{
				width: 100%;
				/* height: 200px; */
			}
			.rotation img{
				width: 100%;
				height: 200px;
			}
		</style>
	</head>
	<body>
		<div id="modal2" style="display: none;">
			{foreach name="_types" item="vo"}
				<a href="{:url('index/science_competition/enter',['match_type_id'=>$vo['id']])}">
					<div class="m_item">
						<p style="color: #0066FF;">{$vo.name}</p>
						<p>{$vo.desc_content}</p>
					</div>
				</a>
			{/foreach}
		</div>
		<style type="text/css">
			.rotation{
				width: 100%;
				/* height: 200px; */
			}
		</style>
		<div class="rotation">
			<img src="__CDN__/assets/img/teacherRotation.png" />
		</div>
		<div class="main">
			<ul class="main_left">
				<li>双创竞赛</li>
				<li class="left_active">竞赛申报</li>
				<!--<li>项目管理</li>-->
				<!-- <img src="__CDN__/assets/img/bulbs.png" class="bulbs" > -->
			</ul>
			<div class="main_right">
				<div class="title">
					<div class="title_right">
						<a style="background: #18BB9C;width: 45px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px;" href="javascript:history.go(-1);">返回</a>
						{if $match['match_starttime'] > time()}
							<a style="background: #dadada;width: 95px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px;" href="javascript:;">报名未开始</a>
						{/if}
						{if $match['match_starttime'] < time() AND $match['match_endtime'] > time()}
							{if($registerFlg == 1)}
								<a  style="background: #00caff;width: 90px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px;" href="{:url('index/science_competition/enter',['match_id'=>$match['id']])}">立即报名</a>
							{else/}
								<a style="background: #dadada;width: 95px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px;" href="javascript:;">报名已关闭</a>
							{/if}
						{/if}
						{if $match['match_endtime'] < time()}
							<a style="background: #dadada;width: 90px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px" href="javascript:;">报名已结束</a>
						{/if}
					</div>
					<div class="title_left">
						<text style="color: #343434;width:550px;font-size:18px;font-weight: 550;">{$match.match_title}</text>
<!--						<text style="color: #999;">DECLARE</text>-->
					</div>
				</div>
				<div class="science-competition">
					<div class="detial_info">
						<text class="iconfont" style="color: #f57f17;">&#xe611;&nbsp;&nbsp;比赛时间:{$match.match_starttime|date='Y-m-d',###}至{$match.match_endtime|date='Y-m-d',###}</text>
						<text>主办单位:{$match.organizer}</text>
						<text class="iconfont">&#xe620;&nbsp;已报名&nbsp;{$match.item_count}</text>   
					</div>
					<div class="detial_content">
						{$match.match_content}
						<div class="mybutton">
						<!--	{if $match['match_starttime'] < time() AND $match['match_endtime'] > time()}
								{if $match['match_type'] == 0}
								<a style="background: #00caff;width: 90px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px;" href="{:url('index/science_competition/enter',['match_type_id'=>$_types[0]['id']])}">立即报名</a>
								{else/}
								<a id="apply" style="background: #00caff;width: 90px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px;" href="javascript:;">立即报名</a>
								{/if}
							{/if}
							{if $match['match_endtime'] < time()}
							<a style="background: #dadada;width: 90px;height: 32px;line-height: 32px;text-align: center;color: #ffffff;border-radius: 5px" href="javascript:;">报名已结束</a>
							{/if}-->
						</div>
					</div>
					<div class="resource">
						<p class="resource_title">资料下载:</p>
						{notempty name="match.rule_resources"}
							<ul>
								{foreach $match.rule_resources as $key => $val}
								<li><a target="_blank" href="__SUBDOMAIN__{$val}">{$key}</a></li>
								{/foreach}
							</ul>
						{/notempty}
					</div>
				</div>
			</div>
		</div>
	</body>
</html>