Authored by 毕凯

添加新势力 领券框架

{{> cuxiao/xinshili/header}}
<div class="main-wrap home">
<div class="header">新势力 优惠券 第二波</div>
</div>
{{> cuxiao/xinshili/footer}}
... ...
<input type="hidden" id="shareTitle" value="{{shareTitle}}">
<input type="hidden" id="shareDesc" value="{{shareDesc}}">
<input type="hidden" id="shareImg" value="{{shareImg}}">
<input type="hidden" id="shareLink" value="{{shareLink}}">
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script type="text/javascript" src="{{staticFile}}/js/libs.js"></script>
{{#staticJS}}
<script type="text/javascript" src="{{../staticFile}}/js/{{.}}"></script>
{{/staticJS}}
</body>
... ...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>{{staticTitle}}</title>
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="grey">
<script type="text/javascript">
(function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
</script>
<link rel="stylesheet" href="{{staticFile}}/css/style.css">
</head>
<body>
... ...
<?php
use Action\HuodongAction;
use Plugin\Helpers;
/**
* 元宵抽签活动
*/
class XinshiliController extends HuodongAction
{
const STATIC_FILE = 'http://localhost:2222/1.0.0';
// const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili/1.0.0';
/**
* 元宵抽签
*/
public function indexAction()
{
$this->_view->display('index', array(
'staticTitle' => '新势力',
'staticFile' => self::STATIC_FILE,
'staticJS' => array(
'home.js'
),
'shareTitle' => '新势力',
'shareDesc' => '新势力领券',
'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png',
'shareLink' => Helpers::url('/cuxiao/yuanxiao/index')
));
}
}
... ...