diff --git a/src/components/PageFooter/PageFooter.tsx b/src/components/PageFooter/PageFooter.tsx
index b707b94..fb475f2 100644
--- a/src/components/PageFooter/PageFooter.tsx
+++ b/src/components/PageFooter/PageFooter.tsx
@@ -1,11 +1,16 @@
import { View } from '@tarojs/components';
import { AtDivider } from 'taro-ui';
+import pt from '@/plain-text';
export default () => {
const blankHeight = 120;
return (
-
+
);
diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx
index fd16fd2..b2bf6a4 100644
--- a/src/pages/index/index.tsx
+++ b/src/pages/index/index.tsx
@@ -4,6 +4,7 @@ import Taro from '@tarojs/taro';
import { AtCard, AtTimeline, AtAccordion } from 'taro-ui';
import type CustomTabBar from '@/custom-tab-bar';
import PageFooter from '@/components/PageFooter/PageFooter';
+import pt from '@/plain-text';
import './index.scss';
interface CardContent {
@@ -65,14 +66,7 @@ class StepInfo extends Component {
render(): ReactNode {
return (
-
+
);
}
@@ -82,14 +76,7 @@ class TipsInfo extends Component {
render(): ReactNode {
return (
-
+
);
}
@@ -98,19 +85,19 @@ class TipsInfo extends Component {
export default class Index extends Component {
state = {
dutyInfoCard: {
- title: '204值班情况',
+ title: pt.get().mainPage.cardTitle.dutyInfo,
note: 'Tips',
extra: '额外信息',
content: ,
},
stepInfoCard: {
- title: '维修步骤',
+ title: pt.get().mainPage.cardTitle.stepInfo,
note: 'Tips 请在20:30以前取走自己的物品哦',
extra: '额外信息',
content: ,
},
tipsInfoCard: {
- title: '注意事项',
+ title: pt.get().mainPage.cardTitle.tipsInfo,
note: 'Tips',
extra: '额外信息',
content: ,
@@ -126,20 +113,21 @@ export default class Index extends Component {
// 以上是TabBar相关
render(): ReactNode {
+ const mainPage = pt.get().mainPage;
return (
- 您好,这里是E志者协会。
- 维修请移步东三-204教室。
+ {mainPage.mainTitleLine}
+ {mainPage.subTitleLine}
{mainPageCard(this.state.dutyInfoCard)}