Showing
4 changed files
with
64 additions
and
0 deletions
1 | +<input type="hidden" id="shareTitle" value="{{shareTitle}}"> | ||
2 | +<input type="hidden" id="shareDesc" value="{{shareDesc}}"> | ||
3 | +<input type="hidden" id="shareImg" value="{{shareImg}}"> | ||
4 | +<input type="hidden" id="shareLink" value="{{shareLink}}"> | ||
5 | +<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script> | ||
6 | +<script type="text/javascript" src="{{staticFile}}/js/libs.js"></script> | ||
7 | +{{#staticJS}} | ||
8 | +<script type="text/javascript" src="{{../staticFile}}/js/{{.}}"></script> | ||
9 | +{{/staticJS}} | ||
10 | +</body> |
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
5 | + <meta charset="utf-8"> | ||
6 | + <title>{{staticTitle}}</title> | ||
7 | + <meta name="format-detection" content="telephone=no"> | ||
8 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui"> | ||
9 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
10 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
11 | + <script type="text/javascript"> | ||
12 | + (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); | ||
13 | + </script> | ||
14 | + <link rel="stylesheet" href="{{staticFile}}/css/style.css"> | ||
15 | +</head> | ||
16 | +<body> |
1 | +<?php | ||
2 | + | ||
3 | +use Action\HuodongAction; | ||
4 | +use Plugin\Helpers; | ||
5 | + | ||
6 | +/** | ||
7 | + * 元宵抽签活动 | ||
8 | + */ | ||
9 | +class XinshiliController extends HuodongAction | ||
10 | +{ | ||
11 | + const STATIC_FILE = 'http://localhost:2222/1.0.0'; | ||
12 | + // const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili/1.0.0'; | ||
13 | + | ||
14 | + /** | ||
15 | + * 元宵抽签 | ||
16 | + */ | ||
17 | + public function indexAction() | ||
18 | + { | ||
19 | + $this->_view->display('index', array( | ||
20 | + 'staticTitle' => '新势力', | ||
21 | + 'staticFile' => self::STATIC_FILE, | ||
22 | + 'staticJS' => array( | ||
23 | + 'home.js' | ||
24 | + ), | ||
25 | + 'shareTitle' => '新势力', | ||
26 | + 'shareDesc' => '新势力领券', | ||
27 | + 'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png', | ||
28 | + 'shareLink' => Helpers::url('/cuxiao/yuanxiao/index') | ||
29 | + )); | ||
30 | + } | ||
31 | + | ||
32 | +} |
-
Please register or login to post a comment