|
@@ -14,8 +14,11 @@ class ModeChange extends Component {
|
|
|
this.getStyle=this.getStyle.bind(this);
|
|
|
|
|
|
}
|
|
|
- getStyle(){
|
|
|
- const {hideBtn} = this.props;
|
|
|
+ getStyle(flag){
|
|
|
+ const {hideBtn,config0} = this.props;
|
|
|
+ if(flag===1&&config0===1){
|
|
|
+ return style['fade'];
|
|
|
+ }
|
|
|
return hideBtn?'':style['fade'];
|
|
|
}
|
|
|
render(){
|
|
@@ -34,43 +37,43 @@ class ModeChange extends Component {
|
|
|
<div className={style["oper"]}>
|
|
|
<p className={this.getStyle()}>
|
|
|
<span>开启模板智能推送:</span>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config0',isOpen?'1':'0'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config0',isOpen?1:0):null}>
|
|
|
<img src={isOpen?sopen:sclose} alt=""/>
|
|
|
{isOpen?'开':'关'}
|
|
|
</a>
|
|
|
</p>
|
|
|
- <p className={this.getStyle()}>
|
|
|
+ <p className={this.getStyle(1)}>
|
|
|
<span>开启一般情况默认值:</span>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config1',general?'0':'1'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn&&isOpen?()=>changeType('config1',general?1:0):null}>
|
|
|
<img src={general?sclose:sopen} alt=""/>
|
|
|
{general?'关':'开'}
|
|
|
</a>
|
|
|
</p>
|
|
|
- <p className={this.getStyle()+" "+style['big-marb']}>
|
|
|
+ <p className={this.getStyle(1)+" "+style['big-marb']}>
|
|
|
<span>开启开启其他史默认值:</span>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config2',ohis?'0':'1'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn&&isOpen?()=>changeType('config2',ohis?1:0):null}>
|
|
|
<img src={ohis?sclose:sopen} alt=""/>
|
|
|
{ohis?'关':'开'}
|
|
|
</a>
|
|
|
</p>
|
|
|
<p className={this.getStyle()}>
|
|
|
<span>默认字体大小:</span>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config3','0'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config3',0):null}>
|
|
|
<img src={fontsize?radio_on:radio_off} alt=""/>
|
|
|
标准
|
|
|
</a>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config3','1'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config3',1):null}>
|
|
|
<img src={fontsize?radio_off:radio_on} alt=""/>
|
|
|
增大
|
|
|
</a>
|
|
|
</p>
|
|
|
<p className={this.getStyle()}>
|
|
|
<span>默认字体颜色:</span>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config4','0'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config4',0):null}>
|
|
|
<img src={color?radio_on:radio_off} alt=""/>
|
|
|
标准
|
|
|
</a>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config4','1'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config4',1):null}>
|
|
|
<img src={color?radio_off:radio_on} alt=""/>
|
|
|
增黑
|
|
|
</a>
|