diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 627a1a92..c08ed26f 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -102,7 +102,8 @@ export default class addKnockGold extends Component { irregularTime: [[]], //不规则时间 ruleDate: [[]], //规则日期 ruleWeek: [], //规则周 - provider: "voucher_wechat_lsxd" //主体名称 + provider: "voucher_wechat_lsxd", //主体名称 + receive_mode: 1 }, TimeDiffer: "", visible: false, //加框弹窗 @@ -204,6 +205,7 @@ export default class addKnockGold extends Component { model.card_type = this.props.data.card_type.map((item) => String(item)) model.receive_number = this.props.data.receive_conf.num model.receive_type = this.props.data.receive_conf.type + model.receive_mode = this.props.data.receive_mode model.timer[0] = this.props.data.time_limit.receive_time.start_time model.timer[1] = this.props.data.time_limit.receive_time.end_time model.timer_type = !this.props.data.time_limit.receive_time?.start_time ? "1" : "2" @@ -470,6 +472,7 @@ export default class addKnockGold extends Component { const transformData = {} transformData.channel = this.state.model.channel transformData.provider = this.state.model.provider + transformData.receive_mode = this.state.model.receive_mode /* 是支付宝立减金 才进行模板赋值操作 */ if (transformData.channel == 1) { transformData.temp_no = this.state.model.temp_no @@ -758,6 +761,9 @@ export default class addKnockGold extends Component { } else { this.onHandleChange("", "instruction") } + if (target.value !== 1) { + this.onHandleChange(1, "receive_mode") + } }} value={this.state.model.channel} > @@ -778,6 +784,18 @@ export default class addKnockGold extends Component { 福建兴旺 + + { + this.onHandleChange(target.value, "receive_mode") + }} + value={this.state.model.receive_mode} + > + 支付宝 + H5页面 + + { diff --git a/src/components/redPackets/index.jsx b/src/components/redPackets/index.jsx index c20be02a..d248d4ce 100644 --- a/src/components/redPackets/index.jsx +++ b/src/components/redPackets/index.jsx @@ -234,7 +234,7 @@ export default class addKnockGold extends Component { echoFun(UserSelectList = []) { const model = cloneDeep(this.props.data) if (model) { - const { early_notifier, early_per, begin_time, end_time } = model + const { early_notifier, early_per, begin_time, end_time, receive_mode } = model model.early_notifier = early_notifier .map((item) => { return UserSelectList.map((items) => { @@ -246,6 +246,7 @@ export default class addKnockGold extends Component { .filter((item1) => item1) model.effect_date = [] model.effect_date[0] = begin_time + model.receive_mode = receive_mode || 1 model.effect_date[1] = end_time model.copy && (model.cash_activity_id = uuid(8)) /* 是否是复制 */ /* 以下操作 筛选出输入框的预警值并经行填充 */ @@ -522,6 +523,9 @@ export default class addKnockGold extends Component { } else { this.onHandleChange("", "instruction") } + if (target.value !== 1) { + this.onHandleChange(1, "receive_mode") + } }} value={this.state.model.channel} > @@ -547,6 +551,18 @@ export default class addKnockGold extends Component { 随机 + + { + this.onHandleChange(target.value, "receive_mode") + }} + value={this.state.model.receive_mode} + > + 支付宝 + H5页面 + +