Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
2 changed files
with
15 additions
and
6 deletions
@@ -8,8 +8,8 @@ | @@ -8,8 +8,8 @@ | ||
8 | <li class="head-title">验证身份</li> | 8 | <li class="head-title">验证身份</li> |
9 | <li class="po-re"> | 9 | <li class="po-re"> |
10 | <label class="pn-label">手机号码</label> | 10 | <label class="pn-label">手机号码</label> |
11 | - <span class="country-code">+86</span> | ||
12 | - <span class="phone-num">18115624066</span> | 11 | + <span class="country-code">+{{area}}</span> |
12 | + <span class="phone-num">{{phoneNum}}</span> | ||
13 | </li> | 13 | </li> |
14 | <li class="po-re"> | 14 | <li class="po-re"> |
15 | <input id="captcha" class="input va captcha" type="text" name="captcha"> | 15 | <input id="captcha" class="input va captcha" type="text" name="captcha"> |
@@ -21,8 +21,8 @@ | @@ -21,8 +21,8 @@ | ||
21 | </span> | 21 | </span> |
22 | </li> | 22 | </li> |
23 | <li> | 23 | <li> |
24 | - <input name="area" id="area" type="hidden" value="86"> | ||
25 | - <input name="mobile" id="mobile" type="hidden" value="18115624066"> | 24 | + <input name="area" id="area" type="hidden" value="{{area}}"> |
25 | + <input name="mobile" id="mobile" type="hidden" value="{{phoneNum}}"> | ||
26 | <input name="captchaPic" id="captchaPic" type="hidden" value="g7ce"> | 26 | <input name="captchaPic" id="captchaPic" type="hidden" value="g7ce"> |
27 | <input name="refer" id="refer" type="hidden" value=""> | 27 | <input name="refer" id="refer" type="hidden" value=""> |
28 | <input id="next-step" class="btn next-step disable" type="submit" value="下一步" disabled=""> | 28 | <input id="next-step" class="btn next-step disable" type="submit" value="下一步" disabled=""> |
@@ -55,6 +55,7 @@ class BackController extends WebAction | @@ -55,6 +55,7 @@ class BackController extends WebAction | ||
55 | $mobile = $phoneNum; | 55 | $mobile = $phoneNum; |
56 | $data = BackData::sendCodeToMobile($mobile); | 56 | $data = BackData::sendCodeToMobile($mobile); |
57 | $this->setSession('phoneNum', $phoneNum); | 57 | $this->setSession('phoneNum', $phoneNum); |
58 | + $this->setSession('area', $area); | ||
58 | if($data['code'] == 200) { | 59 | if($data['code'] == 200) { |
59 | $this->redirect('verification'); | 60 | $this->redirect('verification'); |
60 | } | 61 | } |
@@ -159,12 +160,20 @@ class BackController extends WebAction | @@ -159,12 +160,20 @@ class BackController extends WebAction | ||
159 | * 手机验证 | 160 | * 手机验证 |
160 | */ | 161 | */ |
161 | public function verificationAction() { | 162 | public function verificationAction() { |
163 | + $phoneNum = $this->getSession('phoneNum'); | ||
164 | + $area = $this->getSession('area'); | ||
165 | +// if(empty($phoneNum)) { | ||
166 | +// $this->redirect('index'); | ||
167 | +// } | ||
168 | + $banner = PassportModel::getLeftBanner(PassportModel::BACK_LFFT_BANNER_CODE); | ||
162 | $data = array( | 169 | $data = array( |
163 | 'simpleHeader' => PassportModel::getSimpleHeader(false), | 170 | 'simpleHeader' => PassportModel::getSimpleHeader(false), |
164 | 'vertificationPage' => true, | 171 | 'vertificationPage' => true, |
165 | 'verification' => array( | 172 | 'verification' => array( |
166 | - 'coverHref' => '/passport', | ||
167 | - 'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190', | 173 | + 'coverHref' => $banner['url'], |
174 | + 'coverImg' => $banner['img'], | ||
175 | + 'phoneNum' => $phoneNum, | ||
176 | + 'area' => $area, | ||
168 | 'countrys' => array() | 177 | 'countrys' => array() |
169 | ) | 178 | ) |
170 | ); | 179 | ); |
-
Please register or login to post a comment