Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeekTeacherWork
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
GeekTeacherWork
Commits
6f9f1938
Commit
6f9f1938
authored
Nov 27, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
68ac68b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
index.tsx
src/pages/geek-correct-list/index.tsx
+6
-2
index.ts
src/service/index.ts
+2
-2
No files found.
src/pages/geek-correct-list/index.tsx
View file @
6f9f1938
...
@@ -36,7 +36,7 @@ const CorrectList = ({ navigation }: CorrectListType) => {
...
@@ -36,7 +36,7 @@ const CorrectList = ({ navigation }: CorrectListType) => {
{
{
title
:
'拍照'
,
title
:
'拍照'
,
mediaType
:
'photo'
,
mediaType
:
'photo'
,
videoQuality
:
'
medium
'
,
videoQuality
:
'
low
'
,
},
},
async
(
res
)
=>
{
async
(
res
)
=>
{
const
{
uri
,
didCancel
}
=
res
||
{};
const
{
uri
,
didCancel
}
=
res
||
{};
...
@@ -47,6 +47,10 @@ const CorrectList = ({ navigation }: CorrectListType) => {
...
@@ -47,6 +47,10 @@ const CorrectList = ({ navigation }: CorrectListType) => {
if
(
uri
)
{
if
(
uri
)
{
const
data
=
await
uploadImage
(
uri
);
const
data
=
await
uploadImage
(
uri
);
Toast
.
hideLoading
();
Toast
.
hideLoading
();
if
(
!
data
)
{
Toast
.
msg
(
'未识别,请重拍!!!'
);
return
;
}
toHomeWorkDetail
(
data
.
onlineHomeworkImageId
||
''
);
toHomeWorkDetail
(
data
.
onlineHomeworkImageId
||
''
);
}
}
},
},
...
@@ -55,7 +59,7 @@ const CorrectList = ({ navigation }: CorrectListType) => {
...
@@ -55,7 +59,7 @@ const CorrectList = ({ navigation }: CorrectListType) => {
const
toHomeWorkDetail
=
useCallback
((
id
:
number
|
string
)
=>
{
const
toHomeWorkDetail
=
useCallback
((
id
:
number
|
string
)
=>
{
navigate
.
navigateGeekWebViewPage
({
navigate
.
navigateGeekWebViewPage
({
uri
:
`http://192.168.44.178:300
0
/mobile-webview/#/home-workcorrect/
${
id
}
`
,
uri
:
`http://192.168.44.178:300
1
/mobile-webview/#/home-workcorrect/
${
id
}
`
,
useToken
:
true
,
useToken
:
true
,
initTitle
:
'作业批阅'
,
initTitle
:
'作业批阅'
,
});
});
...
...
src/service/index.ts
View file @
6f9f1938
...
@@ -17,11 +17,11 @@ httpUtil.setRequestInterceptor(
...
@@ -17,11 +17,11 @@ httpUtil.setRequestInterceptor(
timeout
:
60000
,
timeout
:
60000
,
headers
:
{
headers
:
{
Authorization
:
Authorization
:
'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI
yNTk2ODQiLCJ0ZXJtaW5hbCI6InBjIiwidXVpZCI6IjAyNDlhYjFlNTkxOTRjN2JiYmZkMWY3NDM1ODRiM2U5IiwidGltZXN0YW1wIjoxNjAyMTIzNTM5ODExfQ.4mq0VQJcNZDpOycRmqPgd8van6BuJGSvr32kkw8g9X8
'
,
'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI
zMDgzMzQiLCJ0ZXJtaW5hbCI6InBjIiwidXVpZCI6ImVhNmUyMDYyOWJmNzRiZmJiNjQxNDdkMTE1ZjAyMDhlIiwidGltZXN0YW1wIjoxNjA2MTk4NzMyMTIxfQ.1wct1MCSNeVRLCZuSNNdZMRGiz8vLsuQkURxFcHARgU
'
,
},
},
};
};
},
},
(
eror
)
=>
{},
(
_
eror
)
=>
{},
);
);
httpUtil
.
setResponseInterceptor
(
null
as
any
,
null
as
any
);
httpUtil
.
setResponseInterceptor
(
null
as
any
,
null
as
any
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment