add ticketList in mainpage
parent
e1075c154b
commit
079afea2e0
|
|
@ -0,0 +1 @@
|
||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1710991023487" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12657" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24"><path d="M512 42.666667q95.658667 0 182.485333 37.162667t149.674667 100.010667 100.010667 149.674667 37.162667 182.485333-37.162667 182.485333-100.010667 149.674667-149.674667 100.010667-182.485333 37.162667-182.485333-37.162667-149.674667-100.010667-100.010667-149.674667-37.162667-182.485333 37.162667-182.485333 100.010667-149.674667 149.674667-100.010667 182.485333-37.162667zM512 128q-77.994667 0-149.162667 30.506667t-122.496 81.834667-81.834667 122.496-30.506667 149.162667 30.506667 149.162667 81.834667 122.496 122.496 81.834667 149.162667 30.506667 149.162667-30.506667 122.496-81.834667 81.834667-122.496 30.506667-149.162667-30.506667-149.162667-81.834667-122.496-122.496-81.834667-149.162667-30.506667zM512 213.333333q17.664 0 30.165333 12.501333t12.501333 30.165333l0 238.336 115.669333 115.328q12.330667 12.330667 12.330667 30.336t-12.330667 30.336-30.336 12.330667-30.336-12.330667l-128-128q-12.330667-12.330667-12.330667-30.336l0-256q0-17.664 12.501333-30.165333t30.165333-12.501333z" fill="#E69966" p-id="12658"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -1,7 +1,15 @@
|
||||||
import { View } from '@tarojs/components';
|
import { View } from '@tarojs/components';
|
||||||
import { Component, ReactNode } from 'react';
|
import { Component, ReactNode } from 'react';
|
||||||
import Taro from '@tarojs/taro';
|
import Taro from '@tarojs/taro';
|
||||||
import { AtCard, AtAccordion, AtInputNumber, AtButton, AtList } from 'taro-ui';
|
import {
|
||||||
|
AtCard,
|
||||||
|
AtAccordion,
|
||||||
|
AtInputNumber,
|
||||||
|
AtButton,
|
||||||
|
AtList,
|
||||||
|
AtListItem,
|
||||||
|
} from 'taro-ui';
|
||||||
|
import clockIcon from '@/assets/icons/MainPage/clock.svg';
|
||||||
import type CustomTabBar from '@/custom-tab-bar';
|
import type CustomTabBar from '@/custom-tab-bar';
|
||||||
import PageFooter from '@/components/PageFooter/PageFooter';
|
import PageFooter from '@/components/PageFooter/PageFooter';
|
||||||
import pt from '@/plain-text';
|
import pt from '@/plain-text';
|
||||||
|
|
@ -165,6 +173,12 @@ export default class MainPage extends Component<{}, MainPageState> {
|
||||||
}, submitInterval);
|
}, submitInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ticketListPage() {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: '/pages/user/report/report',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
render(): ReactNode {
|
render(): ReactNode {
|
||||||
const mainPage = pt.get().mainPage;
|
const mainPage = pt.get().mainPage;
|
||||||
const memberPage = pt.get().memberPage;
|
const memberPage = pt.get().memberPage;
|
||||||
|
|
@ -238,7 +252,18 @@ export default class MainPage extends Component<{}, MainPageState> {
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
{wechatUser.getAccess() ? (
|
{wechatUser.getAccess() ? (
|
||||||
|
<View>
|
||||||
<AtList>{fixListRenderer}</AtList>
|
<AtList>{fixListRenderer}</AtList>
|
||||||
|
<AtList>
|
||||||
|
<AtListItem
|
||||||
|
title={pt.get().mainPage.ticketList.title}
|
||||||
|
note={pt.get().mainPage.ticketList.note}
|
||||||
|
arrow='right'
|
||||||
|
thumb={clockIcon}
|
||||||
|
onClick={this.ticketListPage}
|
||||||
|
/>
|
||||||
|
</AtList>
|
||||||
|
</View>
|
||||||
) : (
|
) : (
|
||||||
<View></View>
|
<View></View>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,11 @@ export interface MainPageText {
|
||||||
stepList: Array<{ title: string }>;
|
stepList: Array<{ title: string }>;
|
||||||
tipsList: Array<{ title: string }>;
|
tipsList: Array<{ title: string }>;
|
||||||
|
|
||||||
|
ticketList: {
|
||||||
|
title: string;
|
||||||
|
note: string;
|
||||||
|
};
|
||||||
|
|
||||||
dutyCard: {
|
dutyCard: {
|
||||||
offDuty: {
|
offDuty: {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
@ -71,6 +76,10 @@ export const mainPageZhCn: MainPageText = {
|
||||||
{ title: '204 也是实验室,请勿在内饮食~' },
|
{ title: '204 也是实验室,请勿在内饮食~' },
|
||||||
{ title: '我们是志愿服务,不收取任何礼物哦~' },
|
{ title: '我们是志愿服务,不收取任何礼物哦~' },
|
||||||
],
|
],
|
||||||
|
ticketList: {
|
||||||
|
title: '预填写工单列表',
|
||||||
|
note: '在这里查看所有的预填写工单!',
|
||||||
|
},
|
||||||
dutyCard: {
|
dutyCard: {
|
||||||
offDuty: {
|
offDuty: {
|
||||||
title: '未值班',
|
title: '未值班',
|
||||||
|
|
@ -132,6 +141,10 @@ export const mainPageEnUs: MainPageText = {
|
||||||
{ title: '204 is also a laboratory. Do not eat inside.' },
|
{ title: '204 is also a laboratory. Do not eat inside.' },
|
||||||
{ title: 'We are volunteers and do not take any gifts.' },
|
{ title: 'We are volunteers and do not take any gifts.' },
|
||||||
],
|
],
|
||||||
|
ticketList: {
|
||||||
|
title: '预填写工单列表',
|
||||||
|
note: '在这里查看所有的预填写工单!',
|
||||||
|
},
|
||||||
dutyCard: {
|
dutyCard: {
|
||||||
offDuty: {
|
offDuty: {
|
||||||
title: 'Off Duty',
|
title: 'Off Duty',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue