From 22b65576c2d2143cd5b61b7e14eccfba5417f9b9 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 5 Sep 2023 15:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=BE=AE=E4=BF=A1=E7=AB=8B?= =?UTF-8?q?=E5=87=8F=E9=87=91=E6=96=B0=E5=A2=9E=E4=B8=BB=E4=BD=93=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=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 | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 17241120..0062f7c2 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -101,7 +101,8 @@ export default class addKnockGold extends Component { irregularDate: [[]], //不规则日期 irregularTime: [[]], //不规则时间 ruleDate: [[]], //规则日期 - ruleWeek: [] //规则周 + ruleWeek: [], //规则周 + provider: "voucher_wechat_lsxd" //主体名称 }, TimeDiffer: "", visible: false, //加框弹窗 @@ -197,6 +198,7 @@ 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 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)) @@ -468,6 +470,7 @@ export default class addKnockGold extends Component { transformDataCode() { const transformData = {} transformData.channel = this.state.model.channel + transformData.provider = this.state.model.provider /* 是支付宝立减金 才进行模板赋值操作 */ if (transformData.channel == 1) { transformData.temp_no = this.state.model.temp_no @@ -764,6 +767,20 @@ export default class addKnockGold extends Component { {!this.props.ysf && 云闪付} + {this.state.model.channel == 2 ? ( + + { + this.onHandleChange(target.value, "provider") + }} + value={this.state.model.provider} + > + 蓝色兄弟 + 福建兴旺 + + + ) : null} { @@ -783,7 +800,7 @@ export default class addKnockGold extends Component { /> {this.state.model.channel == 1 ? ( - + { this.onHandleChange(value, "temp_no") @@ -801,9 +818,7 @@ export default class addKnockGold extends Component { alignment={"left"} /> - ) : ( - <> - )} + ) : null}