...
|
...
|
@@ -30,10 +30,16 @@ export default class ProductListCell extends Component { |
|
|
let browse = data.get('browse');
|
|
|
let src = data.get('src');
|
|
|
let article_id = data.get('id');
|
|
|
let show10K = false;
|
|
|
|
|
|
if (browse>10000) {
|
|
|
browse = browse/10000.0;
|
|
|
browse = Math.round(browse*10)/10;
|
|
|
if (browse >= 100) {
|
|
|
browse = Math.round(browse);
|
|
|
} else {
|
|
|
browse = Math.round(browse*10)/10;
|
|
|
}
|
|
|
show10K = true;
|
|
|
}
|
|
|
src = src.replace('{width}', rowWidth*2).replace('{height}',Math.ceil(214*width/750)*2).replace('{mode}',2);
|
|
|
|
...
|
...
|
@@ -55,7 +61,7 @@ export default class ProductListCell extends Component { |
|
|
<Image style={styles.clockImage} source={require('../../image/time_ic.png')}/>
|
|
|
<Text style={styles.text}>{publish_time}</Text>
|
|
|
<Image style={styles.eyeImage} source={require('../../image/eye_ic.png')}/>
|
|
|
<Text style={styles.text}>{browse}万</Text>
|
|
|
<Text style={styles.text}>{browse}{show10K?'万':''}</Text>
|
|
|
</View>
|
|
|
</View>
|
|
|
|
...
|
...
|
|