1007395918@qq.com 5 年前
父节点
当前提交
1c9159c003

二进制
src/assets/index/encyclopedia-icon.png 查看文件


二进制
src/assets/index/forward.png 查看文件


二进制
src/assets/index/inspection.png 查看文件


二进制
src/assets/index/location.png 查看文件


二进制
src/assets/index/logo.png 查看文件


二进制
src/assets/index/mall-icon.png 查看文件


二进制
src/assets/index/map-icon.png 查看文件


二进制
src/assets/index/map.png 查看文件


二进制
src/assets/index/recommend-icon.png 查看文件


二进制
src/assets/index/search.png 查看文件


二进制
src/assets/index/share.png 查看文件


二进制
src/assets/tabbar/activity1.png 查看文件


二进制
src/assets/tabbar/activity2.png 查看文件


二进制
src/assets/tabbar/index1.png 查看文件


二进制
src/assets/tabbar/index2.png 查看文件


二进制
src/assets/tabbar/mine1.png 查看文件


二进制
src/assets/tabbar/mine2.png 查看文件


二进制
src/assets/tabbar/shop1.png 查看文件


二进制
src/assets/tabbar/shop2.png 查看文件


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

@@ -59,14 +59,6 @@ export default class Index extends Component {
59 59
 
60 60
   componentWillMount() {
61 61
 
62
-    // wx.setNavigationBarColor({
63
-    //   frontColor: '#ffffff',
64
-    //   backgroundColor: '#E31F05',
65
-    //   animation: {
66
-    //     duration: 400,
67
-    //     timingFunc: 'easeIn'
68
-    //   }
69
-    // })
70 62
     Taro.hideTabBar()
71 63
 
72 64
     ready.queue(() => {
@@ -91,10 +83,6 @@ export default class Index extends Component {
91 83
     })
92 84
   }
93 85
 
94
-  componentDidMount() {
95
-    // Taro.setNavigationBarTitle({ title: this.props.userInfo.miniApp.name })
96
-  }
97
-
98 86
   getIndexShareInfo() {
99 87
     getIndexShare().then(res => {
100 88
 
@@ -556,17 +544,29 @@ export default class Index extends Component {
556 544
             {!achieve && <ScrollView
557 545
               scrollY
558 546
               className='home'>
547
+              {/* 搜索框 */}
548
+              <View className="top-box">
549
+                <View className="search" onClick={this.handleToHouseList}>
550
+                  <Image className="search-icon" src={require('@/assets/index/search.png')} />
551
+                  <Input className="search-input" placeholder-style="color:#B8B8B8" placeholder="输入你想查询的楼盘"></Input>
552
+                </View>
553
+                <View className="location" onClick={this.handleLocationClick}>
554
+                  <Image className="location-icon" src={require('@/assets/index/location.png')} />
555
+                  <Text className="location-text">{curCity.id ? curCity.shortname : '正在定位'}</Text>
556
+                  <View class="arrow_down"></View>
557
+                </View>
558
+              </View>
559 559
               {/* 头部轮播图 */}
560 560
               <View className="section section-top" style={{ marginTop: 0, paddingTop: 0 }}>
561 561
                 <View
562 562
                   style={{
563
-                    height: '500rpx', position: 'relative'
563
+                    height: '464rpx', position: 'relative'
564 564
                   }}>
565 565
                   {
566 566
                     this.state.visBanner && (
567 567
                       <Banner
568 568
                         style={{
569
-                          height: '500rpx'
569
+                          height: '464rpx'
570 570
                         }}
571 571
                         indicatorDots={false}
572 572
                         list={this.state.bannerList}
@@ -577,47 +577,35 @@ export default class Index extends Component {
577 577
                     )
578 578
                   }
579 579
                 </View>
580
-                {/* 搜索框 */}
581
-                <View className="top-box">
582
-                  <View className="search" onClick={this.handleToHouseList}>
583
-                    <Image className="search-icon" src={require('@/assets/index/search.png')} />
584
-                    <Input className="search-input" placeholder-style="color:#fff" placeholder="输入你想查询的楼盘"></Input>
585
-                  </View>
586
-                  <View className="location" onClick={this.handleLocationClick}>
587
-                    <Image className="location-icon" src={require('@/assets/map.png')} />
588
-                    <Text className="location-text">{curCity.id ? curCity.shortname : '正在定位'}</Text>
589
-                    <View class="arrow_down"></View>
590
-                  </View>
591
-                </View>
592 580
               </View>
593 581
               {/* 菜单栏 */}
594
-              <View className="mune-box" style={personType == ROLE_CODE['CONSULTANT'] ? `background: url(${transferImage(bgImg)}) no-repeat center;background-size: 100% 100%;padding:0 8%` : `background: url(${transferImage(bgImg)}) no-repeat center;background-size: 100% 100%`}>
582
+              <View className="mune-box" style={personType == ROLE_CODE['CONSULTANT'] ? "padding:0 8%" : ""}>
595 583
                 <View className="mune-item" onClick={this.toShopMallPage}>
596
-                  <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709201249-mall.png" className='icon'></Image>
584
+                  <Image src={require('@/assets/index/mall-icon.png')} className='icon'></Image>
597 585
                   <View className="mune-text">
598 586
                     积分商城
599
-                  </View>
587
+                </View>
600 588
                 </View>
601 589
                 <View className="mune-item" onClick={this.toPolicyPage}>
602
-                  <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578708937718-encyclopedia.png" className='icon'></Image>
590
+                  <Image src={require('@/assets/index/encyclopedia-icon.png')} className='icon'></Image>
603 591
                   <View className="mune-text">
604 592
                     购房百科
605
-                  </View>
593
+                </View>
606 594
                 </View>
607 595
                 {
608 596
                   (personType !== ROLE_CODE['CONSULTANT']) &&
609 597
                   <View className="mune-item" onClick={this.toRecomonedPage}>
610
-                    <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709234380-recommend.png" className='icon'></Image>
598
+                    <Image src={require('@/assets/index/recommend-icon.png')} className='icon'></Image>
611 599
                     <View className="mune-text">
612 600
                       推荐客户
613
-                  </View>
601
+                </View>
614 602
                   </View>
615 603
                 }
616 604
                 <View className="mune-item" onClick={this.toMapHouse}>
617
-                  <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709222557-map.png" className='icon'></Image>
605
+                  <Image src={require('@/assets/index/map-icon.png')} className='icon'></Image>
618 606
                   <View className="mune-text">
619 607
                     地图找房
620
-                  </View>
608
+                </View>
621 609
                 </View>
622 610
               </View>
623 611
               <View style={(newsShow || propagandaBanner.length > 0) ? "border-bottom:20rpx solid #f5f5f5" : ''}>
@@ -626,7 +614,7 @@ export default class Index extends Component {
626 614
                   this.state.visPropagandaBanner && propagandaBanner.length > 0 &&
627 615
                   <View
628 616
                     style={{
629
-                      position: 'relative', padding: '10px 15px 0 15px'
617
+                      position: 'relative', padding: '20px 15px 0 15px'
630 618
                     }}>
631 619
                     <BannerTwo
632 620
                       style={{

+ 19
- 25
src/pages/project/index.scss 查看文件

@@ -12,27 +12,24 @@
12 12
   justify-content: space-between;
13 13
   align-items: center;
14 14
 }
15
-
16 15
 .top-box{
17 16
   display: flex;
18 17
   width: 100%;
19 18
   align-items: center;
20 19
   justify-content: space-between;
21
-  position: absolute;
22
-  top: 0;
23
-  left: 0;
24 20
   padding: 20px 30px;
21
+  background-color: #fff;
25 22
   .search {
26 23
     height: 60px;
27 24
     line-height: 60px;
28
-    background:rgba(0,0,0,0.12);
25
+    background:rgba(0,0,0,0.04);
29 26
     -webkit-box-pack: start;
30 27
     -webkit-justify-content: flex-start;
31 28
     -ms-flex-pack: start;
32 29
     border-radius: 30px;
33 30
     @extend .flex;
34 31
     justify-content: flex-start;
35
-    width: 530px;
32
+    width: 500px;
36 33
     &-icon {
37 34
     width: 26px;
38 35
     height: 24px;
@@ -40,30 +37,27 @@
40 37
     }
41 38
     &-input {
42 39
       font-size: 24px;
43
-      color: #fff;
40
+      color: #B8B8B8;
44 41
     }
45 42
   }
46 43
   .location {
47 44
     @extend .flex;
48 45
     justify-content: center;
49
-    padding: 0 12px;
50
-    background:rgba(0,0,0,0.12);
51
-    border-radius:30px;
52 46
     height: 60px;
53 47
     line-height: 60px;
54
-    
48
+    width: 154px;
49
+    text-align: center;
55 50
     &-text {
56
-      font-size: 25px;
57
-      padding: 0 6px 0 8px;
58
-      color: #fff;
51
+      font-size: 26px;
52
+      padding: 0 8px;
53
+      color: $primary-color;
59 54
       @include text-ellipsis; 
60
-      max-width: 80px;
55
+      max-width: 120px;
61 56
       text-align: center;
62 57
     }
63
-  
64 58
     &-icon {
65
-      width: 12px;
66
-      height: 16px;
59
+      width: 14px;
60
+      height: 20px;
67 61
       animation: bigger 1s ease 3 both;
68 62
     }
69 63
     .arrow_down {
@@ -71,21 +65,21 @@
71 65
       height: 0;
72 66
       border-left: 8px solid transparent;
73 67
       border-right: 8px solid transparent;
74
-      border-top: 8px solid #fff;
68
+      border-top: 8px solid $primary-color;
75 69
     }
76 70
   }
77
-}
78 71
 
72
+}
79 73
 .mune-box{
80
-  width:700px;
81
-  height:208px;
82
-  // background:#fff;
83
-  // box-shadow:0px 4px 12px 0px rgba(0,0,0,0.12);
74
+  width:690px;
75
+  height:188px;
76
+  background:#fff;
77
+  box-shadow:0px 4px 12px 0px rgba(0,0,0,0.12);
84 78
   border-radius:12px;
85 79
   display: flex;
86 80
   align-items: center;
87 81
   justify-content: space-between;
88
-  margin: -54px auto 0 auto;
82
+  margin: -94px auto 0 auto;
89 83
   position: relative;
90 84
   .mune-item{
91 85
     text-align: center;