Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
I
ios-ipad学生端
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄总
ios-ipad学生端
Commits
2cc9aa0d
Commit
2cc9aa0d
authored
Oct 13, 2022
by
zhangkaixuan11
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
d70f6668
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
544 additions
and
539 deletions
+544
-539
Constants.js
Constants.js
+20
-15
android/app/src/main/AndroidManifest.xml
android/app/src/main/AndroidManifest.xml
+1
-1
android/app/src/main/assets/index.android.bundle
android/app/src/main/assets/index.android.bundle
+522
-522
src/homework/woekList/index.tsx
src/homework/woekList/index.tsx
+1
-1
No files found.
Constants.js
View file @
2cc9aa0d
...
...
@@ -22,6 +22,7 @@ const StyleSheet = {
},
};
import
*
as
React
from
'
react
'
;
import
{
constants
}
from
'
buffer
'
;
export
const
navigationRefCon
=
React
.
createRef
();
// debugger
...
...
@@ -41,18 +42,8 @@ setTimeout(e=>{
console
.
log
(
screenWidth
,
screenHeight
,
unitWidth
,
'
unitWidth
'
);
let
fetchCom
=
async
(
url
,
obj
)
=>
{
let
res
=
await
fetch
(
url
,
obj
)
// console.log (res,'fetchCom')
// let body = res.json()
// if(body.respCode == 'E0004'){
// navigate('Login')
// }
// console.log (res,body,'fetchCom')
return
res
}
export
default
{
let
constantsd
=
{
// apiPath: 'http://121.36.221.250:3001/mock/11',
apiPath
:
'
https://gateway.chamning.com
'
,
// apiPath: 'http://121.36.221.250:8060',
...
...
@@ -129,10 +120,7 @@ export default {
return
fetchCom
(
url
,
{
mode
:
'
cors
'
,
credentials
:
'
include
'
,
headers
:
{
token
:
this
.
token
,
tenant
:
'
szVdW4usayB486MYV8U
'
},
});
},
getWithBodyParams
:
function
(
request
)
{
...
...
@@ -351,7 +339,24 @@ export function isIphoneX() {
(
screenHeight
==
896
&&
screenWidth
==
414
))
);
}
let
fetchCom
=
async
(
url
,
obj
)
=>
{
obj
.
headers
=
{
...
obj
.
headers
,
token
:
constantsd
.
token
,
tenant
:
'
szVdW4usayB486MYV8U
'
}
console
.
log
(
'
obj.headers obj.headers
'
,
obj
.
headers
)
let
res
=
await
fetch
(
url
,
obj
)
// console.log (res,'fetchCom')
// let body = res.json()
// if(body.respCode == 'E0004'){
// navigate('Login')
// }
// console.log (res,body,'fetchCom')
return
res
}
export
default
constantsd
;
//状态栏的高度
export
function
getStatusBarHeight
()
{
if
(
Platform
.
OS
===
'
android
'
)
return
StatusBar
.
currentHeight
;
...
...
android/app/src/main/AndroidManifest.xml
View file @
2cc9aa0d
...
...
@@ -36,7 +36,7 @@
<data
android:scheme=
"fhstudents"
android:host=
"fhstudents"
/>
</intent-filter>
</activity>
<activity
android:name=
"com.fa
cebook.react.devsupport.DevSettingsActivity"
/>
<activity
android:name=
"com.facebook.react.devsupport.DevSettingsActivity"
/>
<activity
android:name=
"com.ahmedadeltito.photoeditor.PhotoEditorActivity"
/>
<activity
android:name=
"com.yalantis.ucrop.UCropActivity"
/>
...
...
android/app/src/main/assets/index.android.bundle
View file @
2cc9aa0d
This diff is collapsed.
Click to expand it.
src/homework/woekList/index.tsx
View file @
2cc9aa0d
...
...
@@ -196,7 +196,7 @@ export default class Index extends Component {
return
response
.
json
();
})
.
then
(
data
=>
{
console
.
log
(
'
getListHomework
'
,
data
.
results
);
console
.
log
(
'
getListHomework
'
,
data
);
if
(
data
.
success
)
{
if
(
data
.
data
.
results
&&
data
.
data
.
results
.
length
)
{
this
.
setState
({
...
...
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