feat: 支持支付宝主题

This commit is contained in:
wangsongsole 2023-11-30 16:35:24 +08:00
parent dc06f545a9
commit 9419461011
1 changed files with 19 additions and 6 deletions

View File

@ -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 {
</FormItem>
<FormItem labelname="主体名称" prop="provider" id="provider" key="provider">
<RadioGroup
disabled={this.props?.data?.id || this.state.model.channel === 3 ? true : false}
disabled={this.props?.data?.id || this.state.model.channel == 3 ? true : false}
onChange={({ target }) => {
this.onHandleChange(target.value, "provider")
}}
value={this.state.model.provider}
>
<RadioButton value={"voucher_wechat_lsxd"}>蓝色兄弟</RadioButton>
<RadioButton value={"voucher_wechat_fjxw"}>福建兴旺</RadioButton>
{this.state.model.channel == 1 ? (
<>
<RadioButton value={"lsxd"}>蓝色兄弟</RadioButton>
<RadioButton value={"fjxw"}>福建兴旺</RadioButton>
</>
) : (
<>
<RadioButton value={"voucher_wechat_lsxd"}>蓝色兄弟</RadioButton>
<RadioButton value={"voucher_wechat_fjxw"}>福建兴旺</RadioButton>
</>
)}
</RadioGroup>
</FormItem>
{this.state.model.channel == 1 && !this.props.ysf ? (