Merge branch 'master' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/frontend

This commit is contained in:
姜棚 2021-11-26 17:17:22 +08:00
commit b6c07eb5ab
7 changed files with 15 additions and 7 deletions

View File

@ -177,7 +177,9 @@ import classNames from 'classnames'
<input name={this.props.name} disabled={disabled} type={kind} onBlur={this.losefofn} onFocus={this.focusFn} style={{resize:'none'}} value={this.props.value} onKeyDown={(e)=>this.sureFns(e)} maxLength={maxLength} onChange={this.clearContent} onInput={this.handleInputChange} style={{height:height,lineHeight:height,width:width,textOverflow:'ellipsis'}} className={classes} placeholder={placeholder?placeholder:'请输入'}/> <input name={this.props.name} disabled={disabled} type={kind} onBlur={this.losefofn} onFocus={this.focusFn} style={{resize:'none'}} value={this.props.value} onKeyDown={(e)=>this.sureFns(e)} maxLength={maxLength} onChange={this.clearContent} onInput={this.handleInputChange} style={{height:height,lineHeight:height,width:width,textOverflow:'ellipsis'}} className={classes} placeholder={placeholder?placeholder:'请输入'}/>
<div className="ipticonR"> <div className="ipticonR">
{disabled==false&&this.props.markedShow?<span className="showpwd" onClick={()=>this.showpwdFn(this)}>-</span>:null} {disabled==false&&this.props.markedShow?<span className="showpwd" onClick={()=>this.showpwdFn(this)}>
{kind=="text"?<Icon type="eye-o" className="pwdShow"/>:<Icon className="pwdShow" type="closed-eye" />}
</span>:null}
{disabled==false&&clearShow==true&&this.state.iptVal?<svg onClick={this.clearItem.bind(this)} viewBox="0 0 16 16" width="16px" height="16px"><circle fill="#AAAFBA" fill-rule="evenodd" cx="8" cy="8" r="8"></circle><path d="M5.333 5.333l5.334 5.334M10.667 5.333l-5.334 5.334" stroke="#FFF" stroke-linecap="square"></path></svg>:null} {disabled==false&&clearShow==true&&this.state.iptVal?<svg onClick={this.clearItem.bind(this)} viewBox="0 0 16 16" width="16px" height="16px"><circle fill="#AAAFBA" fill-rule="evenodd" cx="8" cy="8" r="8"></circle><path d="M5.333 5.333l5.334 5.334M10.667 5.333l-5.334 5.334" stroke="#FFF" stroke-linecap="square"></path></svg>:null}
{disabled==false&&countShow==true?<span className="countTip">{this.state.iptVallength}/{maxLength}</span>:null} {disabled==false&&countShow==true?<span className="countTip">{this.state.iptVallength}/{maxLength}</span>:null}
{unit?<font className="unit">{unit}</font>:null} {unit?<font className="unit">{unit}</font>:null}

View File

@ -3,7 +3,6 @@
.iptfillself{ .iptfillself{
display: flex; display: flex;
align-items: center; align-items: center;
// margin-bottom: 24px!important;
.label{ .label{
margin-right: 58px; margin-right: 58px;
.warning{ .warning{
@ -94,3 +93,6 @@
right: 0; right: 0;
color: #939599; color: #939599;
} }
.pwdShow{
font-size: 22px;
}

View File

@ -345,7 +345,7 @@ export default class adduserinfo extends React.Component{
</FormItem> </FormItem>
<FormItem labelname="商品类型" prop="type" id="type"> <FormItem labelname="商品类型" prop="type" id="type">
<RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.type}> <RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.type}>
<RadioButton value={1}></RadioButton> <RadioButton value={1}></RadioButton>
<RadioButton value={2}>卡密</RadioButton> <RadioButton value={2}>卡密</RadioButton>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>

View File

@ -278,7 +278,7 @@ export default class adduserinfo extends React.Component{
</FormItem> </FormItem>
<FormItem labelname="商品类型" prop="type" id="type"> <FormItem labelname="商品类型" prop="type" id="type">
<RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.product_type}> <RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.product_type}>
<RadioButton value={1}></RadioButton> <RadioButton value={1}></RadioButton>
<RadioButton value={2}>卡密</RadioButton> <RadioButton value={2}>卡密</RadioButton>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>

View File

@ -278,7 +278,7 @@ export default class adduserinfo extends React.Component{
</FormItem> </FormItem>
<FormItem labelname="商品类型" prop="type" id="type"> <FormItem labelname="商品类型" prop="type" id="type">
<RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.product_type}> <RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.product_type}>
<RadioButton value={1}></RadioButton> <RadioButton value={1}></RadioButton>
<RadioButton value={2}>卡密</RadioButton> <RadioButton value={2}>卡密</RadioButton>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>

View File

@ -278,7 +278,7 @@ export default class adduserinfo extends React.Component{
</FormItem> </FormItem>
<FormItem labelname="商品类型" prop="type" id="type"> <FormItem labelname="商品类型" prop="type" id="type">
<RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.product_type}> <RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.product_type}>
<RadioButton value={1}></RadioButton> <RadioButton value={1}></RadioButton>
<RadioButton value={2}>卡密</RadioButton> <RadioButton value={2}>卡密</RadioButton>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>

View File

@ -29,6 +29,7 @@ export default class adduserinfo extends React.Component{
departmentJob:[],//岗位 departmentJob:[],//岗位
roleList:[],//角色 roleList:[],//角色
headImg:'', headImg:'',
pwdtype:'password',
defaultFileList:[{src:''}], defaultFileList:[{src:''}],
disabled:false, disabled:false,
id:'' id:''
@ -284,6 +285,9 @@ export default class adduserinfo extends React.Component{
}).catch(err=>{ }).catch(err=>{
}); });
} }
changeType(e){
this.setState({pwdtype:e});
}
//获取角色 //获取角色
getRoleFn(){ getRoleFn(){
let _self=this; let _self=this;
@ -397,7 +401,7 @@ export default class adduserinfo extends React.Component{
model2.password = e; model2.password = e;
this.setState({model:model2}) this.setState({model:model2})
}} }}
kind="password" markedShow={(e)=>{this.changeType(e)}} kind={this.state.pwdtype}
disabled={this.state.disabled} disabled={this.state.disabled}
onClearItem={(e)=>{ onClearItem={(e)=>{
let model2 = this.state.model; let model2 = this.state.model;