Browse Source

静态页面

xcx 4 years ago
parent
commit
1adb5a33a0

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


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


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


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


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


+ 6
- 6
src/pages/ShouYe/index.css View File

256
 .ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view {
256
 .ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view {
257
   position: relative;
257
   position: relative;
258
 }
258
 }
259
+.ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view image {
260
+  height: 60px;
261
+  width: auto;
262
+  display: block;
263
+  margin: 0 auto 10px;
264
+}
259
 .ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view text {
265
 .ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view text {
260
   display: block;
266
   display: block;
261
   width: 100%;
267
   width: 100%;
264
   color: #333;
270
   color: #333;
265
   line-height: 40px;
271
   line-height: 40px;
266
 }
272
 }
267
-.ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view text.iconfont {
268
-  color: #f35844;
269
-  font-size: 60px;
270
-  line-height: 70px;
271
-  margin-bottom: 10px;
272
-}
273
 .ShouYe > view.flex-item > .PageContainer .Content > view > .NewsContainer {
273
 .ShouYe > view.flex-item > .PageContainer .Content > view > .NewsContainer {
274
   padding: 0 30px;
274
   padding: 0 30px;
275
   position: relative;
275
   position: relative;

+ 7
- 6
src/pages/ShouYe/index.jsx View File

18
 
18
 
19
   const { user } = useModel('user')
19
   const { user } = useModel('user')
20
   const [OwnerList] = useState([
20
   const [OwnerList] = useState([
21
-    { icon: 'iconjiaofei', name: '物业缴费', id: 1, router: '/pages/WuYe/index', setName: 'WuYeNavId', setValue: '4', isTab: true },
22
-    { icon: 'icontongzhi', name: '物业通知', id: 2, router: '/pages/WuYe/index', setName: 'WuYeNavId', setValue: '1', isTab: true },
23
-    { icon: 'iconbaoxiu', name: '物业报修', id: 3, router: '/pages/WuYe/index', setName: 'WuYeNavId', setValue: '3', isTab: true },
24
-    { icon: 'iconrenzheng', name: '业主认证', id: 4, router: '/pages/WoDe/WoDeRenZheng/index', isTab: false },
25
-    { icon: 'iconguanjia', name: '生活管家', id: 5, router: '/pages/WuYe/ShengHuoGuanJia/index', isTab: false, bold: true }
21
+    { icon: require('@/assets/img/icon1.png'), name: '物业缴费', id: 1, router: '/pages/WuYe/index', setName: 'WuYeNavId', setValue: '4', isTab: true },
22
+    { icon: require('@/assets/img/icon2.png'), name: '物业通知', id: 2, router: '/pages/WuYe/index', setName: 'WuYeNavId', setValue: '1', isTab: true },
23
+    { icon: require('@/assets/img/icon3.png'), name: '物业报修', id: 3, router: '/pages/WuYe/index', setName: 'WuYeNavId', setValue: '3', isTab: true },
24
+    { icon: require('@/assets/img/icon4.png'), name: '业主认证', id: 4, router: '/pages/WoDe/WoDeRenZheng/index', isTab: false },
25
+    { icon: require('@/assets/img/icon5.png'), name: '生活管家', id: 5, router: '/pages/WuYe/ShengHuoGuanJia/index', isTab: false, bold: true }
26
   ])
26
   ])
27
   const [NavList] = useState([
27
   const [NavList] = useState([
28
     { icon: 'iconhuodong1', name: '活动', id: 1, router: '/pages/ShouYe/HuoDong/index', isTab: false },
28
     { icon: 'iconhuodong1', name: '活动', id: 1, router: '/pages/ShouYe/HuoDong/index', isTab: false },
263
                         {
263
                         {
264
                           OwnerList.map((item, index) => (
264
                           OwnerList.map((item, index) => (
265
                             <view className='flex-item' key={`Owners-${index}`} onClick={OwnerClick(item)}>
265
                             <view className='flex-item' key={`Owners-${index}`} onClick={OwnerClick(item)}>
266
-                              <Text className={`iconfont ${item.icon}`} style={{ fontWeight: item.bold !== undefined && item.bold === true ? 'bold' : 'normal' }}></Text>
266
+                              {/* <Text className={`iconfont ${item.icon}`} style={{ fontWeight: item.bold !== undefined && item.bold === true ? 'bold' : 'normal' }}></Text> */}
267
+                              <image mode='heightFix' src={item.icon.default}></image>
267
                               <view>
268
                               <view>
268
                                 <view><Text>{item.name}</Text></view>
269
                                 <view><Text>{item.name}</Text></view>
269
                               </view>
270
                               </view>

+ 7
- 7
src/pages/ShouYe/index.less View File

330
                   >view {
330
                   >view {
331
                     position: relative;
331
                     position: relative;
332
 
332
 
333
+                    image {
334
+                      height: 60px;
335
+                      width: auto;
336
+                      display: block;
337
+                      margin: 0 auto 10px;
338
+                    }
339
+
333
                     text {
340
                     text {
334
                       display: block;
341
                       display: block;
335
                       width: 100%;
342
                       width: 100%;
337
                       font-size: 26px;
344
                       font-size: 26px;
338
                       color: #333;
345
                       color: #333;
339
                       line-height: 40px;
346
                       line-height: 40px;
340
-
341
-                      &.iconfont {
342
-                        color: #f35844;
343
-                        font-size: 60px;
344
-                        line-height: 70px;
345
-                        margin-bottom: 10px;
346
-                      }
347
                     }
347
                     }
348
                   }
348
                   }
349
                 }
349
                 }