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 ? (