Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client-taro
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
40b09ef1
authored
Oct 15, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改设备旋转角度
parent
809578e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
17 deletions
+27
-17
src/api/common.ts
+1
-1
src/pages/home/device/device_detail/index.tsx
+22
-12
src/pages/home/tempaltes/film_detail.tsx
+4
-4
No files found.
src/api/common.ts
View file @
40b09ef1
...
...
@@ -14,7 +14,7 @@ export interface IUpdateDeviceInfo {
equipmentName
:
string
equipmentUrl
:
string
equipmentResolution
:
string
equipmentStyle
:
'CROSSWISE'
|
'LENGTHWAYS'
equipmentStyle
:
'CROSSWISE'
|
'LENGTHWAYS'
|
'DOUBLECROSSWISE'
|
'DOUBLELENGTHWAYS'
}
export
interface
IUpdateFilmInfo
{
...
...
src/pages/home/device/device_detail/index.tsx
View file @
40b09ef1
...
...
@@ -32,7 +32,7 @@ type PageState = {
equipmentName
:
string
equipmentState
:
string
equipmentResolution
:
string
equipmentStyle
:
'CROSSWISE'
|
'LENGTHWAYS'
equipmentStyle
:
'CROSSWISE'
|
'LENGTHWAYS'
|
'DOUBLECROSSWISE'
|
'DOUBLELENGTHWAYS'
}
type
IProps
=
PageStateProps
&
PageDispatchProps
&
PageOwnProps
...
...
@@ -113,11 +113,11 @@ class DeviceDetail extends Component {
chengDirection
({
currentTarget
}:
any
)
{
const
{
value
}
=
currentTarget
if
(
value
===
'horizontal'
)
{
this
.
setState
({
equipmentStyle
:
'CROSSWISE'
})
}
else
if
(
value
===
'vertical'
)
{
this
.
setState
({
equipmentStyle
:
'LENGTHWAYS'
})
}
this
.
setState
({
equipmentStyle
:
value
})
// if (value === 'horizontal') {
//
} else if (value === 'vertical') {
//
this.setState({ equipmentStyle: 'LENGTHWAYS' })
//
}
}
async
updateDeviceDetail
()
{
...
...
@@ -172,14 +172,24 @@ class DeviceDetail extends Component {
<
View
className=
"device-detail-item"
>
<
Text
className=
"item-text"
>
屏幕板式
</
Text
>
<
RadioGroup
onChange=
{
this
.
chengDirection
}
>
<
Label
for=
"horizontal"
>
<
Radio
value=
"horizontal"
checked=
{
equipmentStyle
===
'CROSSWISE'
}
>
横屏
<
Label
for=
"CROSSWISE"
>
<
Radio
value=
"CROSSWISE"
checked=
{
equipmentStyle
===
'CROSSWISE'
}
>
0°
</
Radio
>
</
Label
>
<
Label
for=
"LENGTHWAYS"
>
<
Radio
value=
"LENGTHWAYS"
checked=
{
equipmentStyle
===
'LENGTHWAYS'
}
>
90°
</
Radio
>
</
Label
>
<
Label
for=
"DOUBLECROSSWISE"
>
<
Radio
value=
"DOUBLECROSSWISE"
checked=
{
equipmentStyle
===
'DOUBLECROSSWISE'
}
>
180°
</
Radio
>
</
Label
>
<
Label
for=
"
vertical
"
>
<
Radio
value=
"
vertical"
checked=
{
equipmentStyle
===
'
LENGTHWAYS'
}
>
竖屏
<
Label
for=
"
DOUBLELENGTHWAYS
"
>
<
Radio
value=
"
DOUBLELENGTHWAYS"
checked=
{
equipmentStyle
===
'DOUBLE
LENGTHWAYS'
}
>
270°
</
Radio
>
</
Label
>
</
RadioGroup
>
...
...
src/pages/home/tempaltes/film_detail.tsx
View file @
40b09ef1
...
...
@@ -55,10 +55,10 @@ class FilmDetail extends Component {
}
componentWillMount
()
{
this
.
getData
()
//
this.getData()
}
componentDidShow
()
{
this
.
getData
()
//
this.getData()
}
async
getData
()
{
const
{
page
,
filmId
}
=
this
.
state
...
...
@@ -206,9 +206,9 @@ class FilmDetail extends Component {
</
View
>
</
Modal
>
)
:
null
}
{
/*
<WebView
<
WebView
src=
{
`https://visual.bdideal.com/#/tempaltes/filmdetail?filmId=${filmId}&token=${token.getToken()}`
}
/>
*/
}
/>
</
View
>
)
}
...
...
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