Commit 15e093e4 by wangshuo

中奖页

parent f2f6f0a6
......@@ -6,6 +6,7 @@ import { Toast } from 'antd-mobile';
import AddressPopup from './../blessingPreheat/addressPopup/index'
import { Popup } from '@/common'
import { connect } from 'react-redux'
import jsCookie from 'js-cookie'
@connect(({user}) => (
{
uid: user.data.uid || ''
......@@ -30,7 +31,7 @@ class BlessingGetPrize extends Component {
const _this = this;
setTimeout(function(){
const {history, uid} = _this.props;
if(!uid) {
if(!uid && !jsCookie.get('uid')) {
history.push('/passport')
}else{
http.get(`${API.home}/sys/lottery_result?id=${getParam('id')}`).then(res => {
......
......@@ -7,7 +7,7 @@
.is__get_prize {
width: 100%;
height: 120px;
height: 140px;
background: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/quan2x.png') center center no-repeat;
background-size: 100% 100%;
margin-top: 10px;
......@@ -65,7 +65,10 @@
justify-content: center;
align-items: center;
div {
line-height: 16px;
line-height: 20px;
width: 80%;
text-align: center;
text-align-last: center;
}
.address {
font-size:12px;
......
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