Authored by hf

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

* {
margin: 0;
padding: 0;
}
.coupon-container img {
display: block;
max-width: 100%;
}
.coupon-top {
position: relative;
}
.coupon-top .go-check {
position: absolute;
bottom: 7.075rem;
width: 100%;
height: 3.0rem;
}
.coupon-top .app-btn {
position: absolute;
width: 7.55rem;
height: 4.0rem;
bottom: 1.6rem;
}
.coupon-top .app-btn.app1{
left: 0.325rem
}
.coupon-top .app-btn.app2{
right: 0.325rem
}
.coupon-bottom {
height: 24.125rem;
background: url(../../img/newyear/160105/bottom-bg.png) no-repeat bottom center;
background-size: 100% 100%;
}
.coupon-banner {
text-align: center;
font-size: 0;
}
.coupon-banner a {
display: inline-block;
width: 6.6rem;
height: 6.6rem;
margin: 0 0.25rem 0.55rem;
}
.coupon-bottom .follow-yoho {
display: block;
margin: 1.5rem auto 0;
width: 10.175rem;
height: 2.675rem;
}
.bottom-btn {
margin: 1.95rem 0 0;
font-size: 0;
text-align: center;
}
.bottom-btn a {
display: inline-block;
margin: 0 1.25rem;
width: 5.225rem;
height: 2.0rem;
}
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: url(../../img/newyear/160105/share.png) center top no-repeat;
-webkit-background-size: 100%;
-moz-background-size: 100%;
background-size: 100%;
display: none;
}
.has-done {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.4) url(../../img/newyear/160105/11.png);
background-repeat: no-repeat;
background-size: 80% auto;
background-position: center center;
overflow: hidden;
display: none;
}
.dialog-box {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.4);
z-index: 999;
}
.dialog-inner {
position: absolute;
width: 13.375rem;
height: 9.625rem;
top: 50%;
left: 50%;
margin: -4.8125rem 0 0 -6.6875rem;
}
.dialog-inner img {
max-width: 100%;
}
.dialog-inner span {
position: absolute;
width: 9rem;
height: 1.85rem;
bottom: 0.6rem;
left: 50%;
margin: 0 0 0 -4.5rem;
cursor: pointer;
}
\ No newline at end of file
... ...
... ... @@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="grey">
<link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/newyear/index.css">
<link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/newyear/index-2.css">
<script>
(function(doc, win) {
var docEl = doc.documentElement;
... ... @@ -29,7 +29,7 @@
<img src="{{imgUrl}}/cuxiao/img/newyear/160105/top-bg.png" alt="">
<a class="go-check" href="{{myCouponUrl}}"></a>
<a class="app-btn app1" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445"></a>
<a class="app-btn app2" href="http://www.yohoshow.com/about/index/yohoboysqr"></a>
<a class="app-btn app2" href="http://www.yohoshow.com/about/index/yohobuyqr"></a>
</div>
<div class="coupon-bottom">
<div class="coupon-banner">
... ... @@ -40,7 +40,7 @@
</div>
<a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
<div class="bottom-btn">
<a class="play-again" href="javascript:;"></a>
<a class="play-again" href="{{playAgain}}"></a>
<a class="share-btn" href="javascript:;"></a>
</div>
</div>
... ...
... ... @@ -62,6 +62,7 @@ class NewyearController extends HuodongAction
'bannerUrl_2' => 'http://m.yohobuy.com/girls?openby:yohobuy={"action":"go.home","params":{"channel":"2"}}',
'bannerUrl_3' => 'http://m.yohobuy.com/kids?openby:yohobuy={"action":"go.home","params":{"channel":"3"}}',
'bannerUrl_4' => 'http://m.yohobuy.com/lifestyle?openby:yohobuy={"action":"go.home","params":{"channel":"4"}}',
'playAgain' => 'http://feature.yoho.cn/2016lishifeng/index.html',
));
}
... ...
... ... @@ -28,8 +28,10 @@ class RegController extends AbstractAction
$data['areaCode'] = '+86'; // 默认的区号
$data['countrys'] = RegData::getAreasData(); // 地区信息列表
$refer = $this->get('refer', SITE_MAIN . '/?go=1');
$this->setCookie('refer', $refer);
$refer = $this->get('refer');
if (!empty($refer)) {
$this->setCookie('refer', $refer);
}
// 生成HTML(reg.html)
//$this->_view->html('reg');
... ...