张延森 5 年 前
コミット
7c3eec6f5f
共有2 個のファイルを変更した5 個の追加2 個の削除を含む
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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>}