Commit 19ef7d2d by Zhang Xin

fix css bug

parent 659d84c0
......@@ -47,7 +47,7 @@ export default class FinishAskContainer extends React.Component{
this.props.showPopup({
popupText : '检测到店铺反常,请站出店铺,关闭店铺门后重新验证您的身份',
popupButtons:[btnDom,clockDom],
classNames : 'finishCloseDoor'
classNames : 'popupExtClass'
})
this.props.uploadErrs(2);
}
......
......@@ -22,6 +22,3 @@
display: inline-block;
align-items: center;
}
.finishCloseDoor .defaultPopup .defaultPopupText{
margin-top: 0.525rem !important;
}
......@@ -173,7 +173,7 @@ export default class OtherQuestionContainer extends React.Component{
popupInfo:{
"popupText":"提交前请输入相关信息,如果不想提交可以直接跳过(右上角)",
"showPopup":true,
"classNames" : 'finishCloseDoor',
"classNames" : 'popupExtClass',
"popupButtons": [<ButtonComponent key={"btn"} option={this.handleShowPopo.bind(this)} text={"确定"}/>]
}
})
......
......@@ -110,7 +110,3 @@
.OtherQuestionContainer .opeationContainer .noMoreBtn{
}
.finishCloseDoor .defaultPopup .defaultPopupText{
margin-top: 0.525rem !important;
}
......@@ -188,10 +188,13 @@ class PageContainer extends React.Component {
}
showError(errMsg){
let btnDom = <Button key={"pagecountBack1"} style={{'width':UTILPATH.getRemByPx(260)}} text={'确定'} option={this.hideError}/>
let className = errMsg.length > 24 ? 'popupExtClass' : '';
let style = {'width':UTILPATH.getRemByPx(260)}
let btnDom = <Button key={"pagecountBack1"} style={style} text={'确定'} option={this.hideError}/>
this.showPopup({
popupText : errMsg,
popupButtons:[btnDom]
popupButtons:[btnDom],
classNames : className
})
}
......
......@@ -8,3 +8,6 @@
.pageContainer.backColfff{
background-color: #ffffff;
}
.popupExtClass .defaultPopup .defaultPopupText{
margin-top: 0.525rem !important;
}
\ No newline at end of file
......@@ -2,9 +2,6 @@ import actionTypes from '../actiontype/error';
const addErrors = (state,data)=>{
console.log(state);
console.log(data);
return Object.assign({},state,{errMsg:data});
}
......
......@@ -39,7 +39,6 @@ const getIp = ()=>{
// credentials : 'include',
method : 'GET',
mode : 'cors',
body : {}
}).then(checkStatus)
.then(parseJson)
.then((data) => {
......@@ -83,7 +82,6 @@ const testIp = (ip) => {
// credentials : 'include',
method : 'GET',
mode : 'cors',
body : {}
}).then(checkStatus)
.then(parseJson)
.then((data) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment