Authored by Lynnic

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

... ... @@ -149,7 +149,7 @@ function rePosFooter() {
window._ozuid = uid;//暴露ozuid
if (window._yas) {
window._yas(1 * new Date(), '1.0.13', 'yohobuy_m', uid, '');
window._yas(1 * new Date(), '1.0.13.1', 'yohobuy_m', uid, '');
}
}());
... ...
... ... @@ -2,10 +2,12 @@ var $ = require('jquery'),
Hammer = require('yoho.hammer');
var employ;
window.rePosFooter();
$('.employ span').each(function(index) {
employ = new Hammer($('.employ span')[index]);
employ.on('tap', function(e) {
$('.employ-list').addClass('none').eq(index).removeClass('none');
$('.employ span').removeClass('active').eq(index).addClass('active');
window.rePosFooter();
});
});
\ No newline at end of file
... ...
... ... @@ -34,6 +34,7 @@
background: image-url('me/employ/employ.jpg') top center no-repeat;
background-size: 100% 100%;
color: #fff;
position: relative;
span{
width: 34.482759%;
height: 100%;
... ... @@ -52,16 +53,60 @@
font-size: 60em / $pxConvertRem;
}
}
i{
width: 100%;
height: 100%;
overflow: hidden;
display: block;
position: absolute;
top: 0;
left: 0;
background: image-url('me/employ/employsy.png') right top no-repeat;
background-size:auto 100%;
}
}
.null{
text-align: center;
color: #333;
margin-top: 55%;
font-size:56em / $pxConvertRem;
color: #333;
width: 100%;
height:auto;
overflow: hidden;
position: absolute;
left: 0;
top:50%;
@include transform(translateY(-60%));
i{
width: 100%;
height: 120rem / $pxConvertRem;
overflow: hidden;
display: block;
background: image-url('me/employ/not.png') center top no-repeat;
background-size:auto 100%;
}
p{
width: 100%;
height: auto;
overflow: hidden;
padding:20rem / $pxConvertRem 0 0;
font-size: 48em / $pxConvertRem;
text-align: center;
color: #444;
}
a{
width: 73.75%;
height: 80rem / $pxConvertRem;
overflow: hidden;
font-size: 56em / $pxConvertRem;
line-height: 80rem / $pxConvertRem;
display: block;
background: #444444;
color: #fff;
text-align: center;
margin: 32em / $pxConvertRem auto;
@include border-radius(.2rem);
}
}
}
.none{
display: none;
}
\ No newline at end of file
}
\ No newline at end of file
... ...
... ... @@ -58,7 +58,7 @@
position: absolute;
right: 40rem / $pxConvertRem;
top:50%;
@include transform(translateY(-50%))
@include transform(translateY(-50%));
}
span{
color: #b0b0b0;
... ...
... ... @@ -13,7 +13,11 @@
</div>
{{/ used}}
{{^ used}}
<p class="null">未找到相关相关优惠券</p>
<div class="null">
<i></i>
<p>您还没有未使用的优惠券</p>
<a href="{{topURL}}">随便逛逛</a>
</div>
{{/ used}}
</div>
<div class="employ-list not none">
... ... @@ -22,10 +26,15 @@
<span>{{ money}}</span>
<p>{{ coupon_name}}</p>
<p>{{ couponValidity}}</p>
<i></i>
</div>
{{/ unused}}
{{^ unused}}
<p class="null">未找到相关相关优惠券</p>
<div class="null">
<i></i>
<p>您还没有已使用的优惠券</p>
<a href="{{topURL}}">随便逛逛</a>
</div>
{{/ unused}}
</div>
{{/ couponsUrl}}
... ...
... ... @@ -28,7 +28,7 @@
a.async=1;
a.src=j;
m.parentNode.insertBefore(a,m);
})(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.13/yas-debug.js','_yas');
})(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.13.1/yas.js','_yas');
</script>
{{> layout/use}}
{{> layout/analysis}}
... ...
... ... @@ -15,7 +15,6 @@
</div>
</div>
<!-- 如果需要导航按钮 -->
<div class="my-swiper-button-prev prev-grey"></div>
<div class="my-swiper-button-next next-grey"></div>
</div>
\ No newline at end of file
... ...
... ... @@ -243,7 +243,7 @@ class HomeController extends AbstractAction
'couponsUrl' => UserModel::getCouponData($uid),
'couponsPage' => true
);
$coupons['pageFooter'] = true;
$this->_view->display('coupons', $coupons);
}
... ...