Yuanxiao.php
2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
use Action\HuodongAction;
use Plugin\Helpers;
use LibModels\Wap\Cuxiao\ActivityData;
use Api\Yohobuy;
/**
* 元宵抽签活动
*/
class YuanxiaoController extends HuodongAction
{
/**
* 元宵抽签
*/
public function indexAction()
{
$this->_view->display('index', array(
'staticTitle' => '元宵抽签',
'staticCSS' => 'http://localhost:2222/assets/1.0.0/css/style.css',
'staticJS' => array(
'http://localhost:2222/assets/1.0.0/js/main.js',
'http://localhost:2222/assets/1.0.0/js/home.js'
)
));
}
/**
* 元宵抽签 信息
*/
public function infoAction()
{
$this->_view->display('info', array(
'staticTitle' => '元宵抽签',
'staticCSS' => 'http://localhost:2222/assets/1.0.0/css/style.css',
'staticJS' => array(
'http://localhost:2222/assets/1.0.0/js/main.js',
'http://localhost:2222/assets/1.0.0/js/info.js'
)
));
}
/**
* 元宵抽签 等待
*/
public function waitAction()
{
$this->_view->display('wait', array(
'staticTitle' => '元宵抽签',
'staticCSS' => 'http://localhost:2222/assets/1.0.0/css/style.css',
'staticJS' => array(
'http://localhost:2222/assets/1.0.0/js/main.js',
'http://localhost:2222/assets/1.0.0/js/wait.js'
)
));
}
/**
* 元宵抽签 结果
*/
public function resultAction()
{
$this->_view->display('result', array(
'staticTitle' => '元宵抽签',
'result' => array(
'name' => '张大龙',
'type' => 'P1'
),
'staticCSS' => 'http://localhost:2222/assets/1.0.0/css/style.css',
'staticJS' => array(
'http://localhost:2222/assets/1.0.0/js/main.js',
'http://localhost:2222/assets/1.0.0/js/result.js'
)
));
}
/**
* 元宵抽签 分享
*/
public function shareAction()
{
$this->_view->display('share', array(
'staticTitle' => '元宵抽签',
'result' => array(
'name' => '张大龙',
'type' => 'P1'
),
'staticCSS' => 'http://localhost:2222/assets/1.0.0/css/style.css',
'staticJS' => array(
'http://localhost:2222/assets/1.0.0/js/main.js',
// 'http://localhost:2222/assets/1.0.0/js/share.js'
)
));
}
}