明星原创默认进入列表页面 review by 草莓
Showing
1 changed file
with
9 additions
and
8 deletions
@@ -86,17 +86,11 @@ export default function native(platform) { | @@ -86,17 +86,11 @@ export default function native(platform) { | ||
86 | render() { | 86 | render() { |
87 | const store = configureStore(getInitialState()); | 87 | const store = configureStore(getInitialState()); |
88 | store.dispatch(setPlatform(platform)); | 88 | store.dispatch(setPlatform(platform)); |
89 | - let segment = getInitSegment(this.props.initType); | ||
90 | - store.dispatch(setSegment(segment)); | ||
91 | - if (this.props.initType == 0) { | ||
92 | - let gender = this.props.genderType; | ||
93 | - store.dispatch(setGender(gender)); | ||
94 | - } | 89 | + |
95 | 90 | ||
96 | let type = this.props.type; | 91 | let type = this.props.type; |
97 | if (type == 'detail') { | 92 | if (type == 'detail') { |
98 | - let id=this.props.id; | ||
99 | - let udid=this.props.udid; | 93 | + let id = this.props.id; |
100 | store.dispatch(setId(id)); | 94 | store.dispatch(setId(id)); |
101 | return ( | 95 | return ( |
102 | <Provider store={store}> | 96 | <Provider store={store}> |
@@ -104,6 +98,13 @@ export default function native(platform) { | @@ -104,6 +98,13 @@ export default function native(platform) { | ||
104 | </Provider> | 98 | </Provider> |
105 | ); | 99 | ); |
106 | } else { | 100 | } else { |
101 | + let segment = getInitSegment(this.props.initType); | ||
102 | + store.dispatch(setSegment(segment)); | ||
103 | + if (this.props.initType == 0) { | ||
104 | + let gender = this.props.genderType; | ||
105 | + store.dispatch(setGender(gender)); | ||
106 | + } | ||
107 | + | ||
107 | return ( | 108 | return ( |
108 | <Provider store={store}> | 109 | <Provider store={store}> |
109 | <PlustarContainer /> | 110 | <PlustarContainer /> |
-
Please register or login to post a comment