✨ feat: 支持支付宝主题
This commit is contained in:
parent
dc06f545a9
commit
9419461011
|
@ -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}
|
||||
>
|
||||
{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 ? (
|
||||
|
|
Loading…
Reference in New Issue