|
@@ -9,7 +9,8 @@ use Plugin\Helpers; |
|
@@ -9,7 +9,8 @@ use Plugin\Helpers; |
9
|
*/
|
9
|
*/
|
10
|
class YuanxiaoController extends HuodongAction
|
10
|
class YuanxiaoController extends HuodongAction
|
11
|
{
|
11
|
{
|
12
|
- const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.0.0';
|
12
|
+ // const STATIC_FILE = 'http://localhost:2222/assets/1.0.1';
|
|
|
13
|
+ const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.0.1';
|
13
|
const ENCRYPT_KEY = 'iamgtskkwhoareyou';
|
14
|
const ENCRYPT_KEY = 'iamgtskkwhoareyou';
|
14
|
|
15
|
|
15
|
/**
|
16
|
/**
|
|
@@ -35,6 +36,9 @@ class YuanxiaoController extends HuodongAction |
|
@@ -35,6 +36,9 @@ class YuanxiaoController extends HuodongAction |
35
|
$this->_view->display('index', array(
|
36
|
$this->_view->display('index', array(
|
36
|
'staticTitle' => '元宵抽签',
|
37
|
'staticTitle' => '元宵抽签',
|
37
|
'staticFile' => self::STATIC_FILE,
|
38
|
'staticFile' => self::STATIC_FILE,
|
|
|
39
|
+ 'staticJS' => array(
|
|
|
40
|
+ 'home.js'
|
|
|
41
|
+ ),
|
38
|
'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享
|
42
|
'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享
|
39
|
'shareLink' => 'http://feature.yoho.cn/2016lishifeng/index.html',
|
43
|
'shareLink' => 'http://feature.yoho.cn/2016lishifeng/index.html',
|
40
|
'shareTitle' => 'YOHO!BUY有货新年寻宝大作战,千元利是等你赢!',
|
44
|
'shareTitle' => 'YOHO!BUY有货新年寻宝大作战,千元利是等你赢!',
|
|
@@ -102,7 +106,10 @@ class YuanxiaoController extends HuodongAction |
|
@@ -102,7 +106,10 @@ class YuanxiaoController extends HuodongAction |
102
|
|
106
|
|
103
|
$this->_view->display('wait', array(
|
107
|
$this->_view->display('wait', array(
|
104
|
'staticTitle' => '元宵抽签',
|
108
|
'staticTitle' => '元宵抽签',
|
105
|
- 'staticFile' => self::STATIC_FILE
|
109
|
+ 'staticFile' => self::STATIC_FILE,
|
|
|
110
|
+ 'staticJS' => array(
|
|
|
111
|
+ 'wait.js'
|
|
|
112
|
+ ),
|
106
|
));
|
113
|
));
|
107
|
}
|
114
|
}
|
108
|
|
115
|
|
|
@@ -128,6 +135,10 @@ class YuanxiaoController extends HuodongAction |
|
@@ -128,6 +135,10 @@ class YuanxiaoController extends HuodongAction |
128
|
$this->_view->display('result', array(
|
135
|
$this->_view->display('result', array(
|
129
|
'staticTitle' => '元宵抽签',
|
136
|
'staticTitle' => '元宵抽签',
|
130
|
'staticFile' => self::STATIC_FILE,
|
137
|
'staticFile' => self::STATIC_FILE,
|
|
|
138
|
+ 'result' => array(
|
|
|
139
|
+ 'name' => '张大龙',
|
|
|
140
|
+ 'type' => 'M1'
|
|
|
141
|
+ ),
|
131
|
'result' => $result,
|
142
|
'result' => $result,
|
132
|
'shareUrl' => $shareUrl,
|
143
|
'shareUrl' => $shareUrl,
|
133
|
'staticJS' => array(
|
144
|
'staticJS' => array(
|