From f8c19a3633e29816115851fd22f8e6b53e2a6a44 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 17 Apr 2024 14:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index d1854534..a4d6e893 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -107,7 +107,7 @@ export default class addKnockGold extends Component { receive_mode: 1, is_webview: 0, timer_show: 1, - instructionNotice: noticeZFB + notice: noticeZFB }, subjectList: [], TimeDiffer: "", @@ -140,7 +140,7 @@ export default class addKnockGold extends Component { model.entry_time[1] = this.props.data.time_limit.effect_time.end_time model.timer_show = Number(this.props.data.time_limit.timer_show) || 1 model.instruction = this.props.data.instruction - model.instructionNotice = this.props.data.instructionNotice + model.notice = this.props.data.notice model.fixed_time[0] = this.props.data.time_limit.use_time.fiexd_time?.start_time model.fixed_time[1] = this.props.data.time_limit.use_time.fiexd_time?.end_time @@ -511,7 +511,7 @@ export default class addKnockGold extends Component { transformData.natural_limit = this.state.model.natural_limit transformData.brush_limit = this.state.model.brush_limit transformData.instruction = this.state.model.instruction - transformData.instructionNotice = this.state.model.instructionNotice + transformData.notice = this.state.model.notice transformData.early_per = this.state.model.early_per.filter((item) => item) transformData.early_notifier = this.state.model.early_notifier.map(({ text, key }) => ({ real_name: text, @@ -798,10 +798,10 @@ export default class addKnockGold extends Component { if (value == 1) { this.onHandleChange(defaultInstructionZfb, "instruction") if (this.state.model.receive_mode == 1) { - this.onHandleChange(noticeZFB, "instructionNotice") + this.onHandleChange(noticeZFB, "notice") } } else if (value == 2) { - this.onHandleChange(noticeWX, "instructionNotice") + this.onHandleChange(noticeWX, "notice") this.onHandleChange(defaultInstructionWx, "instruction") } else { this.onHandleChange(defaultInstructionYsf, "instruction") @@ -1612,15 +1612,15 @@ export default class addKnockGold extends Component {
{this.state.model.channel == 2 || (this.state.model.channel == 1 && this.state.model.receive_mode == 1) ? ( - + { - this.onHandleChange(text, "instructionNotice") + this.onHandleChange(text, "notice") }} height={125} width="520px" - text={this.state.model.instructionNotice} + text={this.state.model.notice} limitLength={200} key={this.state.model.channel + 1} />