Emailbind.php
1.39 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
<?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);
}
}