Browse Source

静态页面

1002884655 4 years ago
parent
commit
fa22b15150

BIN
src/assets/img/nodata.png View File


+ 1
- 1
src/components/ListView/index.js View File

1
 import Taro, { Component } from '@tarojs/taro';
1
 import Taro, { Component } from '@tarojs/taro';
2
 import { ScrollView, View, Image } from '@tarojs/components';
2
 import { ScrollView, View, Image } from '@tarojs/components';
3
 import { throttle } from '@/utils/tools'
3
 import { throttle } from '@/utils/tools'
4
-import emptyImg from '@/assets/empty.png'
4
+import emptyImg from '@/assets/img/nodata.png'
5
 import './index.scss'
5
 import './index.scss'
6
 
6
 
7
 /**
7
 /**

+ 6
- 1
src/pages/dichan/index.js View File

80
                     <Image mode='widthFix' className='centerLabel' src={item.buildingListImg !== null && item.buildingListImg.length ? item.buildingListImg[0].url : 'https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/images/default.jpg'} />
80
                     <Image mode='widthFix' className='centerLabel' src={item.buildingListImg !== null && item.buildingListImg.length ? item.buildingListImg[0].url : 'https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/images/default.jpg'} />
81
                   </View>
81
                   </View>
82
                   <View className='flex-item'>
82
                   <View className='flex-item'>
83
-                    <Image mode='widthFix' className='Logo' src={require('@/assets/img/logo.png')} />
83
+                    {
84
+                      Org !== null ?
85
+                        <Image mode='widthFix' className='Logo' src={Org.waterMark} />
86
+                        :
87
+                        <Image mode='widthFix' className='Logo' src={require('@/assets/img/logo.png')} />
88
+                    }
84
                     <View className='centerLabel'>
89
                     <View className='centerLabel'>
85
                       <View>
90
                       <View>
86
                         <Text>{item.buildingArea}</Text>
91
                         <Text>{item.buildingArea}</Text>

+ 14
- 20
src/pages/index/index.js View File

15
 import { transferImage } from '@/utils/tools'
15
 import { transferImage } from '@/utils/tools'
16
 import ShopItem from '../league/item'
16
 import ShopItem from '../league/item'
17
 import BannerTwo from '../project/swiper'
17
 import BannerTwo from '../project/swiper'
18
+import { View } from '@tarojs/components';
18
 
19
 
19
 @connect(
20
 @connect(
20
   state => ({ ...state.project, ...state.city, ...state.user, system: state.system }),
21
   state => ({ ...state.project, ...state.city, ...state.user, system: state.system }),
448
             }
449
             }
449
           </View>
450
           </View>
450
 
451
 
451
-          {
452
-            this.state.visPropagandaBanner && propagandaBanner.length > 0 &&
453
-            <View
454
-              style={{
455
-                position: 'relative', padding: '20px 0 0 0'
456
-              }}>
457
-              <BannerTwo
458
-                style={{
459
-                  borderRadius: '6px',
460
-                  height: '172rpx'
461
-                }}
462
-                // forwardShow={true}
463
-                indicatorDots={false}
464
-                list={propagandaBanner}
465
-                onClick={this.handlePropagandaClick}>
466
-              </BannerTwo>
467
-            </View>
468
-          }
469
-
470
         </View>
452
         </View>
471
 
453
 
472
         {/* 热门活动推荐 */}
454
         {/* 热门活动推荐 */}
475
           <View className='ActivityRecommed'>
457
           <View className='ActivityRecommed'>
476
             <Text className='Title'>热门活动推荐</Text>
458
             <Text className='Title'>热门活动推荐</Text>
477
             <View>
459
             <View>
478
-              <Image mode='widthFix' className='centerLabel' src={transferImage(helpGroupList[0].bannerListImg)} onClick={this.handleItemClick.bind(this, item)} />
460
+              <View>
461
+                <Swiper className='Swiper' indicatorColor='rgba(0,0,0,0.4)' indicatorActiveColor='#fff' circular indicatorDots autoplay>
462
+                  {
463
+                    propagandaBanner.length &&
464
+                    propagandaBanner.map((item, index) => (
465
+                      <SwiperItem key={`Swiper-${index}`} onClick={this.handleBannerClick.bind(this, item)}>
466
+                        <Image mode='widthFix' className='centerLabel' src={item.image} />
467
+                      </SwiperItem>
468
+                    ))
469
+                  }
470
+                </Swiper>
471
+              </View>
472
+              {/* <Image mode='widthFix' className='centerLabel' src={transferImage(helpGroupList[0].bannerListImg)} onClick={this.handleItemClick.bind(this, item)} /> */}
479
             </View>
473
             </View>
480
           </View>
474
           </View>
481
         }
475
         }

