Authored by whb

测试现场活动

1 <?php $this->_extends('layout/default_layout_mobile');?> 1 <?php $this->_extends('layout/default_layout_mobile');?>
2 <?php $this->_block('main');?> 2 <?php $this->_block('main');?>
3 -<?php if(strtotime('2015-09-18 23:59:00') > $this->view->currentday && time() < strtotime('2015-09-18 23:59:00')): //9-18?> 3 +<?php if(strtotime('2015-07-25 23:59:00') > $this->view->currentday && time() < strtotime('2015-07-25 23:59:00')): //9-18?>
4 <img src="<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>" style="width:100%;"/> 4 <img src="<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>" style="width:100%;"/>
5 <?php else:?> 5 <?php else:?>
6 <div class="scene-tab"> 6 <div class="scene-tab">
7 <ul class="clearfix"> 7 <ul class="clearfix">
8 <?php $navs = current($this->view->navs);ksort($navs); 8 <?php $navs = current($this->view->navs);ksort($navs);
9 foreach($navs as $nav): 9 foreach($navs as $nav):
10 - if(strtotime('2015-09-18 23:59:00') > $nav['timestamp']) continue; 10 + if(strtotime('2015-07-25 23:59:00') > $nav['timestamp']) continue;
11 ?> 11 ?>
12 <li 12 <li
13 <?php if($nav['timestamp'] == $this->view->currentday && $nav['enable']) echo 'class="current"'; 13 <?php if($nav['timestamp'] == $this->view->currentday && $nav['enable']) echo 'class="current"';
@@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
63 }) 63 })
64 function getClientShare() 64 function getClientShare()
65 { 65 {
66 - return window.json.stringify({title: 'yohood',desc: 'yohood 现场活动',imgUrl: '<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>', 66 + return window.json.stringify({title: '2015YO\'HOOD潮流新品嘉年华现场活动大公开!',desc: 'YO\'HOOD潮狂欢一起来!更多明星、品牌现场活动尽在www.yohood.cn。',imgUrl: '<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>',
67 link: '<?php echo SITE_MAIN.'/activity/plan/currentday'.$this->view->currentday; ?>'}); 67 link: '<?php echo SITE_MAIN.'/activity/plan/currentday'.$this->view->currentday; ?>'});
68 } 68 }
69 </script> 69 </script>