xcx преди 4 години
родител
ревизия
fcb1d59b36
променени са 3 файла, в които са добавени 10 реда и са изтрити 8 реда
  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 Целия файл

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

+ 2
- 1
src/pages/WoDe/index.config.js Целия файл

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

+ 6
- 5
src/pages/WoDe/index.jsx Целия файл

1
 import React, { Component } from 'react'
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
 import './index.less'
4
 import './index.less'
4
 
5
 
5
-export default class Index extends Component {
6
+export default class WoDe extends Component {
6
 
7
 
7
   componentWillMount () { }
8
   componentWillMount () { }
8
 
9
 
16
 
17
 
17
   render () {
18
   render () {
18
     return (
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
 }