Browse Source

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

张延森 5 years ago
parent
commit
57e76f29d5

BIN
src/assets/map.png View File


BIN
src/assets/search.png View File


+ 3
- 3
src/pages/activity/detail/index.js View File

69
         isSaved,
69
         isSaved,
70
         isSign,
70
         isSign,
71
         loaded: true,
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
         const { detail } = this.state
75
         const { detail } = this.state
318
                 scrollY
318
                 scrollY
319
                 className="detail-wrap">
319
                 className="detail-wrap">
320
                 <View className="detail">
320
                 <View className="detail">
321
-                  {(detail.enlisted == 0 || !detail.enlisted) &&
321
+                  {detail.isEnlist == 0 &&
322
                     <View className="detail-sign__num">不需要报名</View>
322
                     <View className="detail-sign__num">不需要报名</View>
323
                   }
323
                   }
324
-                  {detail.enlisted > 0 &&
324
+                  {detail.isEnlist != 0 &&
325
                     <View className="detail-sign__num">{detail.enlisted || 0}人已报名</View>
325
                     <View className="detail-sign__num">{detail.enlisted || 0}人已报名</View>
326
                   }
326
                   }
327
                   <View class="detail-title">{detail.title}</View>
327
                   <View class="detail-title">{detail.title}</View>

+ 7
- 7
src/pages/project/index.js View File

259
     this.redirectTo(item)
259
     this.redirectTo(item)
260
   }
260
   }
261
 
261
 
262
-  redirectTo({contentId, contentType, buildingId} = {}) {
262
+  redirectTo({ contentId, contentType, buildingId } = {}) {
263
     switch (contentType) {
263
     switch (contentType) {
264
       // 项目
264
       // 项目
265
       case 'project':
265
       case 'project':
281
           url: '/pages/activity/detail/assistance?id=' + contentId
281
           url: '/pages/activity/detail/assistance?id=' + contentId
282
         })
282
         })
283
         return;
283
         return;
284
-      
284
+
285
       // 拼团
285
       // 拼团
286
       case 'group':
286
       case 'group':
287
         Taro.navigateTo({
287
         Taro.navigateTo({
288
           url: '/pages/activity/detail/assemble?id=' + contentId
288
           url: '/pages/activity/detail/assemble?id=' + contentId
289
         })
289
         })
290
         return;
290
         return;
291
-      
291
+
292
       // 资讯
292
       // 资讯
293
       case 'news':
293
       case 'news':
294
         Taro.navigateTo({
294
         Taro.navigateTo({
295
           url: 'pages/news/detail/index?id=' + contentId
295
           url: 'pages/news/detail/index?id=' + contentId
296
         })
296
         })
297
         return;
297
         return;
298
-      
298
+
299
       // 其他
299
       // 其他
300
       case 'others':
300
       case 'others':
301
       default:
301
       default:
491
                 </View>
491
                 </View>
492
                 <View className="top-box">
492
                 <View className="top-box">
493
                   <View className="search" onClick={this.handleToHouseList}>
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
                   </View>
496
                   </View>
497
                   <View className="location" onClick={this.handleLocationClick}>
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
                     <Text className="location-text">{curCity.id ? curCity.name : '正在定位'}</Text>
499
                     <Text className="location-text">{curCity.id ? curCity.name : '正在定位'}</Text>
500
                   </View>
500
                   </View>
501
                 </View>
501
                 </View>

+ 15
- 17
src/pages/project/index.scss View File

24
   .location {
24
   .location {
25
     @extend .flex;
25
     @extend .flex;
26
     justify-content: center;
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
     border-radius:12px;
29
     border-radius:12px;
30
+    height: 60px;
31
+    line-height: 60px;
30
     
32
     
31
-  
32
     &-text {
33
     &-text {
33
       font-size: 25px;
34
       font-size: 25px;
34
       padding-left: 13px;
35
       padding-left: 13px;
35
-      color: rgba(255, 255, 255, 1);
36
+      color: #fff;
36
       @include text-ellipsis; 
37
       @include text-ellipsis; 
37
       width: 100px;
38
       width: 100px;
39
+      text-align: center;
38
     }
40
     }
39
   
41
   
40
     &-icon {
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
       animation: bigger 1s ease 3 both;
45
       animation: bigger 1s ease 3 both;
47
     }
46
     }
48
   }
47
   }
50
   .search {
49
   .search {
51
 
50
 
52
     height: 60px;
51
     height: 60px;
53
-    background:rgba(161,161,161,0.2);
52
+    line-height: 60px;
53
+    background:rgba(0,0,0,0.2);
54
     -webkit-box-pack: start;
54
     -webkit-box-pack: start;
55
     -webkit-justify-content: flex-start;
55
     -webkit-justify-content: flex-start;
56
     -ms-flex-pack: start;
56
     -ms-flex-pack: start;
60
     width: 440px;
60
     width: 440px;
61
   
61
   
62
     &-icon {
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
     &-input {
67
     &-input {
70
       font-size: 24px;
68
       font-size: 24px;
71
-      line-height: 60px;
72
-      color: #A2A2A2;
69
+      color: #fff;
73
     }
70
     }
71
+
74
   }
72
   }
75
 }
73
 }
76
 
74