...
|
...
|
@@ -22,6 +22,7 @@ class BackController extends WebAction |
|
|
'coverImg' => $banner['img'],
|
|
|
'countryCode' => '86',
|
|
|
'countryName' => '中国',
|
|
|
'captchaUrl'=>'/passport/images?t=1449799445',
|
|
|
'countryList' => RegData::getAreasData(),
|
|
|
)
|
|
|
);
|
...
|
...
|
@@ -40,7 +41,7 @@ class BackController extends WebAction |
|
|
{
|
|
|
$phoneNum = $this->post('phoneNum','');
|
|
|
$area = $this->post('area','86');
|
|
|
$captcha = $this->post('captcha','');
|
|
|
$verifyCode = $this->post('verifyCode','');
|
|
|
if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
|
|
|
$email = $phoneNum;
|
|
|
$data = BackData::sendCodeToEmail($email);
|
...
|
...
|
@@ -56,7 +57,7 @@ class BackController extends WebAction |
|
|
$data = BackData::sendCodeToMobile($mobile);
|
|
|
$this->setSession('phoneNum', $phoneNum);
|
|
|
$this->setSession('area', $area);
|
|
|
$this->setSession('captcha', $captcha);
|
|
|
$this->setSession('verifyCode', $verifyCode);
|
|
|
if($data['code'] == 200) {
|
|
|
$this->redirect('verification');
|
|
|
}
|
...
|
...
|
@@ -75,23 +76,6 @@ class BackController extends WebAction |
|
|
$this->redirect('index');
|
|
|
}
|
|
|
$banner = PassportModel::getLeftBanner(PassportModel::BACK_LFFT_BANNER_CODE);
|
|
|
$simpleHeader = array(
|
|
|
'logo' => array(
|
|
|
'img' => 'http://static.yohobuy.com/newheader/img/logo_e.png',
|
|
|
'url' => 'http://www.yohobuy.com'
|
|
|
),
|
|
|
'tool' => array(
|
|
|
'user' => '2586703@qq.com',
|
|
|
'userCenter' => '',
|
|
|
'loginHref' => '',
|
|
|
'logoutHref' => '',
|
|
|
'registerHref' => '',
|
|
|
'favoriteHref' => '',
|
|
|
'couponHref' => '',
|
|
|
'orderHref' => '',
|
|
|
'helpHref' => ''
|
|
|
)
|
|
|
);
|
|
|
$data = array(
|
|
|
'simpleHeader' => PassportModel::getSimpleHeader(false),
|
|
|
'sendEmail' => array(
|
...
|
...
|
@@ -176,7 +160,7 @@ class BackController extends WebAction |
|
|
public function verificationAction() {
|
|
|
$phoneNum = $this->getSession('phoneNum');
|
|
|
$area = $this->getSession('area');
|
|
|
$captcha = $this->getSession('captcha');
|
|
|
$verifyCode = $this->getSession('verifyCode');
|
|
|
if(empty($phoneNum)) {
|
|
|
$this->redirect('index');
|
|
|
}
|
...
|
...
|
|