Authored by 张文文

提现确认页面跳转

@@ -39,7 +39,7 @@ export default class CheckSettleModal extends React.Component { @@ -39,7 +39,7 @@ export default class CheckSettleModal extends React.Component {
39 <Text style={styles.priceText}>扣税总金额:{data.taxAmountStr}</Text> 39 <Text style={styles.priceText}>扣税总金额:{data.taxAmountStr}</Text>
40 40
41 <TouchableOpacity onPress={() => { 41 <TouchableOpacity onPress={() => {
42 - 42 + this.props.jumpWithActivityUrl && this.props.jumpWithActivityUrl();
43 }}> 43 }}>
44 <Text style={{marginTop: 15}}> 44 <Text style={{marginTop: 15}}>
45 <Text style={styles.tipText}>结算收益时需按照国家规定预扣个税,点击查看</Text> 45 <Text style={styles.tipText}>结算收益时需按照国家规定预扣个税,点击查看</Text>
@@ -94,6 +94,7 @@ export default class Data extends Component { @@ -94,6 +94,7 @@ export default class Data extends Component {
94 <CheckSettleModal 94 <CheckSettleModal
95 data={checkSettlementInfo} 95 data={checkSettlementInfo}
96 isShowWithCheck={isShowCheckSettleDialog} 96 isShowWithCheck={isShowCheckSettleDialog}
  97 + jumpWithActivityUrl={this.props.jumpWithActivityUrl}
97 showWithdrawalDialog={this.props.showWithdrawalDialog} 98 showWithdrawalDialog={this.props.showWithdrawalDialog}
98 hiddenCheckSettleDialog={this.props.hiddenCheckSettleDialog}/> 99 hiddenCheckSettleDialog={this.props.hiddenCheckSettleDialog}/>
99 <UploadCardModal 100 <UploadCardModal
@@ -63,6 +63,8 @@ class DataContainer extends Component { @@ -63,6 +63,8 @@ class DataContainer extends Component {
63 63
64 this._showCheckSettleDialog = this._showCheckSettleDialog.bind(this); 64 this._showCheckSettleDialog = this._showCheckSettleDialog.bind(this);
65 this._hiddenCheckSettleDialog = this._hiddenCheckSettleDialog.bind(this); 65 this._hiddenCheckSettleDialog = this._hiddenCheckSettleDialog.bind(this);
  66 +
  67 + this._jumpWithActivityUrl = this._jumpWithActivityUrl.bind(this);
66 } 68 }
67 69
68 componentDidMount() { 70 componentDidMount() {
@@ -143,6 +145,11 @@ class DataContainer extends Component { @@ -143,6 +145,11 @@ class DataContainer extends Component {
143 this.props.actions.getStatisticsInfo(type); 145 this.props.actions.getStatisticsInfo(type);
144 } 146 }
145 147
  148 + _jumpWithActivityUrl() {
  149 + let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.h5","params":{"title":"提现说明", "url":"https://activity.yoho.cn/feature/3233.html"}}`;
  150 + ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
  151 + }
  152 +
146 _jumpWithUrl(title = '', type = '') { 153 _jumpWithUrl(title = '', type = '') {
147 let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"${title}","type":"${type}"}}`; 154 let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"${title}","type":"${type}"}}`;
148 ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url); 155 ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
@@ -222,6 +229,8 @@ class DataContainer extends Component { @@ -222,6 +229,8 @@ class DataContainer extends Component {
222 showBindAlertDialog={this._showBindAlertDialog} 229 showBindAlertDialog={this._showBindAlertDialog}
223 hiddenBindAlertDialog={this._hiddenBindAlertDialog} 230 hiddenBindAlertDialog={this._hiddenBindAlertDialog}
224 refreshIdentityCardInfo={this._refreshIdentityCardInfo} 231 refreshIdentityCardInfo={this._refreshIdentityCardInfo}
  232 +
  233 + jumpWithActivityUrl={this._jumpWithActivityUrl}
225 /> 234 />
226 <LoadingIndicator isVisible={isFetching}/> 235 <LoadingIndicator isVisible={isFetching}/>
227 </View> 236 </View>