Commit 57928bc2 by FE

pull 00

parent 0eb0b13b
......@@ -158,7 +158,7 @@ class Landing extends Component {
this.fetchPageData()
this.getFollowStatus()
.then(isFollow => {
!isFollow && this.remind('join', getParam('treasure_code'))
!isFollow && this.remind('join', this.state.treasure_code, 2)
})
}
})
......@@ -191,7 +191,7 @@ class Landing extends Component {
return code === 200 && data['is_follow']
})
createTeamSuccess = (member, team_num, lack_member, treasure_code) => {
createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {
this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)
this.getFollowStatus()
.then(isFollow => {
......@@ -233,7 +233,7 @@ class Landing extends Component {
})
}
remind = (type = 'create', treasure_code) => {
remind = (type = 'create', treasure_code, origin = 1) => {
const {match, history, user} = this.props
http.get(`${API["base-api"]}/wx/user_temporary_qrcode/${user.data.uid}`)
.then(res => {
......@@ -255,7 +255,7 @@ class Landing extends Component {
// history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)
this.fetchPageData({
treasure_code,
origin: '1'
origin
})
}
})
......@@ -290,7 +290,7 @@ class Landing extends Component {
sessionStorage.removeItem('showShareTip')
this.getFollowStatus()
.then(isFollow => {
!isFollow && this.remind('create', getParam('treasure_code'))
!isFollow && this.remind('create', getParam('treasure_code'), 1)
})
}
})
......
......@@ -585,11 +585,11 @@ class YearCourse extends Component {
</div>
<div className="price">
{item.type == 2 ? '到手最低:¥' : '¥'}
<span className="new-price">{item.price1}</span>
<span className="new-price">{item.price2}</span>
<span
className="old-price">
{item.type == 2 ? '' : '现价:'}
<s>¥{item.price0}</s></span>
<s>¥{item.price1}</s></span>
</div>
<div className="status">
......@@ -676,11 +676,11 @@ class YearCourse extends Component {
</div>
<div className="price">
{item.type == 2 ? '到手最低:¥' : '¥'}
<span className="new-price">{item.price1}</span>
<span className="new-price">{item.price2}</span>
<span
className="old-price">
{item.type == 2 ? '' : '现价:'}
<s>¥{item.price0}</s></span>
<s>¥{item.price1}</s></span>
</div>
<div className="status">
......@@ -767,11 +767,11 @@ class YearCourse extends Component {
</div>
<div className="price">
{item.type == 2 ? '到手最低:¥' : '¥'}
<span className="new-price">{item.price1}</span>
<span className="new-price">{item.price2}</span>
<span
className="old-price">
{item.type == 2 ? '' : '现价:'}
<s>¥{item.price0}</s></span>
<s>¥{item.price1}</s></span>
</div>
<div className="status">
......@@ -858,11 +858,11 @@ class YearCourse extends Component {
</div>
<div className="price">
{item.type == 2 ? '到手最低:¥' : '¥'}
<span className="new-price">{item.price1}</span>
<span className="new-price">{item.price2}</span>
<span
className="old-price">
{item.type == 2 ? '' : '现价:'}
<s>¥{item.price0}</s></span>
<s>¥{item.price1}</s></span>
</div>
<div className="status">
......
......@@ -61,7 +61,7 @@ class YarnWish extends Component {
const {list, activityStage} = this.state
return (
<div className='yarn-wish'>
<div className='year-wish'>
<div className="banner"><img
src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/xy_banner_bj.png" alt=""/></div>
{
......@@ -73,7 +73,7 @@ class YarnWish extends Component {
toCourse={this.toCourse}>
{
item.type == 4 &&
item.type == 4 && item.is_buy != 1 &&
<div className="group-num">限量300</div>
}
......@@ -99,7 +99,7 @@ class YarnWish extends Component {
</>
}
{
item.type == 1 &&
(item.type == 1 || item.type == 4) &&
<>
<span className="tag">拼团价</span>
<span className="time">12.23开团</span>
......@@ -116,11 +116,8 @@ class YarnWish extends Component {
</div>
<div className="price">
{item.type == 2 ? '到手最低:¥' : '¥'}
<span className="new-price">{item.price1}</span>
<span
className="old-price">
{item.type == 2 ? '' : '现价:'}
<s>¥{item.price0}</s></span>
<span className="new-price">{item.type == 4?'0.01':item.price2}</span>
<span className="old-price"> 现价:<s>¥{item.price1}</s></span>
</div>
<div className="status">
......
......@@ -2,7 +2,7 @@ html, body, #root {
height: 100%;
}
.yarn-wish {
.year-wish {
min-height: 100%;
background-color: #BA2C21;
padding-bottom: 35px;
......@@ -214,3 +214,7 @@ html, body, #root {
}
}
.year-wish + .year19-index {
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