Authored by hf

code review by hf: do modify newyear game coupon download app link

  1 +* {
  2 + margin: 0;
  3 + padding: 0;
  4 +}
  5 +.coupon-container img {
  6 + display: block;
  7 + max-width: 100%;
  8 +}
  9 +
  10 +.coupon-top {
  11 + position: relative;
  12 +}
  13 +.coupon-top .go-check {
  14 + position: absolute;
  15 + bottom: 7.075rem;
  16 + width: 100%;
  17 + height: 3.0rem;
  18 +}
  19 +.coupon-top .app-btn {
  20 + position: absolute;
  21 + width: 7.55rem;
  22 + height: 4.0rem;
  23 + bottom: 1.6rem;
  24 +}
  25 +.coupon-top .app-btn.app1{
  26 + left: 0.325rem
  27 +}
  28 +.coupon-top .app-btn.app2{
  29 + right: 0.325rem
  30 +}
  31 +.coupon-bottom {
  32 + height: 24.125rem;
  33 + background: url(../../img/newyear/160105/bottom-bg.png) no-repeat bottom center;
  34 + background-size: 100% 100%;
  35 +}
  36 +
  37 +.coupon-banner {
  38 + text-align: center;
  39 + font-size: 0;
  40 +}
  41 +.coupon-banner a {
  42 + display: inline-block;
  43 + width: 6.6rem;
  44 + height: 6.6rem;
  45 + margin: 0 0.25rem 0.55rem;
  46 +}
  47 +
  48 +.coupon-bottom .follow-yoho {
  49 + display: block;
  50 + margin: 1.5rem auto 0;
  51 + width: 10.175rem;
  52 + height: 2.675rem;
  53 +}
  54 +
  55 +.bottom-btn {
  56 + margin: 1.95rem 0 0;
  57 + font-size: 0;
  58 + text-align: center;
  59 +}
  60 +.bottom-btn a {
  61 + display: inline-block;
  62 + margin: 0 1.25rem;
  63 + width: 5.225rem;
  64 + height: 2.0rem;
  65 +}
  66 +.modal {
  67 + position: fixed;
  68 + top: 0;
  69 + right: 0;
  70 + bottom: 0;
  71 + left: 0;
  72 + background: url(../../img/newyear/160105/share.png) center top no-repeat;
  73 + -webkit-background-size: 100%;
  74 + -moz-background-size: 100%;
  75 + background-size: 100%;
  76 + display: none;
  77 +}
  78 +
  79 +.has-done {
  80 + position: fixed;
  81 + top: 0;
  82 + right: 0;
  83 + bottom: 0;
  84 + left: 0;
  85 + background: rgba(0,0,0,0.4) url(../../img/newyear/160105/11.png);
  86 + background-repeat: no-repeat;
  87 + background-size: 80% auto;
  88 + background-position: center center;
  89 + overflow: hidden;
  90 + display: none;
  91 +}
  92 +
  93 +.dialog-box {
  94 + display: none;
  95 + position: fixed;
  96 + top: 0;
  97 + right: 0;
  98 + bottom: 0;
  99 + left: 0;
  100 + background: rgba(0,0,0,0.4);
  101 + z-index: 999;
  102 +}
  103 +
  104 +.dialog-inner {
  105 + position: absolute;
  106 + width: 13.375rem;
  107 + height: 9.625rem;
  108 + top: 50%;
  109 + left: 50%;
  110 + margin: -4.8125rem 0 0 -6.6875rem;
  111 +}
  112 +
  113 +.dialog-inner img {
  114 + max-width: 100%;
  115 +}
  116 +
  117 +.dialog-inner span {
  118 + position: absolute;
  119 + width: 9rem;
  120 + height: 1.85rem;
  121 + bottom: 0.6rem;
  122 + left: 50%;
  123 + margin: 0 0 0 -4.5rem;
  124 + cursor: pointer;
  125 +}
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> 9 <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
10 <meta name="apple-mobile-web-app-capable" content="yes"> 10 <meta name="apple-mobile-web-app-capable" content="yes">
11 <meta name="apple-mobile-web-app-status-bar-style" content="grey"> 11 <meta name="apple-mobile-web-app-status-bar-style" content="grey">
12 - <link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/newyear/index.css"> 12 + <link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/newyear/index-2.css">
13 <script> 13 <script>
14 (function(doc, win) { 14 (function(doc, win) {
15 var docEl = doc.documentElement; 15 var docEl = doc.documentElement;
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 <img src="{{imgUrl}}/cuxiao/img/newyear/160105/top-bg.png" alt=""> 29 <img src="{{imgUrl}}/cuxiao/img/newyear/160105/top-bg.png" alt="">
30 <a class="go-check" href="{{myCouponUrl}}"></a> 30 <a class="go-check" href="{{myCouponUrl}}"></a>
31 <a class="app-btn app1" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445"></a> 31 <a class="app-btn app1" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445"></a>
32 - <a class="app-btn app2" href="http://www.yohoshow.com/about/index/yohoboysqr"></a> 32 + <a class="app-btn app2" href="http://www.yohoshow.com/about/index/yohobuyqr"></a>
33 </div> 33 </div>
34 <div class="coupon-bottom"> 34 <div class="coupon-bottom">
35 <div class="coupon-banner"> 35 <div class="coupon-banner">
@@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
40 </div> 40 </div>
41 <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> 41 <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
42 <div class="bottom-btn"> 42 <div class="bottom-btn">
43 - <a class="play-again" href="javascript:;"></a> 43 + <a class="play-again" href="{{playAgain}}"></a>
44 <a class="share-btn" href="javascript:;"></a> 44 <a class="share-btn" href="javascript:;"></a>
45 </div> 45 </div>
46 </div> 46 </div>
@@ -62,6 +62,7 @@ class NewyearController extends HuodongAction @@ -62,6 +62,7 @@ class NewyearController extends HuodongAction
62 'bannerUrl_2' => 'http://m.yohobuy.com/girls?openby:yohobuy={"action":"go.home","params":{"channel":"2"}}', 62 'bannerUrl_2' => 'http://m.yohobuy.com/girls?openby:yohobuy={"action":"go.home","params":{"channel":"2"}}',
63 'bannerUrl_3' => 'http://m.yohobuy.com/kids?openby:yohobuy={"action":"go.home","params":{"channel":"3"}}', 63 'bannerUrl_3' => 'http://m.yohobuy.com/kids?openby:yohobuy={"action":"go.home","params":{"channel":"3"}}',
64 'bannerUrl_4' => 'http://m.yohobuy.com/lifestyle?openby:yohobuy={"action":"go.home","params":{"channel":"4"}}', 64 'bannerUrl_4' => 'http://m.yohobuy.com/lifestyle?openby:yohobuy={"action":"go.home","params":{"channel":"4"}}',
  65 + 'playAgain' => 'http://feature.yoho.cn/2016lishifeng/index.html',
65 )); 66 ));
66 } 67 }
67 68
@@ -28,8 +28,10 @@ class RegController extends AbstractAction @@ -28,8 +28,10 @@ class RegController extends AbstractAction
28 $data['areaCode'] = '+86'; // 默认的区号 28 $data['areaCode'] = '+86'; // 默认的区号
29 $data['countrys'] = RegData::getAreasData(); // 地区信息列表 29 $data['countrys'] = RegData::getAreasData(); // 地区信息列表
30 30
31 - $refer = $this->get('refer', SITE_MAIN . '/?go=1');  
32 - $this->setCookie('refer', $refer); 31 + $refer = $this->get('refer');
  32 + if (!empty($refer)) {
  33 + $this->setCookie('refer', $refer);
  34 + }
33 35
34 // 生成HTML(reg.html) 36 // 生成HTML(reg.html)
35 //$this->_view->html('reg'); 37 //$this->_view->html('reg');