|
@@ -55,7 +55,6 @@ const CashbackInfo = async () => {
|
|
|
const vipInfo = await getVipInfoApi();
|
|
|
const cashbackInfo = await getCashBackApi();
|
|
|
|
|
|
- console.log(112233, cashbackInfo);
|
|
|
const currentGrade = cashbackInfo.rules?.find(
|
|
|
(item) => item.level === (vipInfo.vip_level || 1)
|
|
|
);
|
|
@@ -66,7 +65,7 @@ const CashbackInfo = async () => {
|
|
|
if (item.leve === vipInfo.vip_level) {
|
|
|
return (
|
|
|
<div key={index} className={"relative mr-[10px]"}>
|
|
|
- <Image src={item.src} alt={"vip"} height={100} width={100} />
|
|
|
+ <Image src={item.src} alt={"vip"} height={80} width={80} />
|
|
|
<span
|
|
|
className={"absolute bottom-[25%] w-[100%] text-center text-[0.16rem]"}
|
|
|
style={{ color: item.color }}
|
|
@@ -81,7 +80,7 @@ const CashbackInfo = async () => {
|
|
|
<>
|
|
|
<Box
|
|
|
className={
|
|
|
- "w-full mx-[0.1rem] rounded-[20px_20px_0_0] border-x-[2px] border-b-[2px] border-t-[1px] border-[#bf42df] shadow-[0_0_50px_#980cf9_inset]"
|
|
|
+ "w-full mb-[.1rem] rounded-[10px] bg-gradient-to-r from-[#1e2931] to-[#172f29]"
|
|
|
}
|
|
|
>
|
|
|
<div className={"flex"}>
|
|
@@ -89,28 +88,35 @@ const CashbackInfo = async () => {
|
|
|
<div className={"flex-1"}>
|
|
|
<div className={"flex items-baseline"}>
|
|
|
<span
|
|
|
- className={"mr-[0.06rem] text-[0.25rem] font-bold text-[#bf42df]"}
|
|
|
+ className={"mr-[0.06rem] text-[0.23rem] font-bold text-[#11de68]"}
|
|
|
>
|
|
|
{currentGrade?.cashback}%
|
|
|
</span>
|
|
|
<span
|
|
|
- className={"mr-[0.06rem] text-[0.23rem] font-bold text-[#bf42df]"}
|
|
|
+ className={"mr-[0.06rem] text-[0.23rem] font-bold text-[#11de68]"}
|
|
|
>
|
|
|
{t("cashback.cashbackTitle")}
|
|
|
</span>
|
|
|
<span
|
|
|
className={
|
|
|
- "w-[100%] text-right align-text-bottom text-[0.1rem] text-[#f6d4ff]"
|
|
|
+ "w-[100%] text-right align-text-bottom text-[0.1rem] text-[#fff]"
|
|
|
}
|
|
|
>
|
|
|
Max {maxGrade?.cashback}%
|
|
|
</span>
|
|
|
</div>
|
|
|
<div className={"mt-[0.1rem]"}>
|
|
|
- <Progress num={percentage(vipInfo?.vip_exp, vipInfo.vip_score_exp)} />
|
|
|
+ <Progress
|
|
|
+ num={percentage(vipInfo?.vip_exp, vipInfo.vip_score_exp)}
|
|
|
+ style={{
|
|
|
+ "--fill-color": "#11de68",
|
|
|
+ "--track-color": "#8f9498",
|
|
|
+ "--track-width": "0.06rem",
|
|
|
+ }}
|
|
|
+ />
|
|
|
<div
|
|
|
className={
|
|
|
- "font-lightl mt-[0.04rem] text-right text-[0.1rem] text-[#f6d4ff]"
|
|
|
+ "font-lightl mt-[0.04rem] text-right text-[0.1rem] text-[#5f7880]"
|
|
|
}
|
|
|
>
|
|
|
{t("ProfilePage.expTips", {
|
|
@@ -125,11 +131,11 @@ const CashbackInfo = async () => {
|
|
|
<Week cashbackInfo={cashbackInfo} />
|
|
|
|
|
|
<CashbackTable cashbackInfo={cashbackInfo} />
|
|
|
- <div className={"mt-[0.0694rem]"}>
|
|
|
- <h1 className={"font-bold text-[#01a5a5]"}>{t("cashback.rules")}</h1>
|
|
|
+ <div className={"mt-[0.2rem]"}>
|
|
|
+ <h1 className={"font-bold text-[#fff]"}>{t("cashback.rules")}</h1>
|
|
|
<ul
|
|
|
className={
|
|
|
- "list-decimal pl-[0.1389rem] text-[0.12rem] leading-[0.18rem] text-[#fff]"
|
|
|
+ "list-decimal pl-[0.1389rem] text-[0.12rem] leading-[0.18rem] text-[#6e848b]"
|
|
|
}
|
|
|
>
|
|
|
<li>{t("cashback.rulesFirst")} </li>
|