Add header jump url action.
Showing
3 changed files
with
3 additions
and
3 deletions
@@ -37,7 +37,7 @@ export default class Tags extends React.Component { | @@ -37,7 +37,7 @@ export default class Tags extends React.Component { | ||
37 | {tags.map( | 37 | {tags.map( |
38 | (value, i) => { | 38 | (value, i) => { |
39 | return ( | 39 | return ( |
40 | - <Text style={styles.tag} onPress={()=>{this.props.onPressTag&&this.props.onPressTag(value.url)}}>{value.name}</Text> | 40 | + <Text key={i} style={styles.tag} onPress={()=>{this.props.onPressTag&&this.props.onPressTag(value.url)}}>{value.name}</Text> |
41 | ); | 41 | ); |
42 | } | 42 | } |
43 | )} | 43 | )} |
@@ -74,7 +74,6 @@ export default class List extends Component { | @@ -74,7 +74,6 @@ export default class List extends Component { | ||
74 | share, | 74 | share, |
75 | id, | 75 | id, |
76 | } = this.props.resource; | 76 | } = this.props.resource; |
77 | - console.log(this.props.resource); | ||
78 | let urlAry = url.split('&'); | 77 | let urlAry = url.split('&'); |
79 | let shareParam = { | 78 | let shareParam = { |
80 | title, | 79 | title, |
@@ -93,7 +93,8 @@ class DetailContainer extends Component { | @@ -93,7 +93,8 @@ class DetailContainer extends Component { | ||
93 | } | 93 | } |
94 | 94 | ||
95 | _onPressAuthor(url) { | 95 | _onPressAuthor(url) { |
96 | - ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url); | 96 | + let taggedUrl = urlAddParamOfType(url, '11') |
97 | + ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(taggedUrl); | ||
97 | } | 98 | } |
98 | 99 | ||
99 | _onPressBrand(url) { | 100 | _onPressBrand(url) { |
-
Please register or login to post a comment