Ver código fonte

静态页面

1002884655 4 anos atrás
pai
commit
fa22b15150

BIN
src/assets/img/nodata.png Ver arquivo


+ 1
- 1
src/components/ListView/index.js Ver arquivo

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

+ 6
- 1
src/pages/dichan/index.js Ver arquivo

@@ -80,7 +80,12 @@ export default class Index extends Component {
80 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 81
                   </View>
82 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 89
                     <View className='centerLabel'>
85 90
                       <View>
86 91
                         <Text>{item.buildingArea}</Text>

+ 14
- 20
src/pages/index/index.js Ver arquivo

@@ -15,6 +15,7 @@ import { share as shareSavePoint } from '@/utils/shareSavePoint'
15 15
 import { transferImage } from '@/utils/tools'
16 16
 import ShopItem from '../league/item'
17 17
 import BannerTwo from '../project/swiper'
18
+import { View } from '@tarojs/components';
18 19
 
19 20
 @connect(
20 21
   state => ({ ...state.project, ...state.city, ...state.user, system: state.system }),
@@ -448,25 +449,6 @@ export default class Index extends Component {
448 449
             }
449 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 452
         </View>
471 453
 
472 454
         {/* 热门活动推荐 */}
@@ -475,7 +457,19 @@ export default class Index extends Component {
475 457
           <View className='ActivityRecommed'>
476 458
             <Text className='Title'>热门活动推荐</Text>
477 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 473
             </View>
480 474
           </View>
481 475
         }

+ 15
- 4
src/pages/index/index.scss Ver arquivo

@@ -114,9 +114,20 @@
114 114
       background: #eee;
115 115
       border-radius: 24px;
116 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,7 +233,7 @@
222 233
               position: relative;
223 234
               overflow: hidden;
224 235
             }
225
-            > text.Label  {
236
+            > text.Label {
226 237
               font-size: 20px;
227 238
               font-weight: normal;
228 239
               width: 30px;

+ 2
- 2
src/pages/project/detail/index.js Ver arquivo

@@ -859,11 +859,11 @@ export default class Index extends Component {
859 859
           }
860 860
 
861 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 863
           <Image src={require('@/assets/img/icon14.png')} mode='widthFix' className='BtnIcon1'></Image>
864 864
           <Text className="text" style='color: #1BC5D4;'>在线聊</Text>
865 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 867
           <Image src={require('@/assets/img/icon13.png')} mode='widthFix' className='BtnIcon2'></Image>
868 868
           <Text className="text" style='color: #1DD100;'>打电话</Text>
869 869
         </View>

+ 27
- 1
src/pages/project/detail/index.scss Ver arquivo

@@ -250,7 +250,7 @@
250 250
     margin: 0;
251 251
     padding: 0;
252 252
     line-height: 1;
253
-    width: 50%;
253
+    // width: 50%;
254 254
     box-sizing: border-box;
255 255
     background: transparent;
256 256
     border-radius: none;
@@ -260,6 +260,9 @@
260 260
     justify-content: center;
261 261
     align-items: center;
262 262
     // border-right: solid 1px rgba(0, 0, 0, 0.1);
263
+    &:first-child {
264
+      margin-left: 20px;
265
+    }
263 266
 
264 267
     .iconfont {
265 268
       font-size: 42px;
@@ -286,6 +289,7 @@
286 289
       text-align: center;
287 290
       font-size: 30px;
288 291
       color: #333;
292
+      white-space: nowrap;
289 293
     }
290 294
 
291 295
     .icon-xiazai {
@@ -1115,3 +1119,25 @@
1115 1119
   background: rgba(216, 216, 216, 1);
1116 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
+}