瀏覽代碼

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

张延森 5 年之前
父節點
當前提交
57e76f29d5
共有 5 個文件被更改,包括 25 次插入27 次删除
  1. 二進制
      src/assets/map.png
  2. 二進制
      src/assets/search.png
  3. 3
    3
      src/pages/activity/detail/index.js
  4. 7
    7
      src/pages/project/index.js
  5. 15
    17
      src/pages/project/index.scss

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


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


+ 3
- 3
src/pages/activity/detail/index.js 查看文件

@@ -69,7 +69,7 @@ export default class Detail extends Component {
69 69
         isSaved,
70 70
         isSign,
71 71
         loaded: true,
72
-        selector: times(res.maxEnlistByPerson || 1).map((_, i) => `${i+1}`),
72
+        selector: times(res.maxEnlistByPerson || 1).map((_, i) => `${i + 1}`),
73 73
       }, () => {
74 74
 
75 75
         const { detail } = this.state
@@ -318,10 +318,10 @@ export default class Detail extends Component {
318 318
                 scrollY
319 319
                 className="detail-wrap">
320 320
                 <View className="detail">
321
-                  {(detail.enlisted == 0 || !detail.enlisted) &&
321
+                  {detail.isEnlist == 0 &&
322 322
                     <View className="detail-sign__num">不需要报名</View>
323 323
                   }
324
-                  {detail.enlisted > 0 &&
324
+                  {detail.isEnlist != 0 &&
325 325
                     <View className="detail-sign__num">{detail.enlisted || 0}人已报名</View>
326 326
                   }
327 327
                   <View class="detail-title">{detail.title}</View>

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

@@ -259,7 +259,7 @@ export default class Index extends Component {
259 259
     this.redirectTo(item)
260 260
   }
261 261
 
262
-  redirectTo({contentId, contentType, buildingId} = {}) {
262
+  redirectTo({ contentId, contentType, buildingId } = {}) {
263 263
     switch (contentType) {
264 264
       // 项目
265 265
       case 'project':
@@ -281,21 +281,21 @@ export default class Index extends Component {
281 281
           url: '/pages/activity/detail/assistance?id=' + contentId
282 282
         })
283 283
         return;
284
-      
284
+
285 285
       // 拼团
286 286
       case 'group':
287 287
         Taro.navigateTo({
288 288
           url: '/pages/activity/detail/assemble?id=' + contentId
289 289
         })
290 290
         return;
291
-      
291
+
292 292
       // 资讯
293 293
       case 'news':
294 294
         Taro.navigateTo({
295 295
           url: 'pages/news/detail/index?id=' + contentId
296 296
         })
297 297
         return;
298
-      
298
+
299 299
       // 其他
300 300
       case 'others':
301 301
       default:
@@ -491,11 +491,11 @@ export default class Index extends Component {
491 491
                 </View>
492 492
                 <View className="top-box">
493 493
                   <View className="search" onClick={this.handleToHouseList}>
494
-                    <Text className="search-icon icon-sousuo iconfont"></Text>
495
-                    <Input className="search-input" placeholder="输入你想查询的楼盘"></Input>
494
+                    <Image className="search-icon" src={require('@assets/search.png')} />
495
+                    <Input className="search-input" placeholder-style="color:#fff" placeholder="输入你想查询的楼盘"></Input>
496 496
                   </View>
497 497
                   <View className="location" onClick={this.handleLocationClick}>
498
-                    <Text className="location-icon iconfont icon-daohangdizhi"></Text>
498
+                    <Image className="location-icon" src={require('@assets/map.png')} />
499 499
                     <Text className="location-text">{curCity.id ? curCity.name : '正在定位'}</Text>
500 500
                   </View>
501 501
                 </View>

+ 15
- 17
src/pages/project/index.scss 查看文件

@@ -24,25 +24,24 @@
24 24
   .location {
25 25
     @extend .flex;
26 26
     justify-content: center;
27
-    padding: 13px 14px;
28
-    background:rgba(161,161,161,0.2);
27
+    padding: 0 12px;
28
+    background:rgba(0,0,0,0.2);
29 29
     border-radius:12px;
30
+    height: 60px;
31
+    line-height: 60px;
30 32
     
31
-  
32 33
     &-text {
33 34
       font-size: 25px;
34 35
       padding-left: 13px;
35
-      color: rgba(255, 255, 255, 1);
36
+      color: #fff;
36 37
       @include text-ellipsis; 
37 38
       width: 100px;
39
+      text-align: center;
38 40
     }
39 41
   
40 42
     &-icon {
41
-      color: rgb(209, 204, 204);
42
-      font-size: 16px;
43
-      font-weight: bold;
44
-      display: block;
45
-      margin-top: 10px;
43
+      width: 14px;
44
+      height: 20px;
46 45
       animation: bigger 1s ease 3 both;
47 46
     }
48 47
   }
@@ -50,7 +49,8 @@
50 49
   .search {
51 50
 
52 51
     height: 60px;
53
-    background:rgba(161,161,161,0.2);
52
+    line-height: 60px;
53
+    background:rgba(0,0,0,0.2);
54 54
     -webkit-box-pack: start;
55 55
     -webkit-justify-content: flex-start;
56 56
     -ms-flex-pack: start;
@@ -60,17 +60,15 @@
60 60
     width: 440px;
61 61
   
62 62
     &-icon {
63
-      font-size: 24px;
64
-      color: rgb(209, 204, 204);
65
-      font-weight: bold;
66
-      margin: 0 10px 0 10px;
63
+    width: 26px;
64
+    height: 26px;
65
+    margin: 0 16px 0 20px ;
67 66
     }
68
-  
69 67
     &-input {
70 68
       font-size: 24px;
71
-      line-height: 60px;
72
-      color: #A2A2A2;
69
+      color: #fff;
73 70
     }
71
+
74 72
   }
75 73
 }
76 74