xujing 5 年之前
父節點
當前提交
af779a81db
共有 3 個文件被更改,包括 20 次插入4 次删除
  1. 1
    1
      src/pages/project/index.js
  2. 10
    0
      src/pages/project/index.scss
  3. 9
    3
      src/routes.js

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

@@ -467,7 +467,7 @@ export default class Index extends Component {
467 467
           )
468 468
         }
469 469
 
470
-        <View className="last-text" onClick={this.handleProItemClick} >更多推荐楼盘</View>
470
+        <View className="more-btn" onClick={this.handleProItemClick} >更多推荐楼盘</View>
471 471
       </Block>
472 472
     )
473 473
   }

+ 10
- 0
src/pages/project/index.scss 查看文件

@@ -483,6 +483,16 @@
483 483
   // position: absolute;
484 484
   //     top:0 ;
485 485
   //     left:0;
486
+  width: 690px;
487
+  height:94px;
488
+  font-size: 34px;
489
+  line-height: 94px;
490
+  color: #999;
491
+  text-align: center;
492
+  border-radius: 10px;
493
+  margin: 40px 30px;
494
+}
495
+.more-btn{
486 496
   width: 690px;
487 497
   height:94px;
488 498
   font-size: 34px;

+ 9
- 3
src/routes.js 查看文件

@@ -79,6 +79,12 @@ const routes = [
79 79
     pkg: 'main',
80 80
     type: 'building',
81 81
   },
82
+  {
83
+    name: '重点推荐',
84
+    page: 'pages/project/highlyRecommented',
85
+    pkg: 'main',
86
+    type: 'building',
87
+  },
82 88
 
83 89
 
84 90
   /**************************************
@@ -218,7 +224,7 @@ const routes = [
218 224
     name: '卡片围观记录',
219 225
     page: 'pages/card/fans/index',
220 226
     pkg: 'main',
221
-    type: 'other',    
227
+    type: 'other',
222 228
   },
223 229
 
224 230
   /***********************************
@@ -546,7 +552,7 @@ function getPages() {
546 552
   const grp = routes.reduce((g, r) => {
547 553
     const { pkg, page } = r
548 554
     const pg = g[pkg] || []
549
-    
555
+
550 556
     return Object.assign(g, {
551 557
       [`${pkg}`]: pg.concat(page),
552 558
     })
@@ -558,7 +564,7 @@ function getPages() {
558 564
       root: key,
559 565
       pages: grp[key],
560 566
     })
561
-  }),[])
567
+  }), [])
562 568
 
563 569
 
564 570
   return {