Authored by 张文文

添加图片资源

... ... @@ -43,7 +43,6 @@ export default class ContentMessageView extends Component {
_renderHeader() {
let tipHeight = this.props.contentTipFlag==='0'?40:0;
let tipBorderWidth = this.props.contentTipFlag==='0'?1:0;
let lineHeight = this.props.contentTipFlag==='0'?1:0;
let buttonHeight = this.props.contentTipFlag==='0'?25:0;
... ... @@ -77,7 +76,7 @@ export default class ContentMessageView extends Component {
<View style={[styles.tipContainer,{height: tipHeight}]}>
<Text style={[styles.tipStyle]}>{'开启推送通知,第一时间收到互动消息'}</Text>
<TouchableOpacity style={{width:60, height: buttonHeight}} onPress={()=> {onNotifyPress()}}>
<Text style={[styles.openButton,{borderWidth: tipBorderWidth}]}>{'开启'}</Text>
<Image style={styles.openImage} source={require('../../images/open_btn.png')}/>
</TouchableOpacity>
<View style={{backgroundColor: '#EEEEEE', left: 0, right: 0, bottom: 0, position: 'absolute', height: lineHeight}}/>
</View>
... ... @@ -212,17 +211,10 @@ let styles = StyleSheet.create({
backgroundColor: 'transparent',
textAlign: 'center',
},
openButton: {
fontFamily: 'PingFang-SC-Medium',
fontSize: 14,
color: '#4A4A4A',
borderColor: '#4A4A4A',
borderRadius: 5,
paddingTop: 2,
paddingLeft: 10,
paddingRight: 10,
paddingBottom: 2,
textAlign: 'center',
openImage: {
width: 60,
height: 25,
marginRight: 14
},
line: {
backgroundColor: '#EEEEEE',
... ...