Authored by 张文文

添加图片资源

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