浏览代码

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

张延森 5 年前
父节点
当前提交
4d18a82cc2
共有 2 个文件被更改,包括 9 次插入8 次删除
  1. 5
    5
      src/pages/project/index.js
  2. 4
    3
      src/pages/project/swiper/index.js

+ 5
- 5
src/pages/project/index.js 查看文件

645
               </View>
645
               </View>
646
               {/* 菜单栏 */}
646
               {/* 菜单栏 */}
647
               <Menus menusList={menusList}></Menus>
647
               <Menus menusList={menusList}></Menus>
648
-              <View style={propagandaBanner.length > 0 ? "border-bottom:20rpx solid #f5f5f5" : ''}>
649
-                {/* <View style={(newsShow || propagandaBanner.length > 0) ? "border-bottom:20rpx solid #f5f5f5" : ''}> */}
648
+              {/* <View style={propagandaBanner.length > 0 ? "border-bottom:20rpx solid #f5f5f5" : ''}> */}
649
+              <View style={(newsShow || propagandaBanner.length > 0) ? "border-bottom:20rpx solid #f5f5f5" : ''}>
650
                 {/* 展示位轮播图 */}
650
                 {/* 展示位轮播图 */}
651
                 {
651
                 {
652
                   this.state.visPropagandaBanner && propagandaBanner.length > 0 &&
652
                   this.state.visPropagandaBanner && propagandaBanner.length > 0 &&
653
                   <View
653
                   <View
654
                     style={{
654
                     style={{
655
-                      position: 'relative', padding: '20px 15px'
655
+                      position: 'relative', padding: '20px 15px 0 15px'
656
                     }}>
656
                     }}>
657
                     <BannerTwo
657
                     <BannerTwo
658
                       style={{
658
                       style={{
659
                         borderRadius: '6px',
659
                         borderRadius: '6px',
660
                         height: '172rpx'
660
                         height: '172rpx'
661
                       }}
661
                       }}
662
-                      forwardShow={true}
662
+                      // forwardShow={true}
663
                       indicatorDots={false}
663
                       indicatorDots={false}
664
                       list={propagandaBanner}
664
                       list={propagandaBanner}
665
                       onClick={this.handlePropagandaClick}>
665
                       onClick={this.handlePropagandaClick}>
667
                   </View>
667
                   </View>
668
                 }
668
                 }
669
                 {/* 资讯 */}
669
                 {/* 资讯 */}
670
-                {/* <Newsbanner showNesBox={this.handleNewsbannerShow} cityId={curCity.id} onClick={this.handleNoticeClick} onClickMore={this.toNewsList} /> */}
670
+                <Newsbanner showNesBox={this.handleNewsbannerShow} cityId={curCity.id} onClick={this.handleNoticeClick} onClickMore={this.toNewsList} />
671
               </View >
671
               </View >
672
               {/* 热门活动*/}
672
               {/* 热门活动*/}
673
               {
673
               {

+ 4
- 3
src/pages/project/swiper/index.js 查看文件

24
     this.props.onClick(item)
24
     this.props.onClick(item)
25
   }
25
   }
26
   render() {
26
   render() {
27
-    const { list, style, indicatorDots, current, activityStyle, type,forwardShow } = this.props
27
+    // const { list, style, indicatorDots, current, activityStyle, type,forwardShow } = this.props
28
+    const { list, style, indicatorDots, current, activityStyle, type } = this.props
28
 
29
 
29
     const styles = activityStyle ? activityStyle : style
30
     const styles = activityStyle ? activityStyle : style
30
     return (
31
     return (
45
               className='home-banner__swiper-item'
46
               className='home-banner__swiper-item'
46
             >
47
             >
47
               <View style={{ display: 'block',width:'100%' }}>
48
               <View style={{ display: 'block',width:'100%' }}>
48
-                {
49
+                {/* {
49
                   forwardShow &&
50
                   forwardShow &&
50
                   <View>
51
                   <View>
51
                     <Image className='forward' src={forwardImg}></Image>
52
                     <Image className='forward' src={forwardImg}></Image>
52
                     <Text className="text">详情</Text>
53
                     <Text className="text">详情</Text>
53
                   </View>
54
                   </View>
54
-                }
55
+                } */}
55
                 <Image
56
                 <Image
56
                   mode="aspectFill"
57
                   mode="aspectFill"
57
                   style={style}
58
                   style={style}