|
@@ -10,7 +10,7 @@ import {
|
|
|
getIsInit
|
|
getIsInit
|
|
|
} from "@features/agentSlice";
|
|
} from "@features/agentSlice";
|
|
|
import link_icon from "@assets/agent/link.png";
|
|
import link_icon from "@assets/agent/link.png";
|
|
|
-import doller_icon from "@assets/agent/doller_icon.png";
|
|
|
|
|
|
|
+// import doller_icon from "@assets/agent/doller_icon.png";
|
|
|
import policy_icon from "@assets/agent/policy.png";
|
|
import policy_icon from "@assets/agent/policy.png";
|
|
|
import rank_icon from "@assets/agent/rank_icon.png";
|
|
import rank_icon from "@assets/agent/rank_icon.png";
|
|
|
import user_icon from "@assets/agent/user_icon.png";
|
|
import user_icon from "@assets/agent/user_icon.png";
|
|
@@ -63,6 +63,16 @@ const WAgent=({close})=>{
|
|
|
if (agentGetStatus[ID]===REQ_STATUS.LOADING)return;
|
|
if (agentGetStatus[ID]===REQ_STATUS.LOADING)return;
|
|
|
dispatch(reqAgentGet(ID));
|
|
dispatch(reqAgentGet(ID));
|
|
|
}
|
|
}
|
|
|
|
|
+ const getDollerIcon=()=>{
|
|
|
|
|
+ try {
|
|
|
|
|
+ let DOLLAR=global.DOLLAR;
|
|
|
|
|
+ let icon=require(`@assets/agent/doller_icon_${DOLLAR}.png`);
|
|
|
|
|
+ return icon;
|
|
|
|
|
+ }
|
|
|
|
|
+ catch(err){
|
|
|
|
|
+ return require(`@assets/agent/doller_icon_$.png`);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
const renderBase=()=>{
|
|
const renderBase=()=>{
|
|
|
let agentUrl=agentLink;
|
|
let agentUrl=agentLink;
|
|
|
let bonus=agentInfo.bonus?agentInfo.bonus:0;
|
|
let bonus=agentInfo.bonus?agentInfo.bonus:0;
|
|
@@ -304,7 +314,7 @@ const WAgent=({close})=>{
|
|
|
<div className={styles.title_con}>
|
|
<div className={styles.title_con}>
|
|
|
<div className={`${styles.title} ${styles.text_white}`}>
|
|
<div className={`${styles.title} ${styles.text_white}`}>
|
|
|
<div className={styles.base_icon}>
|
|
<div className={styles.base_icon}>
|
|
|
- <img src={doller_icon}/>
|
|
|
|
|
|
|
+ <img src={getDollerIcon()}/>
|
|
|
</div>
|
|
</div>
|
|
|
{i18n.t("agent.bonus.title_bonus")}
|
|
{i18n.t("agent.bonus.title_bonus")}
|
|
|
</div>
|
|
</div>
|