Ver código fonte

静态页面

xcx 4 anos atrás
pai
commit
1adb5a33a0

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


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


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


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


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


+ 6
- 6
src/pages/ShouYe/index.css Ver arquivo

@@ -256,6 +256,12 @@
256 256
 .ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view {
257 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 265
 .ShouYe > view.flex-item > .PageContainer .Content > view > .OwnerContainer > view .OwnerList > view text {
260 266
   display: block;
261 267
   width: 100%;
@@ -264,12 +270,6 @@
264 270
   color: #333;
265 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 273
 .ShouYe > view.flex-item > .PageContainer .Content > view > .NewsContainer {
274 274
   padding: 0 30px;
275 275
   position: relative;

+ 7
- 6
src/pages/ShouYe/index.jsx Ver arquivo

@@ -18,11 +18,11 @@ export default function Index (props) {
18 18
 
19 19
   const { user } = useModel('user')
20 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 27
   const [NavList] = useState([
28 28
     { icon: 'iconhuodong1', name: '活动', id: 1, router: '/pages/ShouYe/HuoDong/index', isTab: false },
@@ -263,7 +263,8 @@ export default function Index (props) {
263 263
                         {
264 264
                           OwnerList.map((item, index) => (
265 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 268
                               <view>
268 269
                                 <view><Text>{item.name}</Text></view>
269 270
                               </view>

+ 7
- 7
src/pages/ShouYe/index.less Ver arquivo

@@ -330,6 +330,13 @@
330 330
                   >view {
331 331
                     position: relative;
332 332
 
333
+                    image {
334
+                      height: 60px;
335
+                      width: auto;
336
+                      display: block;
337
+                      margin: 0 auto 10px;
338
+                    }
339
+
333 340
                     text {
334 341
                       display: block;
335 342
                       width: 100%;
@@ -337,13 +344,6 @@
337 344
                       font-size: 26px;
338 345
                       color: #333;
339 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
                 }