flx: 绑定类型为优惠券锁定域名
This commit is contained in:
parent
bc0d1a3403
commit
cfdff429da
|
@ -34,9 +34,10 @@ export default class acclist extends React.Component {
|
||||||
//数据模型不可少
|
//数据模型不可少
|
||||||
theme_id: "",
|
theme_id: "",
|
||||||
use: 1,
|
use: 1,
|
||||||
link: 3,
|
link: 1,
|
||||||
},
|
},
|
||||||
select_theme: null,
|
select_theme: null,
|
||||||
|
keyType: sessionStorage.getItem("keyType"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,10 +50,15 @@ export default class acclist extends React.Component {
|
||||||
// 第一步:判断是否优惠券
|
// 第一步:判断是否优惠券
|
||||||
let white = sessionStorage.getItem("white");
|
let white = sessionStorage.getItem("white");
|
||||||
let keyType = sessionStorage.getItem("keyType");
|
let keyType = sessionStorage.getItem("keyType");
|
||||||
console.log("white =>", white);
|
this.setState({
|
||||||
console.log("keyType =>", keyType);
|
keyType: keyType,
|
||||||
|
});
|
||||||
// 2 优惠券
|
// 2 优惠券
|
||||||
if (keyType === "2") {
|
if (keyType === "2") {
|
||||||
|
let model2 = this.state.model;
|
||||||
|
model2.link = 1;
|
||||||
|
this.setState({ model: model2 });
|
||||||
|
|
||||||
if (white === "1") {
|
if (white === "1") {
|
||||||
// 并且是 白名单
|
// 并且是 白名单
|
||||||
params.page = 8;
|
params.page = 8;
|
||||||
|
@ -218,8 +224,12 @@ export default class acclist extends React.Component {
|
||||||
value={this.state.model.link}
|
value={this.state.model.link}
|
||||||
>
|
>
|
||||||
<RadioButton value={1}>大客户</RadioButton>
|
<RadioButton value={1}>大客户</RadioButton>
|
||||||
<RadioButton value={2}>普通商户</RadioButton>
|
<RadioButton value={2} disabled={this.state.keyType === "2"}>
|
||||||
<RadioButton value={3}>备用</RadioButton>
|
普通商户
|
||||||
|
</RadioButton>
|
||||||
|
<RadioButton value={3} disabled={this.state.keyType === "2"}>
|
||||||
|
备用
|
||||||
|
</RadioButton>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
Loading…
Reference in New Issue