Authored by lore-w

注册页面数据模拟

... ... @@ -4,28 +4,28 @@
{{> passport/cover}}
<div class="content">
<div class="register-page">
<form id="register-form" class="register-form" method="POST" action="/passport/register/mobileregister" autocomplete="off">
<form id="register-form" class="register-form" method="POST" action="{{actionUrl}}" autocomplete="off">
<ul>
<li class="clearfix">
<select id="region" class="region" name="region">
<option value="61">澳大利亚</option><option value="82">韩国</option><option value="1">加拿大</option><option value="60">马来西亚</option><option value="1">美国</option><option value="81">日本</option><option value="65">新加坡</option><option value="44">英国</option><option selected="selected" value="86">中国</option><option value="853">中国澳门</option><option value="886">中国台湾</option><option value="852">中国香港</option> </select>
{{#each region}}
<option {{#if selected}}selected="selected"{{/if}} value="{{id}}">{{name}}</option>
{{/each}}
</select>
</li>
<li class="clearfix">
<span id="country-code" class="country-code">+86</span>
<span id="country-code" class="country-code">{{location}}</span>
<input value="" id="phone-num" class="input va phone-num" type="text" name="phoneNum" placeholder="请输入手机号码" autocomplete="off">
</li>
<li class="w330 clearfix">
<input id="captcha" class="input va captcha" type="text" name="captcha" placeholder="图形验证码" autocomplete="off" maxlength="4">
<img id="captcha-img" class="captcha-img" src="http://www.yohobuy.com/passport/images?t=1449799445" alt="" onclick="imgcode()">
<a class="link change-captcha" onclick="imgcode()">换一张</a>
<img id="captcha-img" class="captcha-img" src="{{captchaUrl}}" alt="">
<a class="link change-captcha">换一张</a>
</li>
<li class="clearfix">
<input id="msg-captcha" class="input va msg-captcha" type="text" name="msgCaptcha" placeholder="短信验证码" autocomplete="off" maxlength="4">
<input id="send-captcha" class="btn send-captcha disable" type="button" value="获取短信验证码" disabled="">
<span id="msg-tip" class="hide msg-tip">
<img src="http://static.yohobuy.com/images/yohofamily/succ-info.png">
短信验证码已发送至您的手机,请查收
</span>
<span id="msg-tip" class="hide msg-tip">短信验证码已发送至您的手机,请查收</span>
</li>
<li class="clearfix">
<input id="pwd" class="input va pwd" name="pwd" placeholder="设置密码" autocomplete="off" maxlength="20" type="password">
... ... @@ -40,21 +40,20 @@
</div>
</li>
<li class="items-container clearfix">
<input id="agree-terms" class="agree-terms" type="checkbox" checked="">
<span>
我已阅读并同意遵守
<a class="link go-yoho-items" href="http://www.yohobuy.com/help/?category_id=9" onclick="getSource('yoho_family_web','有货服务条款','homepage_man');">YOHO!有货服务条款</a>
<a class="link go-yoho-items" href="{{itemUrl}}">YOHO!有货服务条款</a>
</span>
</li>
<li class="clearfix">
<input name="refer" id="refer" type="hidden" value="http://www.yohobuy.com/">
<input name="refer" id="refer" type="hidden" value="{{referUrl}}">
<input id="register-btn" class="btn register-btn disable" type="submit" value="立即注册" disabled="">
</li>
<li class="quick-login-container">
我已注册YOHO!有货账号
<a class="link go-login" onclick="getSource('yoho_family_web','快速登录','homepage_man');" href="/signin.html?refer=http://www.yohobuy.com/">快速登录</a>
<a class="link go-login" href="{{loginUrl}}">快速登录</a>
</li>
</ul>
<div id="err-tip" class="err-tip hide">
... ...
... ... @@ -10,11 +10,43 @@ class RegisterController extends AbstractAction
public function indexAction()
{
$data = array(
'loginPage' => true,
'registerPage' => true,
'passport' => array(
'actionUrl' => '/passport/register/mobileregister',
'region' => array(
array(
'id' => 12,
'name' => '中国',
'selected' => true
),
array(
'id' => 13,
'name' => '中国澳门',
'selected' => false
),
array(
'id' => 14,
'name' => '中国台湾',
'selected' => false
),
array(
'id' => 15,
'name' => '中国香港',
'selected' => false
),
array(
'id' => 16,
'name' => '马来西亚',
'selected' => false
),
),
'location' => '+86',
'captchaUrl' => 'http://www.yohobuy.com/passport/images?t=1449799445',
'itemUrl' => '##',
'refUrl' => 'http://www.yohobuy.com/',
'loginUrl' => '/signin.html?refer=http://www.yohobuy.com/',
'coverHref' => '/passport',
'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
'countrys' => array()
'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190'
)
);
$this->_view->display('index', $data);
... ...