[baozhangchao] 3 vuotta sitten
vanhempi
commit
520a458acc

+ 6
- 17
src/pages/index/index.jsx Näytä tiedosto

1
-import { Component } from 'react'
2
 import { View, Text } from '@tarojs/components'
1
 import { View, Text } from '@tarojs/components'
3
 import './index.less'
2
 import './index.less'
4
 
3
 
5
-export default class Index extends Component {
6
 
4
 
7
-  componentWillMount () { }
8
 
5
 
9
-  componentDidMount () { }
6
+export default (props) => {
10
 
7
 
11
-  componentWillUnmount () { }
12
-
13
-  componentDidShow () { }
14
-
15
-  componentDidHide () { }
16
-
17
-  render () {
18
-    return (
19
-      <View className='index'>
20
-        <Text>测试</Text>
21
-      </View>
22
-    )
23
-  }
8
+  return (
9
+    <View className='index'>
10
+      <Text>测试</Text>
11
+    </View>
12
+  )
24
 }
13
 }

+ 5
- 0
src/pages/test/index.config.js Näytä tiedosto

1
+export default {
2
+  navigationBarTitleText: '我的'
3
+}
4
+
5
+

+ 0
- 0
src/pages/test/index.jsx Näytä tiedosto


+ 1
- 0
src/pages/test/index.less Näytä tiedosto

1
+