Commit c963d3b1 by zhanghaozhe

bug 77 80

parent 14fe0514
...@@ -46,9 +46,14 @@ class App extends Component { ...@@ -46,9 +46,14 @@ class App extends Component {
this.props.setCurrentUser(this.transformUser(res)) this.props.setCurrentUser(this.transformUser(res))
}) })
const routeMatchRule = /binding-tel|forgot/
const {history} = this.props const {history} = this.props
history.listen(location => { history.listen(location => {
if (location.pathname.startsWith('/passport')) { const {pathname} = location
if (pathname.startsWith('/passport')) {
if(routeMatchRule.test(pathname)){
return
}
location.state = {from: this.previousLocation}; location.state = {from: this.previousLocation};
} }
}) })
......
...@@ -16,6 +16,11 @@ import { connect } from "react-redux"; ...@@ -16,6 +16,11 @@ import { connect } from "react-redux";
class SetPassword extends Component { class SetPassword extends Component {
componentDidMount() {
console.log(this.props.location);
}
render() { render() {
let {values, errors, location} = this.props let {values, errors, location} = this.props
let {from} = location.state || {from: {pathname: '/'}} let {from} = location.state || {from: {pathname: '/'}}
......
...@@ -13,15 +13,11 @@ ...@@ -13,15 +13,11 @@
padding-top: 20px; padding-top: 20px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
text-align: center;
zoom: 0.5; zoom: 0.5;
img { img {
position: absolute; height: 800px;
top: 50%;
left: 50%;
margin-left: -225px;
margin-top: -400px;
text-align: center;
} }
} }
...@@ -35,6 +31,7 @@ ...@@ -35,6 +31,7 @@
height: 45px; height: 45px;
background: $bg_000; background: $bg_000;
padding: 0 10px; padding: 0 10px;
.placard-sharetxt { .placard-sharetxt {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -87,6 +84,7 @@ ...@@ -87,6 +84,7 @@
} }
} }
} }
.hide { .hide {
display: none; display: none;
} }
......
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