Authored by 张丽霞

参数移到对应类型内,review by 陈林

@@ -85,14 +85,6 @@ export default function native(platform) { @@ -85,14 +85,6 @@ export default function native(platform) {
85 store.dispatch(setHost(this.props.host)); 85 store.dispatch(setHost(this.props.host));
86 store.dispatch(setServiceHost(this.props.serviceHost)); 86 store.dispatch(setServiceHost(this.props.serviceHost));
87 let channel = this.props.channel; 87 let channel = this.props.channel;
88 - let days = this.props.days;  
89 - if (days && days !== '') {  
90 - store.dispatch(setQueryDays(days));  
91 - }  
92 - let repayOrderNo = this.props.repayOrderNo;  
93 - if (repayOrderNo && repayOrderNo !== '') {  
94 - store.dispatch(setRepayOrderNo(repayOrderNo));  
95 - }  
96 channel && store.dispatch(setChannel(channel)); 88 channel && store.dispatch(setChannel(channel));
97 if (type == 'installmentHome') { 89 if (type == 'installmentHome') {
98 return ( 90 return (
@@ -117,12 +109,20 @@ export default function native(platform) { @@ -117,12 +109,20 @@ export default function native(platform) {
117 </Provider> 109 </Provider>
118 ) 110 )
119 } else if (type == 'repayList') { 111 } else if (type == 'repayList') {
  112 + let days = this.props.days;
  113 + if (days && days !== '') {
  114 + store.dispatch(setQueryDays(days));
  115 + }
120 return ( 116 return (
121 <Provider store={store}> 117 <Provider store={store}>
122 <RepayListContainer /> 118 <RepayListContainer />
123 </Provider> 119 </Provider>
124 ); 120 );
125 } else if (type == 'repayDetail') { 121 } else if (type == 'repayDetail') {
  122 + let repayOrderNo = this.props.repayOrderNo;
  123 + if (repayOrderNo && repayOrderNo !== '') {
  124 + store.dispatch(setRepayOrderNo(repayOrderNo));
  125 + }
126 return ( 126 return (
127 <Provider store={store}> 127 <Provider store={store}>
128 <RepayDetailContainer /> 128 <RepayDetailContainer />