Authored by 于良

图片资源路径规范化 review by 盖剑秋

Showing 26 changed files with 13 additions and 13 deletions
... ... @@ -54,7 +54,7 @@ export default class SuperMan extends React.Component {
render() {
let avatarContainerStyle = this.props.uid > 0 && this.props.avatar ? styles.avatarContainer : null;
let avatarStyle = this.props.uid > 0 && this.props.avatar ? styles.avatarBorder : null;
let defaultSource = this.props.uid > 0 && this.props.avatar ? null : require('../../images/home/superman.png');
let defaultSource = this.props.uid > 0 && this.props.avatar ? null : require('../../images/avatar/superman.png');
return (
<View style={[styles.container, this.props.fly]}>
<TouchableOpacity activeOpacity={0.8} onPress={() => {
... ...
... ... @@ -58,7 +58,7 @@ export default class UserBrief extends React.Component {
<TouchableOpacity onPress={() => {
this.props.onPressAvatar && this.props.onPressAvatar();
}}>
<SlicedImage style={styles.avatar} source={{uri: this.props.avatar}} resizeMode={'cover'} defaultSource={require('../../images/user/avatar-default.png')}/>
<SlicedImage style={styles.avatar} source={{uri: this.props.avatar}} resizeMode={'cover'} defaultSource={require('../../images/avatar/avatar_default.png')}/>
</TouchableOpacity>
<View style={styles.text}>
... ...
... ... @@ -41,7 +41,7 @@ export default class MessageIcon extends React.Component {
render() {
let defaultSource = this.props.defaultSource || require('../../images/user/avatar-default.png');
let defaultSource = this.props.defaultSource || require('../../images/avatar/avatar_default.png');
return (
<View style={[styles.container, this.props.extraStyle]}>
... ...
... ... @@ -32,8 +32,8 @@ export default class PostingToolBar extends Component {
render() {
let {imageCount, selectedSectionName, keyboardInView, imageInView} = this.props;
let keyboardImage = keyboardInView ? require('../../images/jianpan1.png') : require('../../images/keyboard_normal.png');
let picImage = imageInView ? require('../../images/pic1.png') : require('../../images/pic_normal.png')
let keyboardImage = keyboardInView ? require('../../images/posting/jianpan1.png') : require('../../images/posting/keyboard_normal.png');
let picImage = imageInView ? require('../../images/posting/pic1.png') : require('../../images/posting/pic_normal.png')
return (
<View style={styles.container}>
<TouchableOpacity style={styles.imgIcon} onPress={() => {
... ...
... ... @@ -76,7 +76,7 @@ export default class Setting extends React.Component {
}}
>
<Image
source={require('../../images/delete.png')}
source={require('../../images/user/delete.png')}
/>
</TouchableOpacity>
... ...
... ... @@ -47,7 +47,7 @@ export default class SPLikeCell extends React.Component {
key={i}
style={[styles.likeAvatar, {right: space * i}]}
source={{uri: headStr}}
defaultSource={require('../../images/user/avatar-default.png')}
defaultSource={require('../../images/avatar/avatar_default.png')}
/>
);
})}
... ...
... ... @@ -167,7 +167,7 @@ export default class SubjectPost extends Component {
}
renderToolContainer() {
let iconSouce = (this.state.replyState === ReplyState.replyNone)?require('../../images/home/like.png'):require('../../images/pic1.png');
let iconSouce = (this.state.replyState === ReplyState.replyNone)?require('../../images/home/like.png'):require('../../images/posting/pic1.png');
switch (this.state.replyState) {
case ReplyState.replyNone: {
... ... @@ -237,7 +237,7 @@ export default class SubjectPost extends Component {
</TouchableOpacity>
<TouchableOpacity style={styles.keyboardIcon} onPress={this.blurAll}>
<SlicedImage source={require('../../images/jianpan1.png')} />
<SlicedImage source={require('../../images/posting/jianpan1.png')} />
</TouchableOpacity>
<View style={[styles.rightContainer]}>
<TextInput
... ... @@ -282,7 +282,7 @@ export default class SubjectPost extends Component {
</TouchableOpacity>
<TouchableOpacity style={styles.keyboardIcon} onPress={this.blurAll}>
<SlicedImage source={require('../../images/jianpan1.png')} />
<SlicedImage source={require('../../images/posting/jianpan1.png')} />
</TouchableOpacity>
<View style={[styles.rightContainer]}>
<TextInput
... ...
... ... @@ -37,7 +37,7 @@ export default class UserCenterTop extends React.Component {
render() {
let data = this.props.userInfo;
let {backgroundImage, avatar, nickName, sign,} = data;
return (
<View style={styles.container}>
<TouchableHighlight
... ... @@ -48,7 +48,7 @@ export default class UserCenterTop extends React.Component {
>
<SlicedImage
style={styles.backgroundImage}
defaultSource={require('../../images/user-bg.png')}
defaultSource={require('../../images/user/user-bg.png')}
source={{uri:backgroundImage}}
>
<TouchableOpacity
... ... @@ -58,7 +58,7 @@ export default class UserCenterTop extends React.Component {
>
<SlicedImage
style={styles.avatarImage}
defaultSource={require('../../images/avatar-default.png')}
defaultSource={require('../../images/avatar/avatar_default.png')}
source={{uri:avatar}}
/>
</TouchableOpacity>
... ...