Commit 233842e3 by xuzhenghua

直播见

parent 7372a63a
......@@ -572,7 +572,7 @@
background-color: $bg_18B4ED;
font-size: 16px;
color: $white;
width: 140px;
padding: 0 15px;
height: 30px;
border-radius: 15px;
border: none;
......
......@@ -92,6 +92,8 @@ class LiveRoom extends Component {
this.setState({
toSubscribe: false
})
} else if (res.data.data.status === 5) {
window.location.href = 'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIyMzMzMTIwNA==&scene=126&bizpsid=0&subscene=0#wechat_redirect';
} else {
Toast.info(res.data.data.msg, 2)
}
......@@ -153,13 +155,15 @@ class LiveRoom extends Component {
mobile: this.state.iphone,
room_id: this.props.roomMess.room_id
}
http.get(`${API.home}/m/live/wxReservedTel`, data).then((res) => {
http.post(`${API.home}/m/live/wxReservedTel`, data).then((res) => {
if (res.data.code === 200) {
this.setState({
toSubscribe: false
})
Toast.info(res.data.msg, 2)
} else {
} else if(res.data.code === 410){
Toast.info('请输入手机号', 2)
}else {
Toast.info(res.data.msg, 2)
}
})
......@@ -233,12 +237,12 @@ class LiveRoom extends Component {
onClick={this.serverStep}>微信服务号通知
</button>
{
this.state.isfollow === 0 &&
this.state.isfollow === 2 &&
<span className='tips'>关注服务号即代表预约成功</span>
}
<button className={this.state.isfollow === 1 ? 'follow' : 'nofollow'}
onClick={this.iphoneStep}>手机短信通知
onClick={this.iphoneStep}>&nbsp;手机短信通知&nbsp;&nbsp;
</button>
</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