Compare commits
No commits in common. "1907f1e9677af3278320158d9938644da7f002b8" and "a7fd2b2856f9f6b7f8678b95c09883ec735458d6" have entirely different histories.
1907f1e967
...
a7fd2b2856
113
mock/api.ts
113
mock/api.ts
|
|
@ -1,117 +1,8 @@
|
|||
import userinfo from './userinfo.json';
|
||||
import lang from './lang.json';
|
||||
import report from './report.json';
|
||||
import newComment from './newComment.json';
|
||||
import ticket from './ticket.json';
|
||||
|
||||
export default {
|
||||
'GET /dutyinfo': {
|
||||
'GET /testdata': {
|
||||
success: true,
|
||||
data: {
|
||||
token: 'token_test',
|
||||
isInDuty: true,
|
||||
inDutyCnt: 3,
|
||||
currentDuty: '2',
|
||||
test: 'test',
|
||||
},
|
||||
},
|
||||
'GET /user/info': {
|
||||
success: true,
|
||||
data: {
|
||||
token: 'token_test',
|
||||
name: '马保国',
|
||||
phone: 13333333333,
|
||||
},
|
||||
},
|
||||
'POST /user/update': {
|
||||
file: userinfo,
|
||||
},
|
||||
'GET /user/locale/get': {
|
||||
success: true,
|
||||
data: {
|
||||
token: 'token_test',
|
||||
lang: 'zn_CN',
|
||||
},
|
||||
},
|
||||
'POST /user/locale/update': {
|
||||
file: lang,
|
||||
},
|
||||
'POST /report': {
|
||||
file: report,
|
||||
},
|
||||
'GET /user/mytickets': {
|
||||
success: true,
|
||||
data: {
|
||||
list: [
|
||||
{
|
||||
id: 6830,
|
||||
type: 1,
|
||||
status: 5,
|
||||
device: '主机',
|
||||
deviceModel: '技嘉',
|
||||
owner: '武技栏',
|
||||
phone: '18888888888',
|
||||
createdTime: '2024-03-06T19:49:27.043865',
|
||||
isConfirmed: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
'GET /tickets/info/': {
|
||||
success: true,
|
||||
data: {
|
||||
id: 6847,
|
||||
type: 1,
|
||||
device: '华硕',
|
||||
deviceModel: '灵耀X14',
|
||||
owner: '唐姐姐',
|
||||
phone: '15555555555',
|
||||
description: '清灰',
|
||||
workers: [],
|
||||
createdTime: '2024-03-07T19:52:48.523303',
|
||||
status: 5,
|
||||
isConfirmed: false,
|
||||
notes: [
|
||||
{
|
||||
avatar: 'https://....jpg',
|
||||
id: 21368,
|
||||
op: '宇航员',
|
||||
type: 0,
|
||||
content: '',
|
||||
createdTime: '2024-03-07T19:52:48.523305',
|
||||
},
|
||||
{
|
||||
avatar: 'https://....jpg',
|
||||
id: 21370,
|
||||
op: '宇航员',
|
||||
type: 2,
|
||||
content: '1',
|
||||
createdTime: '2024-03-07T19:58:27.838816',
|
||||
},
|
||||
{
|
||||
avatar: 'https://....jpg',
|
||||
id: 21373,
|
||||
op: '宇航员',
|
||||
type: 2,
|
||||
content: '4',
|
||||
createdTime: '2024-03-07T20:28:12.070707',
|
||||
},
|
||||
{
|
||||
avatar: 'https://....jpg',
|
||||
id: 21374,
|
||||
op: '宇航员',
|
||||
type: 2,
|
||||
content: '5',
|
||||
createdTime: '2024-03-07T20:30:15.770486',
|
||||
},
|
||||
],
|
||||
accessories: [2],
|
||||
picked: false,
|
||||
},
|
||||
},
|
||||
'POST /tickets/newcomment': {
|
||||
file: newComment,
|
||||
},
|
||||
'POST /tickets/create': {
|
||||
file: ticket,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"token": "token_test",
|
||||
"lang": "en_US"
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"token": "token_test",
|
||||
"content": "这是一条评论"
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"token": "token_test",
|
||||
"content": "aaa bbbb cccc"
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"token": "token_test",
|
||||
"type": 1,
|
||||
"device": "华硕",
|
||||
"deviceModel": "天选3",
|
||||
"owner": "西西弗",
|
||||
"phone": "12333333333",
|
||||
"description": "没法用pd充电",
|
||||
"accessories": [0]
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"name": "宇航员",
|
||||
"phone": "12333332103"
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 MiB |
|
|
@ -1,24 +1,17 @@
|
|||
import { View, Text } from '@tarojs/components';
|
||||
import { View } from '@tarojs/components';
|
||||
import { AtDivider } from 'taro-ui';
|
||||
import pt from '@/plain-text';
|
||||
|
||||
export default () => {
|
||||
const blankHeightUpper = 15;
|
||||
const blankHeightLower = 110;
|
||||
const blankHeight = 120;
|
||||
return (
|
||||
<View>
|
||||
<View style={{ height: blankHeightUpper }}></View>
|
||||
<View>
|
||||
<AtDivider
|
||||
content={pt.get().pageFooter.dividerText}
|
||||
fontColor='#dddddd'
|
||||
lineColor='#dddddd'
|
||||
/>
|
||||
</View>
|
||||
<View className='at-row at-row__justify--center'>
|
||||
<Text style='color:#dddddd;'>© 2024 EVA Tech</Text>
|
||||
</View>
|
||||
<View style={{ height: blankHeightLower }}></View>
|
||||
<AtDivider
|
||||
content={pt.get().pageFooter.dividerText}
|
||||
fontColor='#dddddd'
|
||||
lineColor='#dddddd'
|
||||
/>
|
||||
<View style={{ height: blankHeight }}></View>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
import { AtList, AtListItem } from 'taro-ui';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import { View, Picker, Image, Text } from '@tarojs/components';
|
||||
import { View, Picker } from '@tarojs/components';
|
||||
import Taro from '@tarojs/taro';
|
||||
import type CustomTabBar from '@/custom-tab-bar';
|
||||
import PageFooter from '@/components/PageFooter/PageFooter';
|
||||
import aboutIcon from '@/assets/icons/AboutPage/about.svg';
|
||||
import pt, { Lang } from '@/plain-text';
|
||||
import logo from '@/assets/images/UserPage/logo.png';
|
||||
import './user.scss';
|
||||
|
||||
export default class UserPage extends Component {
|
||||
|
|
@ -68,18 +67,6 @@ export default class UserPage extends Component {
|
|||
render(): ReactNode {
|
||||
return (
|
||||
<View>
|
||||
<View
|
||||
className='at-row at-row__justify--center at-row__align--end'
|
||||
style='height:110px;'
|
||||
>
|
||||
<Image style='width: 100px;height: 100px;' src={logo} />
|
||||
</View>
|
||||
<View
|
||||
className='at-row at-row__justify--center at-row__align--center'
|
||||
style='height:60px;color:#696969;'
|
||||
>
|
||||
<Text> EVA Notify v0.0.1</Text>
|
||||
</View>
|
||||
<AtList>
|
||||
<AtListItem
|
||||
title={pt.get().userPage.ticketColumn.title}
|
||||
|
|
@ -111,7 +98,6 @@ export default class UserPage extends Component {
|
|||
thumb={aboutIcon}
|
||||
onClick={this.aboutPage}
|
||||
/>
|
||||
<View style={{ height: 20 }}></View>
|
||||
<Picker
|
||||
mode='selector'
|
||||
range={this.state.selector}
|
||||
|
|
|
|||
Loading…
Reference in New Issue