Yuanxiao.php 2.6 KB
<?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'
            )
        ));
    }
}