<!doctype html>
<html>
	<?php echo $this->fetch('head.html'); ?>

	<body>
		<a href="/" class="header-back header-back-fixed"></a>
		<img src="<?php echo images_site($this->_var['vote']['imgurl']); ?>" class="wmax"> 
		<div class="row-box mgb-5">
			<div class="flex flex-center bd-mp-5">
				<div class="flex-1 ">
					<div class="f16">已报名</div>
					<div class="cl2"><?php echo $this->_var['vote']['join_num']; ?></div>
				</div>
				<div class="flex-col-line"></div>

				<div class="flex-1">
					<div class="f16">累计投票</div>
					<div class="cl2"><?php echo $this->_var['vote']['vote_num']; ?></div>
				</div>
				<div class="flex-col-line"></div>
				<div class="flex-1">
					<div class="f16">访问量</div>
					<div class="cl2"><?php echo $this->_var['vote']['view_num']; ?></div>
				</div>

			</div>

			<div class="row-item-text "><i class="row-item-icon icon-hot_light"></i>
				<div class="flex-1"><?php echo $this->_var['vote']['title']; ?></div>
			</div>
			<div class="row-item-text "><i class="row-item-icon icon-time"></i>
				<div class="flex-1"><?php echo date("Y.m.d",$this->_var['vote']['starttime']); ?>-<?php echo date("Y.m.d",$this->_var['vote']['endtime']); ?></div>
			</div>
			<div class="tabs-toggle-group">
				<div class="tabs-toggle">
					<div class="tabs-toggle-hd flex-ai-center"><div class="row-item-icon icon-news"></div>活动介绍</div>
					<div class="tabs-toggle-box d-content"><?php echo $this->_var['vote']['content']; ?></div>
				</div>
			</div>
		</div>
		<div  id="app" style="display: none;" :class="'flex-col'" v-if="pageLoad">
			<div class="flex row-box mgb-10">
				<input v-model="bianhao" type="text" placeholder="输入编号"   class="input-flex-text" :value="bianhao">
				<div class="input-flex-btn" @click="search"><i class="iconfont  icon-search"></i></div>
			</div>
			
			<div class="  mtlist " id="votelist">
				 
				<div v-if="pageData.list.length==0" class="emptyData">暂无参与</div> 
				<div v-for="(item,index) in pageData.list" class="mtlist-item" >
					<div class="mtlist-item-bd">
						<div :gourl="'/module.php?m=vote_join&a=show&vid='+item.vid+'&id='+item.id" class="mtlist-imgbox">
							<img :src="item.imgurl+'.small.jpg'" class="mtlist-img" />
						</div>
						<div class="mtlist-item-pd">
							<div class="mtlist-title">{{item.title}}</div>
							<div class="flex flex-ai-center mgb-10 cl3">
								<span>编号：</span>
								<div class="cl-num">{{item.bianhao}}</div>
							</div>
							<div class="flex flex-ai-center">
								<a class="btn" :href="'/module.php?m=vote_join&a=show&vid='+item.vid+'&id='+item.id">看看</a>
								<div class="flex-1"></div>
								<div class="cl-num mgr-10">{{item.vote_num}}票</div>
							</div> 
						</div>
					</div>	
					
				</div>
			</div>
		</div>
		<?php $this->assign('ftnav','home'); ?>
		<?php echo $this->fetch('footer.html'); ?>
		<script src="/plugin/vue/vue.min.js"></script>
		<script>
			var vid="<?php echo $this->_var['vote']['id']; ?>";
		</script>
		<script src="<?php echo $this->_var['skins']; ?>index.js"></script>
	</body>
</html>
