Authored by hf

fixes bug to newsale page show banner link

1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 -<meta charset="utf-8">  
5 -<title>注册 | Yoho!Buy有货</title>  
6 -<meta name="keywords" content="Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款">  
7 -<meta name="description" content="YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。">  
8 -<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">  
9 -<meta http-equiv="cleartype" content="on">  
10 -<meta name="apple-mobile-web-app-status-bar-style" content="black" />  
11 -<meta content="telephone=no" name="format-detection" />  
12 -<meta content="email=no" name="format-detection" />  
13 -<script type="text/javascript">  
14 - (function(doc, win) {  
15 - var docEl = doc.documentElement;  
16 - (function() {  
17 - var clientWidth = docEl.clientWidth;  
18 - if (!clientWidth) {  
19 - return;  
20 - }  
21 - docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';  
22 - }());  
23 - })(document, window);  
24 -</script>  
25 -<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/1.1.2/index.css">  
26 -</head>  
27 -<body class=passport-body>  
28 - <div class="reg-page passport-page yoho-page">  
29 - <div class="header">  
30 - <a class="go-back" href=/></a>  
31 - <p class="title">注册</p>  
32 - </div> <div class="content">  
33 - <div class="select-container row">  
34 - <span class="select-title">国家和地区</span>  
35 - <select id="country-select" class="country-select select in-android-uc">  
36 - <option value=+61 >澳大利亚</option>  
37 - <option value=+82 >韩国</option>  
38 - <option value=+1 >加拿大</option>  
39 - <option value=+60 >马来西亚</option>  
40 - <option value=+1 >美国</option>  
41 - <option value=+81 >日本</option>  
42 - <option value=+65 >新加坡</option>  
43 - <option value=+44 >英国</option>  
44 - <option value=+86 selected>中国</option>  
45 - <option value=+853 >中国澳门</option>  
46 - <option value=+886 >中国台湾</option>  
47 - <option value=+852 >中国香港</option>  
48 - </select>  
49 - <div class="arrow-right"></div>  
50 - </div> <div class="input-container phone-container row has-clear">  
51 - <span id="area-code" class="area-code">+86</span>  
52 - <input id="phone-num" class="input phone-num" type="text" placeholder="手机号">  
53 - </div>  
54 - <span id="btn-next" class="btn btn-next disable row">下一步</span>  
55 - <p class="register-tip">YOHO!Family账号可登录YOHO!有货、YOHO!Boys、YOHO!Girls及SHOW</p>  
56 - </div>  
57 -</div>  
58 -<script src="http://cdn.yoho.cn/myohobuy/1.1.2/lib.js"></script>  
59 -<script src="http://cdn.yoho.cn/myohobuy/1.1.2/index.js"></script>  
60 -  
61 -<script type="text/javascript">  
62 - (function(w,d,s,j,f){  
63 - w['YohoAcquisitionObject']=f;  
64 - w[f]=function(){w[f].p=arguments;};  
65 - var a=d.createElement(s);  
66 - var m=d.getElementsByTagName(s)[0];  
67 - a.async=1;  
68 - a.src=j;  
69 - m.parentNode.insertBefore(a,m);  
70 - })(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.8/yas.js','_yas');  
71 -</script>  
72 -  
73 -<script>  
74 - seajs.use('js/common');  
75 -</script>  
76 -  
77 -  
78 -<script>  
79 - seajs.use('js/passport/register/register');  
80 -</script>  
81 -  
82 -  
83 -  
84 -  
85 -  
86 -  
87 -  
88 -  
89 -  
90 -  
91 -  
92 -  
93 -  
94 - <!-- Google Tag Manager -->  
95 - <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>  
96 - <script>  
97 - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':  
98 - new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],  
99 - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=  
100 - '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);  
101 - })(window,document,'script','dataLayer','GTM-W958MG');  
102 - </script>  
103 - <!-- End Google Tag Manager -->  
104 -  
105 -<script type="text/javascript">  
106 - var _hmt = _hmt || [];  
107 - (function() {  
108 - var hm = document.createElement("script");  
109 - hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";  
110 - var s = document.getElementsByTagName("script")[0];  
111 - s.parentNode.insertBefore(hm, s);  
112 - })();  
113 -</script>  
114 -  
115 -<script>  
116 - var _hmt = _hmt || [];  
117 - (function() {  
118 - var hm = document.createElement("script");  
119 - hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";  
120 - var s = document.getElementsByTagName("script")[0];  
121 - s.parentNode.insertBefore(hm, s);  
122 - })();  
123 -</script>  
124 -  
125 -<script src="http://static.yohobuy.com/js/analytics/analysis.js"></script>  
126 -  
127 -<script src="http://static.yohobuy.com/m/v1/js/om_code.js"></script></body>  
128 -</html>  
@@ -21,17 +21,17 @@ use Plugin\Cache; @@ -21,17 +21,17 @@ use Plugin\Cache;
21 class NewsaleModel 21 class NewsaleModel
22 { 22 {
23 /* 男生频道取新品到着及折扣专区数据的位置码 */ 23 /* 男生频道取新品到着及折扣专区数据的位置码 */
24 - const CODE_TOP_NEW_BOYS = 'a7989369aa86681c678bc40f171b8f1d';  
25 - const CODE_TOP_SALE_BOYS = 'e9c9be32d72e2906d404a72ee24cb523'; 24 + const CODE_TOP_NEW_BOYS = '3cf2c1be5217fbab6009ce83959e1e12';
  25 + const CODE_TOP_SALE_BOYS = '153180b9a88c0b565848850c523bb637';
26 /* 女生频道取新品到着及折扣专区数据的位置码 */ 26 /* 女生频道取新品到着及折扣专区数据的位置码 */
27 - const CODE_TOP_NEW_GIRLS = 'b0ba12104cfecacdcfd7ad74117a22b8';  
28 - const CODE_TOP_SALE_GIRLS = '785c0e6aab746949073c4ffb9d5106ac'; 27 + const CODE_TOP_NEW_GIRLS = '1cf7f9f10e2a2670e73d05c568793ad9';
  28 + const CODE_TOP_SALE_GIRLS = '0b2d133419a0f7c381306fd3522365e1';
29 /* 潮童频道取新品到着及折扣专区数据的位置码 */ 29 /* 潮童频道取新品到着及折扣专区数据的位置码 */
30 - const CODE_TOP_NEW_KIDS = 'c39607aa21219117976848819cf81a69';  
31 - const CODE_TOP_SALE_KIDS = 'ad1bb67a6007819c86f737d74172fd2e'; 30 + const CODE_TOP_NEW_KIDS = '57457adececa6c748b29c90cad0ae940';
  31 + const CODE_TOP_SALE_KIDS = 'de23648d28ee1e8a3f087a9dbac506f8';
32 /* 创意生活频道取新品到着及折扣专区数据的位置码 */ 32 /* 创意生活频道取新品到着及折扣专区数据的位置码 */
33 - const CODE_TOP_NEW_LIFESTYLE = '7c9ae01071f7a75d3911782feb4caebd';  
34 - const CODE_TOP_SALE_LIFESTYLE = '8132c7db3adbeb7b0d0002de9691c753'; 33 + const CODE_TOP_NEW_LIFESTYLE = '04953a61cbf1db426a681e55d496d2fe';
  34 + const CODE_TOP_SALE_LIFESTYLE = '01269e498ff5b07756e0733ec0e88c75';
35 35
36 /** 36 /**
37 * 获取新品到着的焦点图资源数据 37 * 获取新品到着的焦点图资源数据
@@ -23,9 +23,12 @@ class RegController extends AbstractAction @@ -23,9 +23,12 @@ class RegController extends AbstractAction
23 $data['isPassportPage'] = true; // 模板中模块标识 23 $data['isPassportPage'] = true; // 模板中模块标识
24 $data['areaCode'] = '+86'; // 默认的区号 24 $data['areaCode'] = '+86'; // 默认的区号
25 $data['countrys'] = RegData::getAreasData(); // 地区信息列表 25 $data['countrys'] = RegData::getAreasData(); // 地区信息列表
  26 +
  27 + $refer = $this->get('refer', SITE_MAIN . '/?go=1');
  28 + $this->setCookie('refer', $refer);
26 29
27 // 生成HTML(reg.html) 30 // 生成HTML(reg.html)
28 - $this->_view->html('reg'); 31 + //$this->_view->html('reg');
29 // 渲染模板 32 // 渲染模板
30 $this->_view->display('index', $data); 33 $this->_view->display('index', $data);
31 } 34 }
@@ -265,7 +268,11 @@ class RegController extends AbstractAction @@ -265,7 +268,11 @@ class RegController extends AbstractAction
265 268
266 /* 返回跳转到来源页面 */ 269 /* 返回跳转到来源页面 */
267 if ($data['code'] == 200) { 270 if ($data['code'] == 200) {
268 - $data['data'] = '/'; 271 + $refer = $this->getCookie('refer');
  272 + if (empty($refer)) {
  273 + $refer = SITE_MAIN . '/?go=1';
  274 + }
  275 + $data['data'] = $refer;
269 } 276 }
270 277
271 } while (false); 278 } while (false);