Commit a7981077 by hank

bug

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