...
|
...
|
@@ -37,7 +37,7 @@ export default class JointCell extends React.Component { |
|
|
}
|
|
|
|
|
|
render() {
|
|
|
let {data, isExtends, imageWidth, imageHeight, floorId, floorName, fIndex, contentCode} = this.props;
|
|
|
let {data, isExtends, imageWidth, imageHeight, floorId, floorName, fIndex, contentCode, yh_exposedata} = this.props;
|
|
|
let source = this.props.data.toJS();
|
|
|
if (!source) {
|
|
|
return null;
|
...
|
...
|
@@ -48,7 +48,7 @@ export default class JointCell extends React.Component { |
|
|
let list = source.urls;
|
|
|
let touchWidth = (width-marginLeft*2) / list.length;
|
|
|
let pageName = Platform.OS === 'android' ? 'aFP_NewArrival': 'iFP_NewArrival';
|
|
|
|
|
|
let exposedata =yh_exposedata && yh_exposedata.toJS()
|
|
|
let ratioHeight = Math.ceil(width * imageHeight / imageWidth);
|
|
|
|
|
|
return (
|
...
|
...
|
@@ -56,14 +56,15 @@ export default class JointCell extends React.Component { |
|
|
<YH_Image url={YH_Image.getSlicedUrl(source.src, width-marginLeft*2, ratioHeight, 2)} resizeMode={'contain'} style={{ width: width-marginLeft*2, height: ratioHeight, marginLeft: marginLeft}} />
|
|
|
<View style={{flexDirection: 'row', position: 'absolute', top: 0, left: marginLeft, bottom: 0, right: marginLeft}}>{
|
|
|
list.map((item, i) => {
|
|
|
let exposureData = {
|
|
|
let exposureData = {
|
|
|
...exposedata,
|
|
|
F_ID: floorId,
|
|
|
P_NAME: pageName,
|
|
|
F_NAME: floorName,
|
|
|
F_URL: item,
|
|
|
F_INDEX: fIndex,
|
|
|
I_INDEX: parseInt(i) + 1 + "",
|
|
|
CONTENT_CODE: contentCode,
|
|
|
CODE: contentCode,
|
|
|
exposureEnd: 1,
|
|
|
}
|
|
|
|
...
|
...
|
|