Authored by QC-L

更新分类页面UI展示 review by 黄敬囿

.category {
margin-left: 40px;
height: 500px;
.floor-header {
margin-top: 20px;
margin-bottom: 10px;
... ... @@ -93,7 +93,6 @@
word-break: break-all;
display: flex;
flex-direction: column;
margin-bottom: 40px;
.item-name {
font-family: DINAlternate-Bold;
font-size: 28px;
... ...
... ... @@ -61,8 +61,7 @@ export default class Classify extends Component {
scrollTop='0'
lowerThreshold='20'
upperThreshold='20'
onScrolltoupper={this.onScrolltoupper}
onScroll={this.onScroll}>
>
<View className="tabs">
{
tabs.map(item => {
... ...
... ... @@ -99,8 +99,16 @@ export default class SearchList extends Component {
}
componentWillReceiveProps(nextProps) {
let { destroy } = this.state;
let { destroy, page } = this.state;
if (!destroy) {
if (page.length > 0) {
Object.keys(page).filter((key) => {
page[key] = 0
});
}
this.setState({
page: page
});
this.getProductData(nextProps.filterMenu);
}
}
... ...