Commit 59d6be5f by zhanghaozhe

Merge branch '11-11' into dev

parents 39b2b91c e12f6af6
......@@ -105,11 +105,23 @@ class BlessingPreheat extends Component {
}
window['getNewData'] = result => {
http.post(`${API.home}/sys/add/blessing`, {
share_platform: '', // 1 朋友圈 2 微博 3 qq
type: 4 // 1:签到;3:分享;4:浏览课程;
}).then(res => {
const {code} = res.data
if (code === 200) {
Toast.info('+2点福气值~', 2, null, false)
}
})
this.fetchUserBlessing()
}
window['QQWXWBshare'] = result => {
if (result != 0) {
this.handleToAddBlessing(result)
}
this.fetchUserBlessing()
}
}
......@@ -217,7 +229,6 @@ class BlessingPreheat extends Component {
const {userInfo} = this.state
http.get(`${API.home}/sys/user/blessing`).then(res => {
const {code, data} = res.data
alert(code)
if (code === 200) {
this.setState({
isSign: !!data.today_signed,
......
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