Commit 5ed26c08 by wangshuo

14号onlyshow

parent 11994b41
...@@ -51,6 +51,7 @@ class BlessingPreheat extends Component { ...@@ -51,6 +51,7 @@ class BlessingPreheat extends Component {
timelineShareVisible: false, timelineShareVisible: false,
showRecordList: false, showRecordList: false,
isFormal: false, // 1正式 0 预热 isFormal: false, // 1正式 0 预热
onlyShow: false, // 13号之后要展示内容的控制
isServer: false, isServer: false,
serverUrl: '', serverUrl: '',
shareMark: false, shareMark: false,
...@@ -275,6 +276,7 @@ class BlessingPreheat extends Component { ...@@ -275,6 +276,7 @@ class BlessingPreheat extends Component {
this.setState({ this.setState({
isSign: !!data.today_signed, isSign: !!data.today_signed,
isFormal: data.is_activity, isFormal: data.is_activity,
onlyShow: data.onlyShow,
testSum: parseInt(data.user_test_total, 10) || 0, testSum: parseInt(data.user_test_total, 10) || 0,
userInfo: Object.assign({}, userInfo, { userInfo: Object.assign({}, userInfo, {
isFollow: data.subscribed, isFollow: data.subscribed,
...@@ -565,6 +567,7 @@ class BlessingPreheat extends Component { ...@@ -565,6 +567,7 @@ class BlessingPreheat extends Component {
testSum, testSum,
address, address,
addressPopupVisible, addressPopupVisible,
onlyShow,
} = this.state } = this.state
const {history} = this.props const {history} = this.props
const isLogin = !this.props.user.hasError const isLogin = !this.props.user.hasError
...@@ -630,14 +633,20 @@ class BlessingPreheat extends Component { ...@@ -630,14 +633,20 @@ class BlessingPreheat extends Component {
} }
{/* 精品课程特惠专区 */} {/* 精品课程特惠专区 */}
<ListHeader id={'best-courses'} text="精品课程特惠专区" styles={{margin: '30px 0 15px'}}/> {
<CourseList !onlyShow && (
isApp={isApp} <>
isFormal={isFormal} <ListHeader id={'best-courses'} text="精品课程特惠专区" styles={{margin: '30px 0 15px'}}/>
isLogin={isLogin} <CourseList
history={this.props.history} isApp={isApp}
toLogin={this.toLogin} isFormal={isFormal}
/> isLogin={isLogin}
history={this.props.history}
toLogin={this.toLogin}
/>
</>
)
}
{ {
isRule && isRule &&
......
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