更新分类页面UI展示 review by 黄敬囿
Showing
3 changed files
with
11 additions
and
5 deletions
1 | .category { | 1 | .category { |
2 | margin-left: 40px; | 2 | margin-left: 40px; |
3 | - | 3 | + height: 500px; |
4 | .floor-header { | 4 | .floor-header { |
5 | margin-top: 20px; | 5 | margin-top: 20px; |
6 | margin-bottom: 10px; | 6 | margin-bottom: 10px; |
@@ -93,7 +93,6 @@ | @@ -93,7 +93,6 @@ | ||
93 | word-break: break-all; | 93 | word-break: break-all; |
94 | display: flex; | 94 | display: flex; |
95 | flex-direction: column; | 95 | flex-direction: column; |
96 | - margin-bottom: 40px; | ||
97 | .item-name { | 96 | .item-name { |
98 | font-family: DINAlternate-Bold; | 97 | font-family: DINAlternate-Bold; |
99 | font-size: 28px; | 98 | font-size: 28px; |
@@ -61,8 +61,7 @@ export default class Classify extends Component { | @@ -61,8 +61,7 @@ export default class Classify extends Component { | ||
61 | scrollTop='0' | 61 | scrollTop='0' |
62 | lowerThreshold='20' | 62 | lowerThreshold='20' |
63 | upperThreshold='20' | 63 | upperThreshold='20' |
64 | - onScrolltoupper={this.onScrolltoupper} | ||
65 | - onScroll={this.onScroll}> | 64 | + > |
66 | <View className="tabs"> | 65 | <View className="tabs"> |
67 | { | 66 | { |
68 | tabs.map(item => { | 67 | tabs.map(item => { |
@@ -99,8 +99,16 @@ export default class SearchList extends Component { | @@ -99,8 +99,16 @@ export default class SearchList extends Component { | ||
99 | } | 99 | } |
100 | 100 | ||
101 | componentWillReceiveProps(nextProps) { | 101 | componentWillReceiveProps(nextProps) { |
102 | - let { destroy } = this.state; | 102 | + let { destroy, page } = this.state; |
103 | if (!destroy) { | 103 | if (!destroy) { |
104 | + if (page.length > 0) { | ||
105 | + Object.keys(page).filter((key) => { | ||
106 | + page[key] = 0 | ||
107 | + }); | ||
108 | + } | ||
109 | + this.setState({ | ||
110 | + page: page | ||
111 | + }); | ||
104 | this.getProductData(nextProps.filterMenu); | 112 | this.getProductData(nextProps.filterMenu); |
105 | } | 113 | } |
106 | } | 114 | } |
-
Please register or login to post a comment