|
|
@@ -73,6 +73,16 @@ const BRDeposit=()=>{
|
|
|
reqOrder();
|
|
|
}
|
|
|
}
|
|
|
+ const getGiftImg=()=>{
|
|
|
+ try {
|
|
|
+ let DOLLAR=global.DOLLAR;
|
|
|
+ let icon=require(`@assets/pay/fpayimg_${DOLLAR}.png`);
|
|
|
+ return icon;
|
|
|
+ }
|
|
|
+ catch(err){
|
|
|
+ return require(`@assets/pay/fpayimg_$.png`);
|
|
|
+ }
|
|
|
+ }
|
|
|
const renderFirst=()=>{
|
|
|
if (firstpay==null)return (<></>);
|
|
|
let price=Number(firstpay.goodsPrice);
|
|
|
@@ -80,38 +90,39 @@ const BRDeposit=()=>{
|
|
|
let total=price+give;
|
|
|
let title=firstpay.goodsName==="firstpay"?i18n.t("deposit.banner.first_title"):i18n.t("deposit.banner.recommend_title");
|
|
|
return (
|
|
|
- <button className={styles.first_pay} onClick={()=>{
|
|
|
+ <button className={styles.first_pay} onClick={() => {
|
|
|
onGetPaymentOder({
|
|
|
- price:firstpay.goodsPrice,
|
|
|
- goodsName:firstpay.goodsName,
|
|
|
- payType:firstpay.gear.id,
|
|
|
- GiftsID:firstpay.GiftsID
|
|
|
+ price: firstpay.goodsPrice,
|
|
|
+ goodsName: firstpay.goodsName,
|
|
|
+ payType: firstpay.gear.id,
|
|
|
+ GiftsID: firstpay.GiftsID
|
|
|
})
|
|
|
}}>
|
|
|
<div className={styles.pay_info}>
|
|
|
<div className={styles.title}>{title}</div>
|
|
|
<div className={styles.price_con}>
|
|
|
- <div className={styles.total}>{global.DOLLAR+total}</div>
|
|
|
+ <div className={styles.total}>{global.DOLLAR + total}</div>
|
|
|
<div className={styles.origin}>
|
|
|
- {global.DOLLAR+price}
|
|
|
+ {global.DOLLAR + price}
|
|
|
<div className={styles.ori_line}/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<button className={styles.price_btn}>
|
|
|
- {global.DOLLAR+price}
|
|
|
+ {global.DOLLAR + price}
|
|
|
</button>
|
|
|
</div>
|
|
|
- <img className={styles.gift_img} src={fpayimg}/>
|
|
|
+ {/*<img className={styles.gift_img} src={fpayimg}/>*/}
|
|
|
+ <img className={styles.gift_img} src={getGiftImg()}/>
|
|
|
<div className={styles.percent}>
|
|
|
<img src={img_sc} className={styles.percent}/>
|
|
|
<div className={styles.text}>
|
|
|
- {'+'+Math.floor(give*100/price)+'%'}
|
|
|
+ {'+' + Math.floor(give * 100 / price) + '%'}
|
|
|
</div>
|
|
|
</div>
|
|
|
</button>
|
|
|
)
|
|
|
}
|
|
|
- const renderTitle=()=>{
|
|
|
+ const renderTitle = () => {
|
|
|
return (
|
|
|
<div className={styles.title}>{i18n.t("deposit.list.title")}</div>
|
|
|
)
|