Emailbind.php 1.39 KB
<?php

use Action\WebAction;
use Passport\PassportModel;
use LibModels\Wap\Passport\RegData;
use WebPlugin\Helpers;

class EmailbindController extends WebAction
{

    /**
     * email绑定手机号流程
     */
    public function indexAction()
    {
        $this->setTitle('联合登录补全信息');
        $this->setSimpleHeader();

        //整合
        $data = array(
            'emailBind' => true,
            'region' => RegData::getAreasData(), //区域
            'serviceUrl' => Helpers::url('/help', array('category_id' => 9))//服务条款
        );

        $this->_view->display('index', $data);
    }

    /**
     * 邮箱可以绑定手机号
     */
    public function noregistAction()
    {
        $mobile = trim($this->post('mobile'));
        $area = trim($this->post('area'));
        $data = array(
            'enableEmailBind' => true,
            'mobile' => $mobile,
            'area' => $area
        );
        $this->setSimpleHeader();
        $this->_view->display('noregist', $data);
    }

    /**
     * 绑定成功
     */
    public function bindSuccessAction()
    {
        $data = array(
            'emailBind' => true,
            'goShopping' => SITE_MAIN,
            'sourceName' => '邮箱'
        );
        $this->setSimpleHeader();
        $this->_view->display('bindsuccess', $data);
    }

}