+ 15
- 4
src/pages/index/index.scss View File

114
       background: #eee;
114
       background: #eee;
115
       border-radius: 24px;
115
       border-radius: 24px;
116
       margin-top: 20px;
116
       margin-top: 20px;
117
-      > image {
118
-        min-width: 100%;
119
-        min-height: 100%;
117
+      > view {
118
+        width: 100%;
119
+        position: absolute;
120
+        left: 0;
121
+        top: 0;
122
+        bottom: 0;
123
+        > .Swiper {
124
+          width: 100%;
125
+          height: 100%;
126
+          image {
127
+            width: 100%;
128
+            height: 100%;
129
+          }
130
+        }
120
       }
131
       }
121
     }
132
     }
122
   }
133
   }
222
               position: relative;
233
               position: relative;
223
               overflow: hidden;
234
               overflow: hidden;
224
             }
235
             }
225
-            > text.Label  {
236
+            > text.Label {
226
               font-size: 20px;
237
               font-size: 20px;
227
               font-weight: normal;
238
               font-weight: normal;
228
               width: 30px;
239
               width: 30px;

+ 2
- 2
src/pages/project/detail/index.js View File

859
           }
859
           }
860
 
860
 
861
         </View>
861
         </View>
862
-        <View className='bt-nav__item  bt-nav__right' style='border-color: #1BC5D4;' onClick={this.ChatOnlineClick}>
862
+        <View className='NewBottomBtn' style='border-color: #1BC5D4;margin-left: 20px;' onClick={this.ChatOnlineClick}>
863
           <Image src={require('@/assets/img/icon14.png')} mode='widthFix' className='BtnIcon1'></Image>
863
           <Image src={require('@/assets/img/icon14.png')} mode='widthFix' className='BtnIcon1'></Image>
864
           <Text className="text" style='color: #1BC5D4;'>在线聊</Text>
864
           <Text className="text" style='color: #1BC5D4;'>在线聊</Text>
865
         </View>
865
         </View>
866
-        <View className='bt-nav__item  bt-nav__right bt-nav__right2' style='border-color: #1DD100;' onClick={this.callPhone}>
866
+        <View className='NewBottomBtn' style='border-color: #1DD100;' onClick={this.callPhone}>
867
           <Image src={require('@/assets/img/icon13.png')} mode='widthFix' className='BtnIcon2'></Image>
867
           <Image src={require('@/assets/img/icon13.png')} mode='widthFix' className='BtnIcon2'></Image>
868
           <Text className="text" style='color: #1DD100;'>打电话</Text>
868
           <Text className="text" style='color: #1DD100;'>打电话</Text>
869
         </View>
869
         </View>

+ 27
- 1
src/pages/project/detail/index.scss View File

250
     margin: 0;
250
     margin: 0;
251
     padding: 0;
251
     padding: 0;
252
     line-height: 1;
252
     line-height: 1;
253
-    width: 50%;
253
+    // width: 50%;
254
     box-sizing: border-box;
254
     box-sizing: border-box;
255
     background: transparent;
255
     background: transparent;
256
     border-radius: none;
256
     border-radius: none;
260
     justify-content: center;
260
     justify-content: center;
261
     align-items: center;
261
     align-items: center;
262
     // border-right: solid 1px rgba(0, 0, 0, 0.1);
262
     // border-right: solid 1px rgba(0, 0, 0, 0.1);
263
+    &:first-child {
264
+      margin-left: 20px;
265
+    }
263
 
266
 
264
     .iconfont {
267
     .iconfont {
265
       font-size: 42px;
268
       font-size: 42px;
286
       text-align: center;
289
       text-align: center;
287
       font-size: 30px;
290
       font-size: 30px;
288
       color: #333;
291
       color: #333;
292
+      white-space: nowrap;
289
     }
293
     }
290
 
294
 
291
     .icon-xiazai {
295
     .icon-xiazai {
1115
   background: rgba(216, 216, 216, 1);
1119
   background: rgba(216, 216, 216, 1);
1116
   border-radius: 12px;
1120
   border-radius: 12px;
1117
 }
1121
 }
1122
+
1123
+.NewBottomBtn {
1124
+  font-size: 0;
1125
+  white-space: nowrap;
1126
+  padding: 0 20px;
1127
+  border-radius: 8px;
1128
+  border: 2px solid #333;
1129
+  margin-right: 20px;
1130
+  > image {
1131
+    width: 32px;
1132
+    height: auto;
1133
+    display: inline-block;
1134
+    vertical-align: middle;
1135
+    margin-right: 10px;
1136
+  }
1137
+  > text {
1138
+    display: inline-block;
1139
+    font-size: 30px;
1140
+    line-height: 80px;
1141
+    vertical-align: middle;
1142
+  }
1143
+}