Authored by 李靖

优化弹框,logo

... ... @@ -10,7 +10,9 @@
<div class="list-item"></div>
</div>
<a class="get-all">点击一键领取全场券</a>
{{#if shopCoupons}}
<p class="big-title">超值品牌券</p>
{{/if}}
{{# shopCoupons}}
<div class="list-3">
{{# coupons}}
... ... @@ -18,7 +20,7 @@
<div class="amount" data-couponid="{{couponId}}">{{couponAmount}}</div>
<a href="//m.yohobuy.com/product/shop?shop_id={{shopsId}}">
<div class="shop">
<div class="logo"></div>
<div class="logo"{{#if shopLogo}} style="background-image:url({{image shopLogo 105 42}})"{{/if}}></div>
<div class="go">进入店铺</div>
</div>
</a>
... ...

47.8 KB | W: | H:

30.6 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
import 'activity/coupon-list.page.css';
import $ from 'yoho-jquery';
import Page from 'yoho-page';
import share from 'common/share';
import 'common/share';
class CouponList extends Page {
constructor() {
... ... @@ -19,24 +19,6 @@ class CouponList extends Page {
init() {
this.bindEvents();
this.setShare();
}
setShare() {
let shareInfo = {
title: '假装这是一个很酷的主标题',
link: location.href,
desc: '假装这是一个很酷的副标题',
imgUrl: 'http://img11.static.yhbimg.com/taobaocms/2017/01/17/16/0108d724a0ef1f001d3ee6010aa79d960e.png'
};
if (this.app.isApp) {
this.app.ready(function() {
this.app.invokeMethod('set.shareInfo', shareInfo);
});
} else {
share(shareInfo);
}
}
bindEvents() {
... ... @@ -46,7 +28,8 @@ class CouponList extends Page {
}
hideDia() {
window.location.href = window.location.href;
this.selector.$diaC.removeClass().addClass('dia-c dia hide');
this.selector.$diaC.hide();
}
receiveAll() {
... ...
... ... @@ -145,6 +145,10 @@
line-height: 42px;
text-align: center;
}
.logo {
background-size: 100% 100%;
}
}
}
}
... ...