Commit 40b09ef1 by hank

修改设备旋转角度

parent 809578e1
......@@ -14,7 +14,7 @@ export interface IUpdateDeviceInfo {
equipmentName: string
equipmentUrl: string
equipmentResolution: string
equipmentStyle: 'CROSSWISE' | 'LENGTHWAYS'
equipmentStyle: 'CROSSWISE' | 'LENGTHWAYS' | 'DOUBLECROSSWISE' | 'DOUBLELENGTHWAYS'
}
export interface IUpdateFilmInfo {
......
......@@ -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'}>
</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 === 'DOUBLELENGTHWAYS'}>
270°
</Radio>
</Label>
</RadioGroup>
......
......@@ -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>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment