From 941946101175cb89a82cd577a6880106916988df Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 30 Nov 2023 16:35:24 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=94=AF=E6=8C=81=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 9ff4922b..b6bae298 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -103,7 +103,7 @@ export default class addKnockGold extends Component { irregularTime: [[]], //不规则时间 ruleDate: [[]], //规则日期 ruleWeek: [], //规则周 - provider: "voucher_wechat_lsxd", //主体名称 + provider: "lsxd", //主体名称 receive_mode: 1 }, TimeDiffer: "", @@ -200,7 +200,6 @@ export default class addKnockGold extends Component { model.weight = String(this.props.data.weight) model.early_per = this.props.data.early_per.map((item) => String(item)) model.channel = String(this.props.data.channel) - model.provider = this.props.data.provider || "voucher_wechat_lsxd" model.natural_limit = String(this.props.data.natural_limit) model.brush_limit = String(this.props.data.brush_limit) model.card_type = this.props.data.card_type.map((item) => String(item)) @@ -775,9 +774,14 @@ export default class addKnockGold extends Component { if (target.value != 1) { this.onHandleChange(1, "receive_mode") } - if (target.value != 2) { + + if (target.value == 2) { this.onHandleChange("voucher_wechat_lsxd", "provider") } + + if (target.value == 1) { + this.onHandleChange("lsxd", "provider") + } }} value={this.state.model.channel} > @@ -788,14 +792,23 @@ export default class addKnockGold extends Component { { this.onHandleChange(target.value, "provider") }} value={this.state.model.provider} > - 蓝色兄弟 - 福建兴旺 + {this.state.model.channel == 1 ? ( + <> + 蓝色兄弟 + 福建兴旺 + + ) : ( + <> + 蓝色兄弟 + 福建兴旺 + + )} {this.state.model.channel == 1 && !this.props.ysf ? (