Authored by 张丽霞

明星原创加载指示,文字点击区域,review by redding

... ... @@ -50,14 +50,12 @@ export default class BrandIntro extends Component {
{detail.brand_name}
</Text>
</View>
<Text style={styles.intro} numberOfLines={brandIntro.titleUnfold ? 0 : 4}>
{detail.brand_intro}
</Text>
<TouchableOpacity onPress={() => {
this.props.onPressBrandIntroMore && this.props.onPressBrandIntroMore(!brandIntro.titleUnfold);
}}>
<Text style={styles.intro} numberOfLines={brandIntro.titleUnfold ? 0 : 4}>
{detail.brand_intro}
</Text>
<View style={styles.moreView}>
<Image style={styles.moreArrow} source={titleFoldArrowIcon}/>
<Text style={styles.moreText}>
... ...
... ... @@ -18,6 +18,7 @@ import BrandArticleList from './BrandArticleList'
import BrandArticleCell from './BrandArticleCell'
import NewArrival from './NewArrival'
import Prompt from '../../../coupon/components/coupon/Prompt';
import LoadingIndicator from '../../../common/components/LoadingIndicator';
export default class Detail extends React.Component{
... ... @@ -55,8 +56,6 @@ export default class Detail extends React.Component{
/>
);
case 'productList':
console.log(rowData);
console.log('rowData');
return (
<NewArrival
prodcutList={rowData}
... ... @@ -106,6 +105,10 @@ export default class Detail extends React.Component{
duration={800}
onPromptHidden={this.props.addCanelFavTipRemove}
/> : null}
<LoadingIndicator
isVisible={detail.get('brandInfo').get('isFetching')}
/>
</View>
);
}
... ...
... ... @@ -14,7 +14,6 @@ export default class DetailService {
}
async getUidBrandFav(brandId,uid) {
console.log('getUidBrandFav');
return await this.api.get({
url: '/shops/service/v1/favorite/getUidBrandFav',
body: {
... ... @@ -75,7 +74,7 @@ export default class DetailService {
}
})
.then((json) => {
return json;
})
.catch((error) => {
... ... @@ -155,4 +154,3 @@ export default class DetailService {
});
}
}
... ...