Authored by 梁志锋

Merge remote-tracking branch 'origin/master'

... ... @@ -124,6 +124,7 @@ const _convertActicityData = (data) => {
data = data || [];
_.forEach(data, (item) => {
if (item.promotionName) {
discountArr = item.promotionName.split('~');
if (discountArr.length === 1) {
discountNum = _transDiscountToArr(discountArr[0])[0];
... ... @@ -145,6 +146,7 @@ const _convertActicityData = (data) => {
leftTime: item.startLeftTime > 0 ? dateFormate(item.startTime) : item.endLeftTime,
hide: false
});
}
});
return formatData;
... ...
... ... @@ -4,8 +4,14 @@
<div class="center-square">
<div class="title">{{title}}</div>
<div class="num"><span class="discount-num">{{discountNum}}</span> {{discountText}}</div>
{{>product/outlet/countdown}}
<div id="demo1">
<!--默认,服务端输出leftTime,把客户端时间干扰降到最低。单位秒-->
<div class="cd cd-lite time hide" data-config="{'leftTime': {{leftTime}} }">— 仅剩<span class="left-day">${d}天</span>${h}时${m}分${s}秒 —</div>
<div class="cd cd-medium time hide">{{leftTime}}</div>
</div>
</div>
</a>
</div>
{{#if @last}}
<div class="more-activity hide"><p>更多精彩活动</p><span class="iconfont count-down-icon">&#xe609;</span></div>
{{/if}}
... ...
{
"name": "m-yohobuy-node",
"version": "4.8.8",
"version": "4.8.9",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -14,8 +14,9 @@
display:inline-block;
width: 20px;
height: 20px;
background: url('/channel/tip.png') no-repeat;
background-size: 20px 20px;
background: url('/channel/tip.png');
background-repeat: no-repeat;
background-size: contain;
vertical-align: -2px;
margin-right: 8px;
}
... ... @@ -32,7 +33,8 @@
.chan {
background-image: url('/channel/up-icon.png');
background-size: 31px 31px;
background-repeat: no-repeat;
background-size: contain;
position: absolute;
top: 50%;
margin-top: -15px;
... ...