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
bb2d1d7e
Commit
bb2d1d7e
authored
Sep 29, 2020
by
肖亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新样式
parent
eb19d4e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
12 deletions
+7
-12
android
+1
-1
ios
+1
-1
src/pages/Equipment/index.js
+2
-7
src/pages/Equipment/style.js
+3
-3
No files found.
android
@
f03772da
Subproject commit
929c05f7153e671b5ff1577df02add97871ebf94
Subproject commit
f03772da2d458c0a8286de448f7efd24ebfd3b75
ios
@
3922333e
Subproject commit 3
d7f7da50e7fcfd65e5c17629dca64fb8d358d52
Subproject commit 3
922333e6e0f904d6ff344620db7d35c95ae3694
src/pages/Equipment/index.js
View file @
bb2d1d7e
...
@@ -20,24 +20,19 @@ const Equipment = () => {
...
@@ -20,24 +20,19 @@ 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
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
main
}
>
<
Text
style
=
{
styles
.
tip
}
>
<
Text
style
=
{
styles
.
tip
}
>
标题文字点击无反馈,文字超长则隐藏,文字超长则隐藏
标题文字点击无反馈,文字超长则隐藏,文字超长则隐藏
<
/Text
>
<
/Text
>
<
View
style
=
{
styles
.
content
}
>
<
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 @
bb2d1d7e
import
{
StyleSheet
}
from
'react-native'
;
import
{
StyleSheet
}
from
'react-native'
;
export
default
StyleSheet
.
create
({
export
default
StyleSheet
.
create
({
main
:
{
flex
:
1
,
},
container
:
{
container
:
{
flex
:
1
,
flex
:
1
,
},
},
...
@@ -15,9 +18,6 @@ export default StyleSheet.create({
...
@@ -15,9 +18,6 @@ export default StyleSheet.create({
content
:
{
content
:
{
flex
:
1
,
flex
:
1
,
},
},
list
:
{
flex
:
1
,
},
ceil
:
{
ceil
:
{
backgroundColor
:
'#fff'
,
backgroundColor
:
'#fff'
,
padding
:
12
,
padding
:
12
,
...
...
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