Commit a7981077 by hank

bug

parent d4e9ef84
...@@ -13,6 +13,11 @@ ...@@ -13,6 +13,11 @@
width: 100%; width: 100%;
height: 180px; height: 180px;
} }
.films-item-img2 {
width: 100%;
height: 568px;
}
} }
&-info { &-info {
......
...@@ -29,12 +29,17 @@ interface FilmListItem { ...@@ -29,12 +29,17 @@ interface FilmListItem {
class FilmListItem extends Component { class FilmListItem extends Component {
render() { render() {
let { templateUrl, templateName, onClick, templateDescribe } = this.props let { templateUrl, templateName, onClick, templateDescribe, templateShow } = this.props
templateUrl = templateUrl || '' templateUrl = templateUrl || ''
return ( return (
<View className="films-item" onClick={() => onClick && onClick()}> <View className="films-item" onClick={() => onClick && onClick()}>
<View className="films-item-img-box"> <View className="films-item-img-box">
<Image className="films-item-img" src={templateUrl.split(',')[0]} /> <Image
className={
templateShow === 'HORIZONTAL' ? 'films-item-img' : 'films-item-img films-item-img2'
}
src={templateUrl.split(',')[0]}
/>
</View> </View>
<View className="films-item-info"> <View className="films-item-info">
<Text className="films-item-info-name">{templateName}</Text> <Text className="films-item-info-name">{templateName}</Text>
......
...@@ -24,7 +24,7 @@ interface Device { ...@@ -24,7 +24,7 @@ interface Device {
state: PageState state: PageState
} }
const tabList = [{ title: '我的视片' }, { title: '收藏的影片' }] const tabList = [{ title: '我的视片' }, { title: 'XX任务' }]
class Device extends Component { class Device extends Component {
config: Config = { config: Config = {
navigationBarTitleText: '', navigationBarTitleText: '',
...@@ -54,7 +54,7 @@ class Device extends Component { ...@@ -54,7 +54,7 @@ class Device extends Component {
</View> </View>
</AtTabsPane> </AtTabsPane>
<AtTabsPane className="at-tabs-page" current={current} index={1}> <AtTabsPane className="at-tabs-page" current={current} index={1}>
<View style={{ height: `${windowHeight}px` }}>收藏的影片</View> <View style={{ height: `${windowHeight}px` }}>XX任务</View>
</AtTabsPane> </AtTabsPane>
</AtTabs> </AtTabs>
) )
......
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