Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
banma_credit
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hik_rn
project
banma_credit
Commits
6ae825a8
Commit
6ae825a8
authored
Sep 29, 2020
by
肖亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新tabbar及操作退出
parent
4e8851a4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
src/pages/Equipment/index.js
+5
-1
src/pages/Equipment/style.js
+5
-1
src/utils/request.js
+2
-0
No files found.
src/pages/Equipment/index.js
View file @
6ae825a8
...
@@ -20,20 +20,24 @@ const Equipment = () => {
...
@@ -20,20 +20,24 @@ const Equipment = () => {
const
getEquimentList
=
async
()
=>
{
const
getEquimentList
=
async
()
=>
{
try
{
try
{
const
data
=
await
equimentServices
.
getArticleList
();
const
data
=
await
equimentServices
.
getArticleList
();
console
.
log
(
'data'
,
data
);
setEquimentList
(
data
[
0
].
devices
||
[]);
setEquimentList
(
data
[
0
].
devices
||
[]);
}
catch
(
e
)
{
}
catch
(
e
)
{
BMCUI
.
show
(
'e'
);
BMCUI
.
show
(
'e'
);
}
}
};
};
console
.
log
(
'equimentList'
,
equimentList
);
return
(
return
(
<
SafeAreaView
>
<
SafeAreaView
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
tip
}
>
<
Text
style
=
{
styles
.
tip
}
>
标题文字点击无反馈,文字超长则隐藏,文字超长则隐藏
标题文字点击无反馈,文字超长则隐藏,文字超长则隐藏
<
/Text
>
<
/Text
>
<
View
>
<
View
style
=
{
styles
.
content
}
>
<
FlatList
<
FlatList
style
=
{
styles
.
list
}
data
=
{
equimentList
}
data
=
{
equimentList
}
keyExtractor
=
{(
item
,
index
)
=>
item
.
deviceId
+
''
}
keyExtractor
=
{(
item
,
index
)
=>
item
.
deviceId
+
''
}
renderItem
=
{({
item
})
=>
{
renderItem
=
{({
item
})
=>
{
...
...
src/pages/Equipment/style.js
View file @
6ae825a8
...
@@ -2,6 +2,7 @@ import { StyleSheet } from 'react-native';
...
@@ -2,6 +2,7 @@ import { StyleSheet } from 'react-native';
export
default
StyleSheet
.
create
({
export
default
StyleSheet
.
create
({
container
:
{
container
:
{
flex
:
1
,
},
},
tip
:
{
tip
:
{
fontSize
:
16
,
fontSize
:
16
,
...
@@ -12,7 +13,10 @@ export default StyleSheet.create({
...
@@ -12,7 +13,10 @@ export default StyleSheet.create({
color
:
'rgba(182, 182, 182, 1)'
,
color
:
'rgba(182, 182, 182, 1)'
,
},
},
content
:
{
content
:
{
flex
:
1
,
},
list
:
{
flex
:
1
,
},
},
ceil
:
{
ceil
:
{
backgroundColor
:
'#fff'
,
backgroundColor
:
'#fff'
,
...
...
src/utils/request.js
View file @
6ae825a8
...
@@ -35,6 +35,8 @@ const errorProcess = (resp, reject, errorToast) => {
...
@@ -35,6 +35,8 @@ const errorProcess = (resp, reject, errorToast) => {
const
getRequestInfo
=
async
(
calback
,
requestInfo
=
{})
=>
{
const
getRequestInfo
=
async
(
calback
,
requestInfo
=
{})
=>
{
const
loginInfo
=
await
getLoginInfo
()
||
{};
const
loginInfo
=
await
getLoginInfo
()
||
{};
const
deviceInfo
=
await
getDeviceInfo
()
||
{};
const
deviceInfo
=
await
getDeviceInfo
()
||
{};
console
.
log
(
'loginInfo'
,
loginInfo
);
console
.
log
(
'deviceInfo'
,
deviceInfo
);
const
result
=
{
const
result
=
{
'Pvt-Token'
:
loginInfo
.
pvtToken
||
''
,
'Pvt-Token'
:
loginInfo
.
pvtToken
||
''
,
'Token'
:
loginInfo
.
token
||
''
,
'Token'
:
loginInfo
.
token
||
''
,
...
...
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