Compare commits
No commits in common. "1a30ff6def4f5a18f6b54b7a0a811552e948720b" and "d995c6ed43c856d55ed16040051b9597379e12b5" have entirely different histories.
1a30ff6def
...
d995c6ed43
|
|
@ -2,7 +2,6 @@ import { AtTextarea, AtButton, AtForm, AtMessage } from 'taro-ui';
|
||||||
import { Component, ReactNode } from 'react';
|
import { Component, ReactNode } from 'react';
|
||||||
import './report.scss';
|
import './report.scss';
|
||||||
import Taro from '@tarojs/taro';
|
import Taro from '@tarojs/taro';
|
||||||
import pt from '@/plain-text';
|
|
||||||
|
|
||||||
export default class SettingsPage extends Component {
|
export default class SettingsPage extends Component {
|
||||||
state = {
|
state = {
|
||||||
|
|
@ -50,7 +49,7 @@ export default class SettingsPage extends Component {
|
||||||
value={this.state.report}
|
value={this.state.report}
|
||||||
onChange={this.handleChange.bind(this)}
|
onChange={this.handleChange.bind(this)}
|
||||||
maxLength={200}
|
maxLength={200}
|
||||||
placeholder={pt.get().reportPage.placeHolderText}
|
placeholder='无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!'
|
||||||
/>
|
/>
|
||||||
<AtButton
|
<AtButton
|
||||||
loading={this.state.isLoading}
|
loading={this.state.isLoading}
|
||||||
|
|
@ -58,10 +57,10 @@ export default class SettingsPage extends Component {
|
||||||
type='primary'
|
type='primary'
|
||||||
disabled={this.state.isDisable}
|
disabled={this.state.isDisable}
|
||||||
>
|
>
|
||||||
{pt.get().reportPage.submitText}
|
提交
|
||||||
</AtButton>
|
</AtButton>
|
||||||
<AtButton formType='reset' type='secondary'>
|
<AtButton formType='reset' type='secondary'>
|
||||||
{pt.get().reportPage.resetText}
|
清空
|
||||||
</AtButton>
|
</AtButton>
|
||||||
</AtForm>
|
</AtForm>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -58,11 +58,11 @@ export default class SettingsPage extends Component {
|
||||||
</Picker>
|
</Picker>
|
||||||
</View>
|
</View>
|
||||||
<AtButton type='secondary' onClick={this.handleAbout.bind(this)}>
|
<AtButton type='secondary' onClick={this.handleAbout.bind(this)}>
|
||||||
{pt.get().settingsPage.aboutText}
|
关于 EVA Notify
|
||||||
</AtButton>
|
</AtButton>
|
||||||
|
|
||||||
<AtButton type='primary' onClick={this.handleQuit.bind(this)}>
|
<AtButton type='primary' onClick={this.handleQuit.bind(this)}>
|
||||||
{pt.get().settingsPage.quitText}
|
退出账号
|
||||||
</AtButton>
|
</AtButton>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
export interface ReportPageText {
|
|
||||||
placeHolderText: string;
|
|
||||||
submitText: string;
|
|
||||||
resetText: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const reportPageZhCn: ReportPageText = {
|
|
||||||
placeHolderText:
|
|
||||||
'无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!',
|
|
||||||
submitText: '提交',
|
|
||||||
resetText: '清空',
|
|
||||||
};
|
|
||||||
|
|
||||||
export const reportPageEnUs: ReportPageText = {
|
|
||||||
placeHolderText:
|
|
||||||
'无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!',
|
|
||||||
submitText: 'Submit',
|
|
||||||
resetText: 'Reset',
|
|
||||||
};
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
export interface SettingsPageText {
|
|
||||||
aboutText: string;
|
|
||||||
quitText: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const settingsPageZhCn: SettingsPageText = {
|
|
||||||
aboutText: '关于 EVA Notify',
|
|
||||||
quitText: '退出账号',
|
|
||||||
};
|
|
||||||
|
|
||||||
export const settingsPageEnUs: SettingsPageText = {
|
|
||||||
aboutText: 'About EVA Notify',
|
|
||||||
quitText: 'Log Out',
|
|
||||||
};
|
|
||||||
|
|
@ -2,20 +2,12 @@ import { PageFooterText, pageFooterZhCn, pageFooterEnUs } from './PageFooter';
|
||||||
import { MainPageText, mainPageZhCn, mainPageEnUs } from './MainPage';
|
import { MainPageText, mainPageZhCn, mainPageEnUs } from './MainPage';
|
||||||
import { UserPageText, userPageZhCn, userPageEnUs } from './UserPage';
|
import { UserPageText, userPageZhCn, userPageEnUs } from './UserPage';
|
||||||
import { TabBarText, tabBarEnUs, tabBarZhCn } from './TabBar';
|
import { TabBarText, tabBarEnUs, tabBarZhCn } from './TabBar';
|
||||||
import {
|
|
||||||
SettingsPageText,
|
|
||||||
settingsPageEnUs,
|
|
||||||
settingsPageZhCn,
|
|
||||||
} from './SettingsPage';
|
|
||||||
import { ReportPageText, reportPageEnUs, reportPageZhCn } from './ReportPage';
|
|
||||||
|
|
||||||
interface TextRecord {
|
interface TextRecord {
|
||||||
pageFooter: PageFooterText;
|
pageFooter: PageFooterText;
|
||||||
mainPage: MainPageText;
|
mainPage: MainPageText;
|
||||||
userPage: UserPageText;
|
userPage: UserPageText;
|
||||||
tabBar: TabBarText;
|
tabBar: TabBarText;
|
||||||
settingsPage: SettingsPageText;
|
|
||||||
reportPage: ReportPageText;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const textZhCn: TextRecord = {
|
const textZhCn: TextRecord = {
|
||||||
|
|
@ -23,8 +15,6 @@ const textZhCn: TextRecord = {
|
||||||
mainPage: mainPageZhCn,
|
mainPage: mainPageZhCn,
|
||||||
userPage: userPageZhCn,
|
userPage: userPageZhCn,
|
||||||
tabBar: tabBarZhCn,
|
tabBar: tabBarZhCn,
|
||||||
settingsPage: settingsPageZhCn,
|
|
||||||
reportPage: reportPageZhCn,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const textEnUs: TextRecord = {
|
const textEnUs: TextRecord = {
|
||||||
|
|
@ -32,8 +22,6 @@ const textEnUs: TextRecord = {
|
||||||
mainPage: mainPageEnUs,
|
mainPage: mainPageEnUs,
|
||||||
userPage: userPageEnUs,
|
userPage: userPageEnUs,
|
||||||
tabBar: tabBarEnUs,
|
tabBar: tabBarEnUs,
|
||||||
settingsPage: settingsPageEnUs,
|
|
||||||
reportPage: reportPageEnUs,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// type Lang = 'zh_CN' | 'en_US' | ...;
|
// type Lang = 'zh_CN' | 'en_US' | ...;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue