add about page
parent
a408ac9e39
commit
21e21f272f
|
|
@ -6,6 +6,7 @@ export default defineAppConfig({
|
|||
'pages/user/myTicket/myTicket',
|
||||
'pages/user/inform/inform',
|
||||
'pages/user/settings/settings',
|
||||
'pages/user/settings/about/about',
|
||||
'pages/user/report/report',
|
||||
],
|
||||
window: {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
export default definePageConfig({
|
||||
usingComponents: {},
|
||||
});
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import { Component, ReactNode } from 'react';
|
||||
import './about.scss';
|
||||
import { View } from '@tarojs/components';
|
||||
|
||||
export default class SettingsPage extends Component {
|
||||
render(): ReactNode {
|
||||
return <View></View>;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +1,30 @@
|
|||
import { AtButton } from 'taro-ui';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import './settings.scss';
|
||||
import Taro from '@tarojs/taro';
|
||||
import { View } from '@tarojs/components';
|
||||
|
||||
export default class SettingsPage extends Component {
|
||||
handleQuit() {
|
||||
console.log('Quit');
|
||||
}
|
||||
|
||||
handleAbout() {
|
||||
Taro.navigateTo({
|
||||
url: '/pages/user/settings/about/about',
|
||||
});
|
||||
}
|
||||
render(): ReactNode {
|
||||
return (
|
||||
<AtButton type='primary' onClick={this.handleQuit.bind(this)}>
|
||||
退出账号
|
||||
</AtButton>
|
||||
<View>
|
||||
<AtButton type='secondary' onClick={this.handleAbout.bind(this)}>
|
||||
关于 EVA Notify
|
||||
</AtButton>
|
||||
|
||||
<AtButton type='primary' onClick={this.handleQuit.bind(this)}>
|
||||
退出账号
|
||||
</AtButton>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue