Authored by zhangxiaoru

brand

... ... @@ -26,8 +26,8 @@
{{/stateText}}
</div>
<div class="desc">
<div class="brand-name">{{brandName}}</div>
<div class="product-name">{{productName}}</div>
<div class="brand-name"><a href="{{url}}" target="_blank">{{brandName}}</a></div>
<div class="product-name"><a href="{{url}}" target="_blank">{{productName}}</a></div>
<p class="price">¥{{round salesPrice 2}}</p>
</div>
... ...
... ... @@ -40,6 +40,7 @@ const shop = {
nav: nav
};
data.banner = result;
data.title = result.name;
data.shopId = result.shopId;
data.mores = {};
result.menus.forEach(m => {
... ... @@ -110,7 +111,7 @@ const shop = {
ShopData.getShopHeadData(domain, shopId, uid).then(result => {
data.banner = result;
data.title = result.name;
if (data.banner.banner) {
data.banner.banner = data.banner.banner.split('?')[0];
}
... ...
... ... @@ -47,7 +47,7 @@ exports.createPagination = function(pagination, options) {
var template;
if (!pagination) {
if (!pagination || pagination.pageTotal === 1) {
return '';
}
... ...
... ... @@ -32,6 +32,14 @@ function doCancel(ids) {
});
}
function goodsChoose() {
if ($(this).parent('.goods-info', $root).hasClass('choose')) {
$(this).parent('.goods-info', $root).removeClass('choose');
} else {
$(this).parent('.goods-info', $root).addClass('choose');
}
}
function eventBind() {
$('.check-all', $root).check({
... ... @@ -45,14 +53,8 @@ function eventBind() {
}
});
$('.goods-img', $root).click(function() {
if ($(this).parent('.goods-info', $root).hasClass('choose')) {
$(this).parent('.goods-info', $root).removeClass('choose');
} else {
$(this).parent('.goods-info', $root).addClass('choose');
}
});
$('.choose-icon', $root).click(goodsChoose);
$('.goods-img', $root).click(goodsChoose);
$('.btn.cancel', $root).click(function() {
var id = $(this).parents('.goods-info').data('id');
... ...
... ... @@ -325,3 +325,7 @@ a {
border: 1px solid #f0f0f0;
text-indent: 5px;
}
.mr15 {
margin-right: 15px;
}
... ...
... ... @@ -30,7 +30,8 @@
.editorial-title {
width: 100%;
min-height: 50px;
min-height: 70px;
line-height: 1.4;
padding: $space;
position: absolute;
bottom: 0;
... ...
... ... @@ -73,7 +73,6 @@
.tag-bag {
padding-right: 6px;
margin-right: 8px;
font-weight: normal;
position: relative;
&:hover {
... ... @@ -114,6 +113,7 @@
width: 230px;
color: #1b1b1b;
font-size: 14px;
font-weight: normal;
padding: 20px 0;
margin-left: -86px;
line-height: 1.5;
... ... @@ -144,6 +144,7 @@
width: 370px;
padding: 18px;
border: 1px solid #eee;
font-weight: normal;
background: #fff;
position: absolute;
z-index: 50;
... ... @@ -181,7 +182,7 @@
.go-bag-btn {
font-size: 20px;
line-height: 1;
padding-top: 24px;
padding-top: 20px;
border-top: 1px solid #ddd;
text-align: center;
}
... ... @@ -233,6 +234,7 @@
.del-good-btn {
cursor: pointer;
color: #999;
}
}
}
... ...
... ... @@ -4,10 +4,11 @@
}
.cart-header {
margin: 10px auto;
margin: 12px auto 48px;
width: 100%;
padding: 30px;
border-bottom: 1px solid #eee;
padding-bottom: 20px;
.titles {
position: relative;
... ...
... ... @@ -2,8 +2,8 @@ $hoverColor: #379ed6;
.blk-cart-page {
.pros-group {
margin-bottom: 30px;
border-top: 1px solid #eee;
/*margin-bottom: 30px;
border-top: 1px solid #eee;*/
&:first-child {
border-top: none;
... ...
... ... @@ -7,11 +7,11 @@
</div>
<div class="info">
<a href="/product/pro_{{product_id}}_{{goods_id}}/{{cn_alphabet}}.html" class="name" target="_blank">{{product_name}}</a>
<p>颜色:{{color_name}} 尺码:{{size_name}}</p>
<span style="margin-right:15px;">颜色: {{color_name}}</span> <span>尺码: {{size_name}}</span>
</div>
<div class="price">
<p>¥{{round sales_price 2}} X{{buy_number}}</p>
<span class="del-good-btn" data-type="{{goods_type}}" data-num="{{buy_number}}" data-num="{{buy_number}}" data-sku="{{product_sku}}" data-pid="{{promotion_id}}">删除</span>
</div>
</dd>
{{/ goods}}
\ No newline at end of file
{{/ goods}}
... ...