...
|
...
|
@@ -4,6 +4,8 @@ import React, {Component} from 'react'; |
|
|
import Immutable, {Map} from 'immutable';
|
|
|
import DetailBrand from './DetailBrand';
|
|
|
import OtherArticle from './OtherArticle';
|
|
|
import SingleImage from './SingleImage';
|
|
|
import DetailText from './DetailText';
|
|
|
|
|
|
import ReactNative, {
|
|
|
View,
|
...
|
...
|
@@ -43,9 +45,33 @@ export default class Detail extends Component { |
|
|
renderRow(rowData,sectionID,rowID,highlightRow) {
|
|
|
|
|
|
if (sectionID == 'detailList') {
|
|
|
return (
|
|
|
<Text>aaaaaa</Text>
|
|
|
);
|
|
|
let template_name = rowData.get('template_name');
|
|
|
if (template_name == 'text') {
|
|
|
return (
|
|
|
<DetailText resource={rowData}/>
|
|
|
);
|
|
|
}else if (template_name == 'single_image') {
|
|
|
return (
|
|
|
<SingleImage resource={rowData}/>
|
|
|
);
|
|
|
}else if (template_name == 'small_image') {
|
|
|
return (
|
|
|
<Text>small_image</Text>
|
|
|
);
|
|
|
}else if (template_name == 'weixinPublic') {
|
|
|
return (
|
|
|
<Text>weixinPublic</Text>
|
|
|
);
|
|
|
}else if (template_name == 'collocation') {
|
|
|
return (
|
|
|
<Text>collocation</Text>
|
|
|
);
|
|
|
}else if (template_name == 'moreLink') {
|
|
|
return (
|
|
|
<Text>moreLink</Text>
|
|
|
);
|
|
|
}
|
|
|
|
|
|
}else if (sectionID == 'detailBrand') {
|
|
|
return (
|
|
|
<DetailBrand resource={rowData}/>
|
...
|
...
|
|