✨ feat: 支付宝立减金、红包支持H5领取
This commit is contained in:
parent
f5a565721b
commit
082b43dd26
|
@ -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 {
|
|||
<RadioButton value={"voucher_wechat_fjxw"}>福建兴旺</RadioButton>
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
<FormItem labelname="领取方式" prop="receive_mode" id="receive_mode" key="receive_mode">
|
||||
<RadioGroup
|
||||
disabled={this.state.model.channel != 1 ? true : false}
|
||||
onChange={({ target }) => {
|
||||
this.onHandleChange(target.value, "receive_mode")
|
||||
}}
|
||||
value={this.state.model.receive_mode}
|
||||
>
|
||||
<RadioButton value={1}>支付宝</RadioButton>
|
||||
<RadioButton value={2}>H5页面</RadioButton>
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
<FormItem labelname="立减金平台批次号" prop="channel_activity_id" id="batch_number">
|
||||
<Ipt
|
||||
onChange={(value) => {
|
||||
|
|
|
@ -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 {
|
|||
<RadioButton value={"2"}>随机</RadioButton>
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
<FormItem labelname="领取方式" prop="receive_mode" id="receive_mode" key="receive_mode">
|
||||
<RadioGroup
|
||||
disabled={this.state.model.channel != 1 ? true : false}
|
||||
onChange={({ target }) => {
|
||||
this.onHandleChange(target.value, "receive_mode")
|
||||
}}
|
||||
value={this.state.model.receive_mode}
|
||||
>
|
||||
<RadioButton value={1}>支付宝</RadioButton>
|
||||
<RadioButton value={2}>H5页面</RadioButton>
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
<FormItem labelname="红包批次号" prop="channel_activity_id" id="batch_number">
|
||||
<Ipt
|
||||
disabled={true}
|
||||
|
|
|
@ -54,6 +54,7 @@ export function model({ data }) {
|
|||
end_time: "" /* 生效结束时间 */,
|
||||
receive_type: 0, //领取时间类型
|
||||
wishing: "",
|
||||
receive_mode: 1,
|
||||
/* 不规则时间 */
|
||||
receive_irregular: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue