This commit is contained in:
姜棚 2021-11-26 11:22:21 +08:00
parent fe0c173380
commit d921066bef
3 changed files with 21 additions and 6 deletions

View File

@ -208,3 +208,9 @@
padding-right: 30px;
}
}
.newpage{
position: absolute;
top: 20px;
left: 380px;
}

View File

@ -543,15 +543,15 @@ export default class acclist extends React.Component{
</FormItem>
<FormItem labelname="重复选择商品" id="allow_repetition" prop="allow_repetition">
<RadioGroup onChange={(e)=>this.onRepetitionChange(e)} value={this.state.model.allow_repetition}>
<RadioButton value={1}></RadioButton>
<RadioButton value={2}></RadioButton>
<RadioButton value={0}></RadioButton>
<RadioButton value={1}></RadioButton>
</RadioGroup>
</FormItem>
<FormItem labelname="是否允许亏损" id="allow_loss" prop="allow_loss">
<RadioGroup onChange={(e)=>this.onLossChange(e)} value={this.state.model.allow_loss}>
<RadioButton value={1} ></RadioButton>
<RadioButton value={2} ></RadioButton>
<RadioButton value={0} ></RadioButton>
<RadioButton value={1} ></RadioButton>
</RadioGroup>
</FormItem>
</Form>

View File

@ -8,8 +8,10 @@ import FormItem from "../../../components/form-item/main"
import {addPlanStep,handelResponse,getTheme} from "../../../assets/api.js"
import _ from "lodash";
import Bus from "../../../assets/eventBus.js"
import "./add.less"
const TabPanel = Tabs.TabPanel;
export default class acclist extends React.Component{
constructor(props){
super(props)
@ -98,15 +100,22 @@ export default class acclist extends React.Component{
{ type: "required", message: "请选择落地页"},
],
}
return(
<div id="step3">
<Form model={this.state.model} rules={rules} ref="form1">
<FormItem labelname="选择落地页" prop="theme_id" id="theme_id" >
<Select options={this.state.options} placeholder="选择一项" width={515} value={this.state.model.theme_id} onChange={(e)=>{
<Select options={this.state.options} placeholder="选择一项" width={355} value={this.state.model.theme_id} onChange={(e)=>{
this.onThemeChange(e)
Bus.emit('change',"theme_id" ,e);
}} />
<Button type="primary" onClick={()=>{this.linkToPag()}} >新建落地页</Button>
<Button type="primary" onClick={()=>{this.linkToPage()}} className="newpage">
新建落地页
</Button>
</FormItem>
<FormItem labelname="兑换入口交互" prop="link">
<RadioGroup onChange={(e)=>{ this.onLinkChange(e)} } value={this.state.model.link}>