Compare commits
No commits in common. "21e21f272fc1037b76f5eaaea2785dcc17dcd95f" and "54091bb6b327260ce1ad5846f47f4a741b292aba" have entirely different histories.
21e21f272f
...
54091bb6b3
|
|
@ -3,11 +3,8 @@ export default defineAppConfig({
|
||||||
'pages/index/index',
|
'pages/index/index',
|
||||||
'pages/repair/repair',
|
'pages/repair/repair',
|
||||||
'pages/user/user',
|
'pages/user/user',
|
||||||
'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',
|
|
||||||
],
|
],
|
||||||
window: {
|
window: {
|
||||||
backgroundTextStyle: 'light',
|
backgroundTextStyle: 'light',
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ export default class InformPage extends Component {
|
||||||
state = {
|
state = {
|
||||||
phone: '',
|
phone: '',
|
||||||
name: '',
|
name: '',
|
||||||
isLoading: false,
|
|
||||||
};
|
};
|
||||||
handleChangePhone(phone: string) {
|
handleChangePhone(phone: string) {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
@ -21,13 +20,7 @@ export default class InformPage extends Component {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.setState({
|
|
||||||
isLoading: true,
|
|
||||||
});
|
|
||||||
console.log(this.state.name, this.state.phone);
|
console.log(this.state.name, this.state.phone);
|
||||||
this.setState({
|
|
||||||
isLoading: false,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
onReset() {
|
onReset() {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
@ -59,16 +52,8 @@ export default class InformPage extends Component {
|
||||||
value={this.state.name}
|
value={this.state.name}
|
||||||
onChange={this.handleChangeName.bind(this)}
|
onChange={this.handleChangeName.bind(this)}
|
||||||
/>
|
/>
|
||||||
<AtButton
|
<AtButton formType='submit'>提交</AtButton>
|
||||||
loading={this.state.isLoading}
|
<AtButton formType='reset'>重置</AtButton>
|
||||||
formType='submit'
|
|
||||||
type='primary'
|
|
||||||
>
|
|
||||||
提交
|
|
||||||
</AtButton>
|
|
||||||
<AtButton formType='reset' type='secondary'>
|
|
||||||
清空
|
|
||||||
</AtButton>
|
|
||||||
</AtForm>
|
</AtForm>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
export default definePageConfig({
|
|
||||||
usingComponents: {},
|
|
||||||
});
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
import { Component, ReactNode } from 'react';
|
|
||||||
import './myTicket.scss';
|
|
||||||
import { View } from '@tarojs/components';
|
|
||||||
|
|
||||||
export default class SettingsPage extends Component {
|
|
||||||
render(): ReactNode {
|
|
||||||
return <View></View>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
export default definePageConfig({
|
|
||||||
usingComponents: {},
|
|
||||||
});
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
import { AtTextarea, AtButton, AtForm } from 'taro-ui';
|
|
||||||
import { Component, ReactNode } from 'react';
|
|
||||||
import './report.scss';
|
|
||||||
|
|
||||||
export default class SettingsPage extends Component {
|
|
||||||
state = {
|
|
||||||
report: '',
|
|
||||||
isLoading: false,
|
|
||||||
};
|
|
||||||
handleChange(report: string) {
|
|
||||||
this.setState({
|
|
||||||
report,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
onSubmit() {
|
|
||||||
this.setState({
|
|
||||||
isLoading: true,
|
|
||||||
});
|
|
||||||
console.log(this.state.report);
|
|
||||||
this.setState({
|
|
||||||
isLoading: false,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
onReset() {
|
|
||||||
this.setState({
|
|
||||||
Report: '',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
render(): ReactNode {
|
|
||||||
return (
|
|
||||||
<AtForm
|
|
||||||
onSubmit={this.onSubmit.bind(this)}
|
|
||||||
onReset={this.onReset.bind(this)}
|
|
||||||
>
|
|
||||||
<AtTextarea
|
|
||||||
value={this.state.report}
|
|
||||||
onChange={this.handleChange.bind(this)}
|
|
||||||
maxLength={200}
|
|
||||||
placeholder='无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!'
|
|
||||||
/>
|
|
||||||
<AtButton
|
|
||||||
loading={this.state.isLoading}
|
|
||||||
formType='submit'
|
|
||||||
type='primary'
|
|
||||||
>
|
|
||||||
提交
|
|
||||||
</AtButton>
|
|
||||||
<AtButton formType='reset' type='secondary'>
|
|
||||||
清空
|
|
||||||
</AtButton>
|
|
||||||
</AtForm>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
export default definePageConfig({
|
|
||||||
usingComponents: {},
|
|
||||||
});
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
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,30 +1,10 @@
|
||||||
import { AtButton } from 'taro-ui';
|
|
||||||
import { Component, ReactNode } from 'react';
|
|
||||||
import './settings.scss';
|
|
||||||
import Taro from '@tarojs/taro';
|
|
||||||
import { View } from '@tarojs/components';
|
import { View } from '@tarojs/components';
|
||||||
|
import { Component, ReactNode } from 'react';
|
||||||
|
import Taro from '@tarojs/taro';
|
||||||
|
import './settings.scss';
|
||||||
|
|
||||||
export default class SettingsPage extends Component {
|
export default class SettingsPage extends Component {
|
||||||
handleQuit() {
|
|
||||||
console.log('Quit');
|
|
||||||
}
|
|
||||||
|
|
||||||
handleAbout() {
|
|
||||||
Taro.navigateTo({
|
|
||||||
url: '/pages/user/settings/about/about',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
render(): ReactNode {
|
render(): ReactNode {
|
||||||
return (
|
return <View></View>;
|
||||||
<View>
|
|
||||||
<AtButton type='secondary' onClick={this.handleAbout.bind(this)}>
|
|
||||||
关于 EVA Notify
|
|
||||||
</AtButton>
|
|
||||||
|
|
||||||
<AtButton type='primary' onClick={this.handleQuit.bind(this)}>
|
|
||||||
退出账号
|
|
||||||
</AtButton>
|
|
||||||
</View>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,6 @@ export default class UserPage extends Component {
|
||||||
}
|
}
|
||||||
// 以上是TabBar相关
|
// 以上是TabBar相关
|
||||||
|
|
||||||
myTicketPage() {
|
|
||||||
Taro.navigateTo({
|
|
||||||
url: '/pages/user/myTicket/myTicket',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
informPage() {
|
informPage() {
|
||||||
Taro.navigateTo({
|
Taro.navigateTo({
|
||||||
url: '/pages/user/inform/inform',
|
url: '/pages/user/inform/inform',
|
||||||
|
|
@ -32,23 +26,10 @@ export default class UserPage extends Component {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
reportPage() {
|
|
||||||
Taro.navigateTo({
|
|
||||||
url: '/pages/user/report/report',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
render(): ReactNode {
|
render(): ReactNode {
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
<AtList>
|
<AtList>
|
||||||
<AtListItem
|
|
||||||
title='我的工单'
|
|
||||||
note='在这里查看历史工单!'
|
|
||||||
arrow='right'
|
|
||||||
iconInfo={{ size: 25, color: '#E69966', value: 'clock' }}
|
|
||||||
onClick={this.myTicketPage}
|
|
||||||
/>
|
|
||||||
<AtListItem
|
<AtListItem
|
||||||
title='我的信息'
|
title='我的信息'
|
||||||
note='能帮助亦可更好地找到你哦!'
|
note='能帮助亦可更好地找到你哦!'
|
||||||
|
|
@ -61,17 +42,9 @@ export default class UserPage extends Component {
|
||||||
note='配置小程序'
|
note='配置小程序'
|
||||||
extraText=''
|
extraText=''
|
||||||
arrow='right'
|
arrow='right'
|
||||||
iconInfo={{ size: 25, color: '#808080', value: 'filter' }}
|
iconInfo={{ size: 25, color: '#FF4949', value: 'filter' }}
|
||||||
onClick={this.settingsPage}
|
onClick={this.settingsPage}
|
||||||
/>
|
/>
|
||||||
<AtListItem
|
|
||||||
title='意见反馈'
|
|
||||||
note='有什么想说的都可以告诉我们哦!'
|
|
||||||
extraText=''
|
|
||||||
arrow='right'
|
|
||||||
iconInfo={{ size: 25, color: '#9ACD32', value: 'message' }}
|
|
||||||
onClick={this.reportPage}
|
|
||||||
/>
|
|
||||||
</AtList>
|
</AtList>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue