Authored by baoss

UI调整 review by bevishuang

... ... @@ -225,6 +225,16 @@ class GroupService extends global.yoho.BaseModel {
let code = indexFilter.resources_code;
result.floors = code && await this.newIndex(code);
result.floors.map(item => {
if (item.template_name === 'collageBuyPrdList') {
item.data.data.prdList.map(listItem => {
// eslint-disable-next-line max-len
listItem.collagedPersonNum = listItem.collagedPersonNum > 10000 ? (listItem.collagedPersonNum / 10000).toFixed(1) + '万' : listItem.collagedPersonNum;
return listItem;
});
}
return item;
});
result.filterGroupList = await this.filterGroupList({
...query
});
... ...
... ... @@ -21,7 +21,7 @@
{{/if}}
{{> group/resources/filter-tab}}
</div> --}}
<div class="goods-list-title">猜你喜欢</div>
{{!-- <div class="goods-list-title">猜你喜欢</div> --}}
<div id="goodsContainer" class="goods-container">
{{#if filterList.length}}
<div class="new-goods-list">
... ...
<div class="banner-top templates" data-f-name="{{template_name}}" data-f-id="{{template_id}}" data-id="{{@index}}" {{#ifcond is_extend '!==' '1'}}style="margin: 0 15px"{{/ifcond}}>
<div class="banner-top templates {{#ifcond is_extend '!==' '1'}}pad{{/ifcond}}" data-f-name="{{template_name}}" data-f-id="{{template_id}}" data-id="{{@index}}">
<div class="banner-swiper swiper-container">
<ul class="swiper-wrapper">
{{#each data}}
... ...
{{#data}}
<div class="split-image templates" data-id="{{@index}}" data-f-name="{{../template_name}}" data-f-id="{{../template_id}}" {{#ifcond ../is_extend '!==' '1'}}style="margin: 0 15px"{{/ifcond}}>
<div class="split-image templates {{#ifcond ../is_extend '!==' '1'}}pad{{/ifcond}}" data-id="{{@index}}" data-f-name="{{../template_name}}" data-f-id="{{../template_id}}">
<img src="{{image2 src w=../image_width h=../image_height q=60 mode=3}}"></img>
<div class='url-content'>
{{#each urls}}
... ...
... ... @@ -88,6 +88,7 @@
"uglifyjs-webpack-plugin": "^2.1.3",
"urlencode": "^1.1.0",
"uuid": "^3.2.1",
"vue-loader": "^15.8.1",
"xml2js": "^0.4.19",
"yoho-express-session": "^2.0.0",
"yoho-md5": "^2.0.0",
... ...
/* eslint-disable max-len */
import qs from 'yoho-qs';
const yoho = require('js/yoho-app');
... ... @@ -69,9 +70,9 @@ class ResourceShowYasRpter {
let cacheTheShowSkns = []; // 暂存此次上报的楼层,上报后复制给 lastReportSkns
let tabParams = {};
tabParams.TAB_NAME = $('.guess-like-tab-active').parent().data('tab-name');
tabParams.TAB_ID = $('.guess-like-tab-active').parent().data('item-idx') + 1;
tabParams.P_PARAM = $('.guess-like-tab-active').parent().data('code');
tabParams.TAB_NAME = $('.guess-like-tab-active').parent().data('tab-name') || $('.guess-tab-active').parent().data('tab-name');
tabParams.TAB_ID = $('.guess-like-tab-active').parent().data('item-idx') + 1 || $('.guess-tab-active').parent().data('item-idx') + 1;
tabParams.P_PARAM = $('.guess-like-tab-active').parent().data('code') || $('.guess-tab-active').parent().data('code');
$('.templates').each((floorIndex, theFloor) => {
let $theFloor = $(theFloor);
... ... @@ -102,6 +103,7 @@ class ResourceShowYasRpter {
}
});
// console.log('ssss', floorsRawArr)
$theFloor.find('.split-item').each((aIndex, theA) => {
let $theA = $(theA);
let href = $theA.data('href');
... ... @@ -140,6 +142,8 @@ class ResourceShowYasRpter {
F_NAME
});
}
// console.log('prd', floorsRawArr)
});
}
... ... @@ -162,6 +166,7 @@ class ResourceShowYasRpter {
newParams.ACTION_URL = goodsRawObj.href;
}
this.reportParams.DATA.push(newParams);
console.log(this.reportParams.DATA);
}
}
});
... ... @@ -214,6 +219,7 @@ class ResourceShowYasRpter {
};
this.reportParams.DATA.push(newParams);
console.log(this.reportParams.DATA);
}
cacheTheShowSkns.push(goodsRawObj.PRD_SKN);
... ...
... ... @@ -38,6 +38,10 @@
}
}
.pad {
margin: 0 20px;
}
.banner-swiper {
position: static;
max-height: 312px;
... ...
... ... @@ -43,15 +43,16 @@
}
.guess-like-tab {
width: 160px;
width: 140px;
line-height: 88px;
text-align: center;
font-size: 28px;
font-weight: 600;
color: #b0b0b0;
}
.guess-like-tab-active {
font-size: 32px;
font-size: 34px;
font-weight: bold;
color: #222;
}
... ...
... ... @@ -27,3 +27,7 @@
}
}
}
.pad {
margin: 0 20px;
}
... ...
... ... @@ -18,7 +18,7 @@
}
.tab-content {
padding-top: 80px;
padding-top: 88px;
}
.bottom {
... ...
... ... @@ -57,7 +57,7 @@
font-family: PingFang-SC-Regular, sans-serif;
color: #222;
letter-spacing: 0;
line-height: 30px;
line-height: 1.6;
font-size: 28px;
display: -webkit-box;
overflow: hidden;
... ... @@ -71,13 +71,13 @@
.new-group-invite,
.new-group-free-post1 {
padding: 0 10px;
height: 30px;
height: 32px;
font-size: 18px;
color: #fff;
background-color: #ff575c;
text-align: center;
line-height: 30px;
border-radius: 30px;
line-height: 32px;
border-radius: 32px;
margin-right: 10px;
}
... ... @@ -102,6 +102,7 @@
background: url("img/activity/group/group/go-group@3x.png") no-repeat;
background-size: contain;
left: -5px;
margin-bottom: 10px;
}
.group-free-number {
... ... @@ -114,8 +115,8 @@
font-family: PingFang-SC-Regular, sans-serif;
letter-spacing: 0;
box-sizing: border-box;
height: 30px;
line-height: 30px;
height: 32px;
line-height: 32px;
padding-left: 10px;
padding-right: 10px;
border-radius: 15px;
... ... @@ -126,7 +127,7 @@
.forcefontsize10 {
display: inline-block;
font-size: 18px;
font-weight: 1000;
// font-weight: 1000;
}
.new-group-prict-bg {
... ... @@ -151,9 +152,13 @@
margin-bottom: 4px;
}
.new-group-people-numer {
font-size: 24px;
}
.new-group-price-collage {
margin-left: 10px;
font-size: 30px;
font-size: 36px;
font-weight: bold;
font-family: BrownStd-Bold, sans-serif;
}
... ... @@ -166,7 +171,7 @@
.new-group-price-market {
font-family: PingFang-SC-Regular, sans-serif;
font-size: 22px;
font-size: 24px;
color: #b0b0b0;
}
... ...
This diff could not be displayed because it is too large.