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