Authored by biao

Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0

... ... @@ -15,6 +15,5 @@
{{/each}}
</select>
<span class="blue">{{> icon/doubt}}什么是YOHO币</span>
</div>
</div>
... ...
... ... @@ -9,6 +9,13 @@
{{# goodInfo}}
<div class="product-main clearfix" data-id="{{id}}">
<div class="thumbs left clearfix">
<div class="thumb-show right">
<img id="main-thumb" src="{{image img 482 643}}" style="display: block;">
<div class="check-btns">
<span class="iconfont pre-thumb">&#xe62c;</span>
<span class="iconfont next-thumb">&#xe629;</span>
</div>
</div>
<div class="thumb-list hide">
{{# colors}}
<div class="thumb-wrap{{#unless cur}} hide{{/unless}}">
... ... @@ -24,13 +31,6 @@
</div>
{{/ colors}}
</div>
<div class="thumb-show right">
<img id="main-thumb" src="{{image img 482 643}}" style="display: block;">
<div class="check-btns">
<span class="iconfont pre-thumb">&#xe62c;</span>
<span class="iconfont next-thumb">&#xe629;</span>
</div>
</div>
</div>
<div class="infos left clearfix">
<p class="brand-name">{{brandName}}</p>
... ...
... ... @@ -79,7 +79,7 @@ const callback = (req, res) => {
if (result.code === 200) {
let data = result.data;
res.render('pay-success', {
res.display('pay-success', {
defaultHeader: false,
content: {
cost: data.pay,
... ...
... ... @@ -18,7 +18,7 @@ const pay = require(`${cRoot}/pay`); // 支付
router.get('/cart', cartCtrl.index);
router.post('/cart/product/change_num', cartCtrl.changeProductNum);
router.delete('/cart/product/remove', cartCtrl.removeProduct);
router.post('/cart/product/send_to_favorite', cartCtrl.sendToFavorite);
router.post('/cart/product/send_to_favorite', auth, cartCtrl.sendToFavorite);
router.post('/cart/add', cartCtrl.addToCart);
router.post('/cart/toggleSelectGoods', cartCtrl.toggleSelectGoods);
router.get('/cart/checkStorage', cartCtrl.checkStorage);
... ...
... ... @@ -21,7 +21,7 @@
1.每天15:00以前成功支付的订单将在当天发货,15:00-00:00成功付款的订单将在第二天发货。
2.当订单发货后,您可以登录<a class="blue" href="/me/order">订单中心</a>查询快递发货详情。
3.YOHO!BLK有货支持“开箱验货”和“15天退换货保障”收货后请当面验货,如果发现商品有任何问题请致电客服电话400-889-9646,
<a class="blue" href="">“退换货政策”</a>请点击查看。<em class="blue">4.尊敬的用户:近期为网络诈骗高发期,YOHO!BLK有货郑重声明,不会以任何形式索取客户的账户信息或引导转账,敬请提高警惕,谨防诈骗</em>
<a class="blue" href="/help?id=43">“退换货政策”</a>请点击查看。<em class="blue">4.尊敬的用户:近期为网络诈骗高发期,YOHO!BLK有货郑重声明,不会以任何形式索取客户的账户信息或引导转账,敬请提高警惕,谨防诈骗</em>
</p>
</div>
{{/ content}}
... ...
... ... @@ -33,9 +33,9 @@
{{/if}}
<span class="iconfont">&#xe63c;</span>
</div>
{{#expect_arrival_time}}
{{#if expect_arrival_time}}
<div class="published-at">上市期: {{expect_arrival_time}}</div>
{{/expect_arrival_time}}
{{/if}}
</li>
<li class="price-num">
<span class="price sale-price">¥ {{round sales_price 2}}</span>
... ...
... ... @@ -8,7 +8,7 @@
</label>
</div>
<div class="item product">货品</div>
<div class="item price">价格</div>
<div class="item price">单价</div>
<div class="item num">数量</div>
<div class="item pro-total-price">总价</div>
<div class="item actions">操作</div>
... ...
... ... @@ -7,7 +7,7 @@
</p>
{{^}}
<p class="info-text">
温馨提示: 亲爱的顾客,您还没有<a href="/passport/login">登录</a>哦, 所有的商品价、活动信息以登录后显示为准。
温馨提示: 亲爱的顾客,您还没有<a href="/passport/login">登录</a>哦, 所有的商品价、活动信息以登录后显示为准。
<span class="iconfont pull-right close">&#xe608;</span>
</p>
{{/if}}
... ...
... ... @@ -182,6 +182,9 @@ const requestNavBar = (type) => {
cache: true,
code: 200
}).then(res => {
if (!res) {
return {};
}
return setHeaderData(res.data, type);
});
};
... ...
... ... @@ -7,7 +7,7 @@ module.exports = function(leftNumber) {
leftNumber = typeof num1 === 'number' ? leftNumber : parseFloat(leftNumber, 10);
if (leftNumber <= 3 && leftNumber >= 0) {
return `仅剩${leftNumber}件`;
return '仅剩' + leftNumber + '件';
} else if (leftNumber < 0) {
return '库存不足';
}
... ...
... ... @@ -27,7 +27,7 @@ lazyLoad($('.banner-img'));
// 浮动在线客服和返回顶部的鼠标移入移出切换效果
function toggleShow(e) {
$(e.target).find('span').toggleClass('hide');
};
}
$('.service, .return-top').hover(toggleShow, toggleShow);
... ...
... ... @@ -471,4 +471,11 @@ var Cart = {
}
};
require('yoho-jquery-dotdotdot');
// product name dotdotdot
$('.pro-name a').dotdotdot({
wrap: 'letter'
});
module.exports = Cart;
... ...
... ... @@ -112,9 +112,6 @@ $hoverColor: #379ed6;
width: 234px;
word-wrap: break-word;
margin-bottom: 13px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-height: 1.3em;
overflow: hidden;
:hover {
... ...