diff --git a/src/components/knockGold/index.less b/src/components/knockGold/index.less index d8c4791c..314092f0 100644 --- a/src/components/knockGold/index.less +++ b/src/components/knockGold/index.less @@ -636,4 +636,10 @@ line-height: 22px; min-height: 200px; } +} + +.r-f { + margin: 5px 0; + font-size: 11px; + color: #a8a8a8; } \ No newline at end of file diff --git a/src/components/knockGold/timeComponent.jsx b/src/components/knockGold/timeComponent.jsx index 2646bfd4..1f959f50 100644 --- a/src/components/knockGold/timeComponent.jsx +++ b/src/components/knockGold/timeComponent.jsx @@ -7,6 +7,27 @@ export default ({ data }) => { }, [data.ruleWeek]) function createElement() { + console.log(data) + if (data.usable_time === "received") { + return ( +
+

可用时间

+

+ 领取后{data.effect_date_type.text},有效期 {data.effect_date} 天 +

+
+ ) + } + if (data.usable_time === "fiexd") { + return ( +
+

可用时间

+

+ {data.fixed_time[0]} ~ {data.fixed_time[1]} +

+
+ ) + } if (data.usable_time === "week") { return (
diff --git a/src/components/knockGold/ysf-mobileComponent.jsx b/src/components/knockGold/ysf-mobileComponent.jsx index 53251313..e7ab6e94 100644 --- a/src/components/knockGold/ysf-mobileComponent.jsx +++ b/src/components/knockGold/ysf-mobileComponent.jsx @@ -59,7 +59,7 @@ export default ({ data }) => {
- {data.instruction || ["week", "irregular"].includes(data.usable_time) ? ( + {data.instruction || data.usable_time ? ( <>

活动说明