Authored by 毕凯

增加绑定成功页面

@import "common", "register", "login", "back", "code", "bind";
@import "common", "register", "login", "back", "code", "bind", "success";
... ...
.success-page {
color: #fefefe;
.success-icon {
width: 74px;
height: 74px;
margin: 60px auto 30px;
background: image-url('passport/success.png');
background-size: 100%;
}
.success-tip {
padding: 10px 10px;
font-size: 16px;
line-height: 1.5;
}
.go {
display: block;
margin: 30px auto;
width: 270px;
height: 40px;
font-size: 14px;
line-height: 40px;
color: #fff;
background: rgba(255, 255, 255, 0.4);
border-radius: 5px;
}
}
... ...
{{> layout/header_passport}}
<div class="success-page passport-page yoho-page">
<div class="success-icon">
</div>
<div class="success-tip">
{{{successTip}}}
</div>
<a class="go" href="{{goUrl}}">
立即购物
</a>
</div>
{{> layout/footer_passport}}
... ...
... ... @@ -102,6 +102,22 @@ class BindController extends AbstractAction
}
/**
* 绑定成功页面
*/
public function successAction()
{
$this->setTitle('重新设置登录密码');
$data = array(
'isPassportPage' => true, // 模板中模块标识
'successTip' => '恭喜,您的手机号码已经关联成功。<br/>该手机号码不能用来登陆此账户,您可以选择继续使用微信登录', //提示文字
'goUrl' => Helpers::url('/'), // 返回的到关联流程前的浏览页面
);
// 渲染模板
$this->_view->display('success', $data);
}
/**
* 绑定前手机号校验
*/
public function bindCheckAction()
... ... @@ -119,7 +135,7 @@ class BindController extends AbstractAction
$areaCode = $this->post('areaCode', '86');
$sourceType = $this->post('sourceType');
$nickname = $this->post('nickname');
if (!is_numeric($phoneNum) || !$openId || !$areaCode || !$sourceType) {
break;
}
... ...