Yuanxiao.php
1.96 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
<?php
use Action\HuodongAction;
use Plugin\Helpers;
use LibModels\Wap\Cuxiao\ActivityData;
use Api\Yohobuy;
/**
* 元宵抽签活动
*/
class YuanxiaoController extends HuodongAction
{
const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.0.0';
/**
* 元宵抽签
*/
public function indexAction()
{
$this->_view->display('index', array(
'staticTitle' => '元宵抽签',
'staticFile' => self::STATIC_FILE
));
}
/**
* 元宵抽签 信息
*/
public function infoAction()
{
$this->_view->display('info', array(
'staticTitle' => '元宵抽签',
'staticFile' => self::STATIC_FILE,
'staticJS' => array(
'info.js'
),
'gender' => 1
));
}
/**
* 元宵抽签 等待
*/
public function waitAction()
{
$this->_view->display('wait', array(
'staticTitle' => '元宵抽签',
'staticFile' => self::STATIC_FILE
));
}
/**
* 元宵抽签 结果
*/
public function resultAction()
{
$this->_view->display('result', array(
'staticTitle' => '元宵抽签',
'staticFile' => self::STATIC_FILE,
'result' => array(
'name' => '张大龙',
'type' => 'F4'
),
'staticJS' => array(
'result.js'
)
));
}
/**
* 元宵抽签 分享
*/
public function shareAction()
{
$this->_view->display('share', array(
'staticTitle' => '元宵抽签',
'staticFile' => self::STATIC_FILE,
'result' => array(
'name' => '张大龙',
'type' => 'P1'
),
'count' => '78999', // 过万转换成 “16万” 这种形式
'staticJS' => array(
'share.js'
)
));
}
}