Commit 1fad7725 by zhanghaozhe

登录及文案样式

parent a21fffe2
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
} }
} }
.status-1, .status-2 { .status-1, .status-2, .status-5 {
.status { .status {
background: linear-gradient(-90deg, rgba(7, 240, 255, 1) 0%, rgba(0, 153, 255, 1) 100%); background: linear-gradient(-90deg, rgba(7, 240, 255, 1) 0%, rgba(0, 153, 255, 1) 100%);
font-size: 15px; font-size: 15px;
......
...@@ -72,7 +72,7 @@ class BlessingRank extends Component { ...@@ -72,7 +72,7 @@ class BlessingRank extends Component {
<dl className="rank__table-header"> <dl className="rank__table-header">
<dd className="rank__table-column">排名</dd> <dd className="rank__table-column">排名</dd>
<dd className="rank__table-column">用户</dd> <dd className="rank__table-column">用户</dd>
<dd className="rank__table-column">成绩</dd> <dd className="rank__table-column">分数</dd>
<dd className="rank__table-column">奖品</dd> <dd className="rank__table-column">奖品</dd>
</dl> </dl>
{ {
......
...@@ -30,7 +30,8 @@ class Passport extends Component { ...@@ -30,7 +30,8 @@ class Passport extends Component {
const {location} = props const {location} = props
const {pathname, search, hash} = location const {pathname, search, hash} = location
const from = location.state && location.state.from || {pathname: pathname, search: search, hash: hash} const from = location.state && location.state.from || {pathname: pathname, search: search, hash: hash}
this.redirectURL = window.location.origin + from.pathname + from.search + from.hash const referrer = document.referrer
this.redirectURL = referrer ? referrer : window.location.origin + from.pathname + from.search + from.hash
this.state = { this.state = {
loginWays: [ loginWays: [
{ {
......
...@@ -32,7 +32,8 @@ class Login extends Component { ...@@ -32,7 +32,8 @@ class Login extends Component {
search: window.location.search, search: window.location.search,
hash: '' hash: ''
}; };
const redirectURI = window.location.origin + from.pathname + from.search + from.hash; const referrer = document.referrer
const redirectURI = referrer ? referrer : window.location.origin + from.pathname + from.search + from.hash;
switch (method) { switch (method) {
case '账号登录': case '账号登录':
......
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