diff --git a/src/components/input/main.js b/src/components/input/main.js index 37a47875..963580a6 100644 --- a/src/components/input/main.js +++ b/src/components/input/main.js @@ -177,7 +177,9 @@ import classNames from 'classnames' 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:'请输入'}/>
- {disabled==false&&this.props.markedShow?this.showpwdFn(this)}>-:null} + {disabled==false&&this.props.markedShow?this.showpwdFn(this)}> + {kind=="text"?:} + :null} {disabled==false&&clearShow==true&&this.state.iptVal?:null} {disabled==false&&countShow==true?{this.state.iptVallength}/{maxLength}:null} {unit?{unit}:null} diff --git a/src/components/input/main.less b/src/components/input/main.less index da856e1d..8ec97695 100644 --- a/src/components/input/main.less +++ b/src/components/input/main.less @@ -3,7 +3,6 @@ .iptfillself{ display: flex; align-items: center; - // margin-bottom: 24px!important; .label{ margin-right: 58px; .warning{ @@ -93,4 +92,7 @@ margin-left: 8px; right: 0; color: #939599; +} +.pwdShow{ + font-size: 22px; } \ No newline at end of file diff --git a/src/pages/exchangecode/commodity/goodedit.js b/src/pages/exchangecode/commodity/goodedit.js index 7005a708..34119bea 100644 --- a/src/pages/exchangecode/commodity/goodedit.js +++ b/src/pages/exchangecode/commodity/goodedit.js @@ -345,7 +345,7 @@ export default class adduserinfo extends React.Component{ {this.onTypeChange(e)}} value={this.state.model.type}> - 直冲 + 直充 卡密 diff --git a/src/pages/exchangecode/product/add.js b/src/pages/exchangecode/product/add.js index 8517dd94..26718fe3 100644 --- a/src/pages/exchangecode/product/add.js +++ b/src/pages/exchangecode/product/add.js @@ -278,7 +278,7 @@ export default class adduserinfo extends React.Component{ {this.onTypeChange(e)}} value={this.state.model.product_type}> - 直冲 + 直充 卡密 diff --git a/src/pages/plan/key/product/add.js b/src/pages/plan/key/product/add.js index 8517dd94..26718fe3 100644 --- a/src/pages/plan/key/product/add.js +++ b/src/pages/plan/key/product/add.js @@ -278,7 +278,7 @@ export default class adduserinfo extends React.Component{ {this.onTypeChange(e)}} value={this.state.model.product_type}> - 直冲 + 直充 卡密 diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index 8517dd94..26718fe3 100644 --- a/src/pages/plan/product/add.js +++ b/src/pages/plan/product/add.js @@ -278,7 +278,7 @@ export default class adduserinfo extends React.Component{ {this.onTypeChange(e)}} value={this.state.model.product_type}> - 直冲 + 直充 卡密 diff --git a/src/pages/system/account/add/adduserinfo/adduserinfo.js b/src/pages/system/account/add/adduserinfo/adduserinfo.js index a2b60716..1aaf8f03 100644 --- a/src/pages/system/account/add/adduserinfo/adduserinfo.js +++ b/src/pages/system/account/add/adduserinfo/adduserinfo.js @@ -29,6 +29,7 @@ export default class adduserinfo extends React.Component{ departmentJob:[],//岗位 roleList:[],//角色 headImg:'', + pwdtype:'password', defaultFileList:[{src:''}], disabled:false, id:'' @@ -284,6 +285,9 @@ export default class adduserinfo extends React.Component{ }).catch(err=>{ }); } + changeType(e){ + this.setState({pwdtype:e}); + } //获取角色 getRoleFn(){ let _self=this; @@ -397,7 +401,7 @@ export default class adduserinfo extends React.Component{ model2.password = e; this.setState({model:model2}) }} - kind="password" + markedShow={(e)=>{this.changeType(e)}} kind={this.state.pwdtype} disabled={this.state.disabled} onClearItem={(e)=>{ let model2 = this.state.model;