张延森 5 jaren geleden
bovenliggende
commit
7c3eec6f5f
2 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 1
    1
      src/pages/project/activity/index.js
  2. 4
    1
      src/pages/project/index.js

+ 1
- 1
src/pages/project/activity/index.js Bestand weergeven

@@ -39,7 +39,7 @@ export default class SwiperBanner extends Component {
39 39
     }
40 40
     render() {
41 41
         const { helpGroupList } = this.props
42
-        if (!helpGroupList.length) return null;
42
+        // if (!helpGroupList.length) return null;
43 43
 
44 44
         return (
45 45
             <View className="activity-box" style={`background: url(${transferImage(bgImg)}) no-repeat center;background-size: 100% 100%;`}>

+ 4
- 1
src/pages/project/index.js Bestand weergeven

@@ -685,7 +685,10 @@ export default class Index extends Component {
685 685
                 <Newsbanner showNesBox={this.handleNewsbannerShow} cityId={curCity.id} onClick={this.handleNoticeClick} onClickMore={this.toNewsList} />
686 686
               </View >
687 687
               {/* 热门活动*/}
688
-              <Activity helpGroupList={helpGroupList} cityId={curCity.id} />
688
+              {
689
+                helpGroupList && helpGroupList.length &&
690
+                (<Activity helpGroupList={helpGroupList} cityId={curCity.id} />)
691
+              }              
689 692
               {/* 推荐楼盘 */}
690 693
               {this.renderProjectList()}
691 694
             </ScrollView>}