Authored by htoooth

add css

... ... @@ -1031,7 +1031,6 @@ const _getIntroInfo = (productSkn, maxSortId, additionalData)=> {
// 模特卡
result.modelCards = _getProductModelCard(maxSortId, sizeInfo);
console.log(result.modelCards);
// 试穿模特
let fittingReport = _getProductModelTry(additionalData);
... ... @@ -1226,7 +1225,6 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
result.hasOtherPrice = false;
}
console.log()
if (propOrigin('student_price', '')) {
// 学生价
result.studentsPrice = propOrigin('student_price');
... ...
... ... @@ -1566,7 +1566,6 @@ exports.getCriteo = (glist) => {
/** 参数处理 **/
/** oldValue 为老参数值 **/
const queryMap = {
// TODO: 改变函数名
psp_id: (oldValue) => {
return {
promotion_id: oldValue,
... ...
... ... @@ -125,10 +125,8 @@ exports.getListBrandsFilter = (params, nparams) => {
/** oldValue 为老参数值 **/
const queryMap = {
psp_id: (oldValue) => {
// TODO: 改变函数名
return {
promotion_id: oldValue,
method: 'app.search.promotion'
};
}
};
... ...
... ... @@ -1249,7 +1249,7 @@ $('.comments').on('click', '.img-preview [data-role="preview-right"]', function(
var $img = $(this).closest('.img-preview').find('.img-wrap img'),
rotate = ($img.data('rotate') || 0) * 1;
rotate -= 90;
rotate += 90;
$img.data('rotate', rotate);
$img.css('transform', 'rotate(' + rotate + 'deg)');
});
... ... @@ -1834,6 +1834,7 @@ $(function() {
$(function() {
$('.size-table tbody tr:odd td').css('background-color', '#f9f9f9');
// 调整商品信息的间距
$('.description-content .basic li').each(function(i) {
if ((i + 1) % 4 === 0) {
$(this).find('.justpostion').css({display: 'inline-block', 'margin-left': '70px'});
... ... @@ -1843,6 +1844,21 @@ $(function() {
$(this).find('.justpostion').css('margin-left', '56px');
}
});
// 调整模特卡的间距
$('.model-card-item .item .key').each(function(i) {
var index = i + 1;
if (index % 3 === 2) {
$(this).css({
'padding-left': '50px'
});
} else if (index % 3 === 0) {
$(this).css({
'padding-left': '80px'
});
}
});
});
... ...
... ... @@ -269,12 +269,13 @@
.price-row {
display: inline-block;
height: 20px;
margin-bottom: 11px;
margin-bottom: 12px;
}
.promotion-price {
display: inline-block;
height: 24px;
margin-bottom: 10px;
}
.vip-price {
... ... @@ -361,7 +362,6 @@
}
.activity-wrapper {
margin-top: 16px;
position: relative;
width: 100%;
... ... @@ -1321,6 +1321,7 @@
&.model-header {
display: inline-block;
width: 220px;
float: left;
.avatar {
display: inline-block;
... ... @@ -1360,6 +1361,7 @@
&.line {
display: inline-block;
float: left;
width: 0px;
height: 60px;
border-right: 1px solid #e0e0e0;
... ... @@ -1367,14 +1369,18 @@
}
&.model-body {
$width : 585px;
float: left;
display: inline-block;
vertical-align: top;
width: 585px;
.item {
display: inline-block;
font-size: 14px;
line-height: 30px;
width: 30%;
width: 190px;
.key {
... ... @@ -1383,6 +1389,14 @@
.value {
}
&.middle {
}
&.right {
}
}
}
... ... @@ -1604,7 +1618,8 @@
}
.iconfont {
font-size: 12px;
font-size: 10px;
margin-right: 2px;
}
}
... ... @@ -1836,9 +1851,8 @@
.goods {
width: 1150px;
margin: 0 auto;
height: 410px;
margin-top: 20px;
margin: 20px auto 0;
> div {
float: left;
... ...