Authored by 于良

dc店铺logo不显示bug fix review by linen

@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 2
3 import React from 'react'; 3 import React from 'react';
4 import ReactNative from 'react-native'; 4 import ReactNative from 'react-native';
  5 +import {getSlicedUrl} from '../../../../../classify/utils/Utils';
5 6
6 const { 7 const {
7 Image, 8 Image,
@@ -27,7 +28,7 @@ export default class ShopTopBanner extends React.Component { @@ -27,7 +28,7 @@ export default class ShopTopBanner extends React.Component {
27 if (backgroundImage === '') { 28 if (backgroundImage === '') {
28 return null; 29 return null;
29 } 30 }
30 - let icon = info&&info.shop_logo?info.shop_logo.replace('{width}', 100).replace('{height}', 100):''; // 商品缩略图 31 + let icon = info&&info.shop_logo ? getSlicedUrl(info.shop_logo, 100, 100) : '';
31 let name = info.is_show_shop_name == 'Y'?info.shop_name:null; 32 let name = info.is_show_shop_name == 'Y'?info.shop_name:null;
32 let buttonIcon = this.props.info.is_addFav?require('../../../../image/btn_gz_p.png'):require('../../../../image/btn_gz_n.png'); 33 let buttonIcon = this.props.info.is_addFav?require('../../../../image/btn_gz_p.png'):require('../../../../image/btn_gz_n.png');
33 34