兼容android grass host。review by 张文文。
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -103,7 +103,7 @@ class ContentListContainer extends Component { | @@ -103,7 +103,7 @@ class ContentListContainer extends Component { | ||
103 | _jumpToGrassDetailPage(rowData) { | 103 | _jumpToGrassDetailPage(rowData) { |
104 | let {communityHost} = this.props | 104 | let {communityHost} = this.props |
105 | 105 | ||
106 | - let url = communityHost + '/grass/article' + `/detail/${rowData.articleId}` | 106 | + let url = communityHost + (Platform.OS === 'ios' ? '/grass': '') + `/article/detail/${rowData.articleId}` |
107 | let action, params; | 107 | let action, params; |
108 | if(Platform.OS === 'ios') { | 108 | if(Platform.OS === 'ios') { |
109 | action = 'go.h5hn'; | 109 | action = 'go.h5hn'; |
@@ -134,7 +134,7 @@ class ContentMessageContainer extends Component { | @@ -134,7 +134,7 @@ class ContentMessageContainer extends Component { | ||
134 | 134 | ||
135 | let {communityHost} = this.props | 135 | let {communityHost} = this.props |
136 | 136 | ||
137 | - let url = communityHost + '/grass/article' + `/detail/${rowData.articleId}` | 137 | + let url = communityHost + (Platform.OS === 'ios' ? '/grass': '') + `/article/detail/${rowData.articleId}` |
138 | let action, params; | 138 | let action, params; |
139 | if(Platform.OS === 'ios') { | 139 | if(Platform.OS === 'ios') { |
140 | action = 'go.h5hn'; | 140 | action = 'go.h5hn'; |
-
Please register or login to post a comment