Authored by 于良

好店推荐调整 review by chenlin

... ... @@ -54,11 +54,13 @@ export default class ShopRecommend extends Component{
let shopItem = list[i];
if (shopId == shopItem.shopId) {
if (type == 'top') {
imageUrl = SlicedImage.getSlicedUrl(shopItem.src, 240*DEVICE_WIDTH_RATIO, 116*DEVICE_WIDTH_RATIO, 2);
}else if (type == 'left') {
imageUrl = SlicedImage.getSlicedUrl(shopItem.goods0.src, 92*DEVICE_WIDTH_RATIO, 135*DEVICE_WIDTH_RATIO, 2);
}else if (type == 'right') {
imageUrl = SlicedImage.getSlicedUrl(shopItem.goods1.src, 92*DEVICE_WIDTH_RATIO, 135*DEVICE_WIDTH_RATIO, 2);
imageUrl = shopItem.src && SlicedImage.getSlicedUrl(shopItem.src, 240*DEVICE_WIDTH_RATIO, 116*DEVICE_WIDTH_RATIO, 2);
} else if (type == 'left') {
imageUrl = shopItem.goods0 && shopItem.goods0.src && SlicedImage.getSlicedUrl(shopItem.goods0.src, 80*DEVICE_WIDTH_RATIO, 106*DEVICE_WIDTH_RATIO, 2);
} else if (type == 'right') {
imageUrl = shopItem.goods2 && shopItem.goods2.src && SlicedImage.getSlicedUrl(shopItem.goods2.src, 80*DEVICE_WIDTH_RATIO, 106*DEVICE_WIDTH_RATIO, 2);
} else if (type == 'center') {
imageUrl = shopItem.goods1 && shopItem.goods1.src && SlicedImage.getSlicedUrl(shopItem.goods1.src, 80*DEVICE_WIDTH_RATIO, 106*DEVICE_WIDTH_RATIO, 2);
}
break;
}
... ...
... ... @@ -108,7 +108,7 @@ class HomeContainer extends Component {
componentDidMount() {
// this.props.actions.loadChannelCachedData();
// this.home && this.home.trigggePullToRefresh();
this.home && this.home.trigggePullToRefresh();
}
componentWillUnmount() {
... ...