Commit 44432bc1 by wangshuo

打包

parent 90ce0ac7
...@@ -19,7 +19,7 @@ class SystemBulletScreen extends Component { ...@@ -19,7 +19,7 @@ class SystemBulletScreen extends Component {
} }
componentWillUnmount() { componentWillUnmount() {
this.swiper && this.swiper.destroy(true, true) this.swiper && this.swiper.destroy()
} }
......
...@@ -6,6 +6,8 @@ import './bullet-screen.scss' ...@@ -6,6 +6,8 @@ import './bullet-screen.scss'
class UserBulletScreen extends Component { class UserBulletScreen extends Component {
swiper
state = { state = {
bulletScreenData: [] bulletScreenData: []
} }
...@@ -14,6 +16,10 @@ class UserBulletScreen extends Component { ...@@ -14,6 +16,10 @@ class UserBulletScreen extends Component {
this.getBulletScreenData(true) this.getBulletScreenData(true)
} }
componentWillUpdate() {
this.swiper && this.swiper.destroy()
}
initializeBulletScreen = () => { initializeBulletScreen = () => {
const _this = this const _this = this
......
...@@ -17,10 +17,10 @@ class YarnWish extends Component { ...@@ -17,10 +17,10 @@ class YarnWish extends Component {
} }
componentWillUpdate() { componentWillUpdate() {
const {activityStage} = this.state; const {activityStage} = this.state
if(activityStage == 1) { if (activityStage == 1) {
document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!` document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!`
}else{ } else {
document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!` document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!`
} }
} }
...@@ -33,6 +33,8 @@ class YarnWish extends Component { ...@@ -33,6 +33,8 @@ class YarnWish extends Component {
this.setState({ this.setState({
list: JSON.stringify(data) === '{}' ? [] : data list: JSON.stringify(data) === '{}' ? [] : data
}) })
} else if (code === 4030) {
this.props.history.push('/passport/login')
} }
}) })
} }
...@@ -116,7 +118,8 @@ class YarnWish extends Component { ...@@ -116,7 +118,8 @@ class YarnWish extends Component {
</div> </div>
<div className="price"> <div className="price">
{item.type == 2 ? '到手最低:¥' : '¥'} {item.type == 2 ? '到手最低:¥' : '¥'}
<span className="new-price">{item.type == 4?'0.01':item.price2}</span> <span
className="new-price">{item.type == 4 ? '0.01' : item.price2}</span>
<span className="old-price"> 现价:<s>¥{item.price1}</s></span> <span className="old-price"> 现价:<s>¥{item.price1}</s></span>
</div> </div>
......
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