Authored by 郭成尧

Merge branch 'feature/coupon' into beta/wap

... ... @@ -39,7 +39,7 @@ class CouponFloorProcess
foreach ($data as $k => &$v) {
$fun = '';
if (empty($v) || !is_array($v) || !array_key_exists('template_name', $v)) {
if (array_key_exists('templateName', $v)) {
if (isset($v['templateName'])) {
$fun = $v['templateName'];
} else {
continue;
... ...
... ... @@ -77,7 +77,7 @@ $('.coupon-floor a, .banner-top a').on('click', function() {
}
});
if ($('.banner-swiper').find('li').size() > 1) {
if ($('.banner-swiper').find('li').length > 1) {
bannerSwiper = new Swiper('.banner-swiper', {
lazyLoading: true,
lazyLoadingInPrevNext: true,
... ... @@ -102,3 +102,8 @@ if ($('#noData').length > 0) {
}
}
$mask.on('click',function () {s
$mask.hide();
$message.hide();
});
... ...
.coupon-area {
.coupon-area-page {
max-width: 640px;
overflow: hidden;
.banner-top {
float: left;
}
}
.just-img{
... ...
{{>layout/header}}
<div class="coupon-area yoho-page">
<div class="coupon-area-page yoho-page">
{{# content}}
{{#if isSingleImage}}
<a href="{{url}}"><img src="{{src}}" class="just-img"/></a>
... ...