xcx 4 lat temu
rodzic
commit
fcb1d59b36
3 zmienionych plików z 10 dodań i 8 usunięć
  1. 2
    2
      src/app.config.js
  2. 2
    1
      src/pages/WoDe/index.config.js
  3. 6
    5
      src/pages/WoDe/index.jsx

+ 2
- 2
src/app.config.js Wyświetl plik

@@ -1,10 +1,10 @@
1 1
 export default {
2 2
   pages: [
3
-    'pages/FuLi/index',
3
+    'pages/WoDe/index',
4 4
     'pages/ShouYe/index',
5 5
     'pages/WuYe/index',
6 6
     'pages/HuoDong/index',
7
-    'pages/WoDe/index'
7
+    'pages/FuLi/index',
8 8
   ],
9 9
   tabBar: {
10 10
     color: '#666666',

+ 2
- 1
src/pages/WoDe/index.config.js Wyświetl plik

@@ -1,3 +1,4 @@
1 1
 export default {
2
-  navigationBarTitleText: '首页'
2
+  navigationStyle: 'custom',
3
+  navigationBarTextStyle: 'white'
3 4
 }

+ 6
- 5
src/pages/WoDe/index.jsx Wyświetl plik

@@ -1,8 +1,9 @@
1 1
 import React, { Component } from 'react'
2
-import { View, Text } from '@tarojs/components'
2
+import '../../assets/css/reset.less'
3
+import '../../assets/css/iconfont.less'
3 4
 import './index.less'
4 5
 
5
-export default class Index extends Component {
6
+export default class WoDe extends Component {
6 7
 
7 8
   componentWillMount () { }
8 9
 
@@ -16,9 +17,9 @@ export default class Index extends Component {
16 17
 
17 18
   render () {
18 19
     return (
19
-      <View className='index'>
20
-        <Text>Hello world!</Text>
21
-      </View>
20
+      <view className='WoDe'>
21
+
22
+      </view>
22 23
     )
23 24
   }
24 25
 }