|
@@ -15,6 +15,8 @@ import RadioBtn from "@components/RadioBtn";
|
|
|
import img_bonus from "@assets/pay/topup_bonus.png";
|
|
import img_bonus from "@assets/pay/topup_bonus.png";
|
|
|
import styled from 'styled-components/macro';
|
|
import styled from 'styled-components/macro';
|
|
|
import {stringFormat} from "@utils/helpers";
|
|
import {stringFormat} from "@utils/helpers";
|
|
|
|
|
+import {APP_COUNTRY_CODE} from "@constants/app";
|
|
|
|
|
+import RUPaytypeSelect from "@widgets/WDeposit/RU/RUPaytypeSelect";
|
|
|
const i18n=global.i18n;
|
|
const i18n=global.i18n;
|
|
|
const PPBanner=styled.div`
|
|
const PPBanner=styled.div`
|
|
|
background: url(${img_bonus});
|
|
background: url(${img_bonus});
|
|
@@ -31,6 +33,7 @@ const BRDeposit=()=>{
|
|
|
const isLogin=useSelector(isLogined);
|
|
const isLogin=useSelector(isLogined);
|
|
|
const [selectedPromotion,setSelectedPromotion]=useState(false);
|
|
const [selectedPromotion,setSelectedPromotion]=useState(false);
|
|
|
const showBonus=useSelector(getShowBonus);
|
|
const showBonus=useSelector(getShowBonus);
|
|
|
|
|
+ const areaItem=global.getLocalAreaItem();
|
|
|
const getSelectedConfig=()=>{
|
|
const getSelectedConfig=()=>{
|
|
|
let selected=null;
|
|
let selected=null;
|
|
|
if (config){
|
|
if (config){
|
|
@@ -53,9 +56,22 @@ const BRDeposit=()=>{
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (orderStatus===REQ_STATUS.LOADING)return;
|
|
if (orderStatus===REQ_STATUS.LOADING)return;
|
|
|
- data.user=user;
|
|
|
|
|
- data.callback=onGetPaymentCallback;
|
|
|
|
|
- dispatch(reqPaymentOrder(data));
|
|
|
|
|
|
|
+ let reqOrder=()=>{
|
|
|
|
|
+ data.user=user;
|
|
|
|
|
+ data.callback=onGetPaymentCallback;
|
|
|
|
|
+ dispatch(reqPaymentOrder(data));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (areaItem.code===APP_COUNTRY_CODE.RU){
|
|
|
|
|
+ if (global.ruPaytypeSelect!=null){
|
|
|
|
|
+ global.ruPaytypeSelect.show((eventType)=>{
|
|
|
|
|
+ data.eventType=eventType;
|
|
|
|
|
+ reqOrder();
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ reqOrder();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
const renderFirst=()=>{
|
|
const renderFirst=()=>{
|
|
|
if (firstpay==null)return (<></>);
|
|
if (firstpay==null)return (<></>);
|
|
@@ -257,12 +273,22 @@ const BRDeposit=()=>{
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
+ const renderPaytypeSelect=()=>{
|
|
|
|
|
+ if (areaItem.code===APP_COUNTRY_CODE.RU){
|
|
|
|
|
+ return (<RUPaytypeSelect/>)
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ return (<></>);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
return (
|
|
return (
|
|
|
<Spring type="slideUp" className={styles.container}>
|
|
<Spring type="slideUp" className={styles.container}>
|
|
|
{renderFirst()}
|
|
{renderFirst()}
|
|
|
{renderDeposits()}
|
|
{renderDeposits()}
|
|
|
{renderPromotions()}
|
|
{renderPromotions()}
|
|
|
{renderDepositBtn()}
|
|
{renderDepositBtn()}
|
|
|
|
|
+ {renderPaytypeSelect()}
|
|
|
</Spring>
|
|
</Spring>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|