Commit bd02fab8 by xuzhenghua

test

parent f454b077
...@@ -105,14 +105,17 @@ class BlessingPreheat extends Component { ...@@ -105,14 +105,17 @@ class BlessingPreheat extends Component {
} }
window['getNewData'] = result => { window['getNewData'] = result => {
alert('getNewData')
this.fetchUserBlessing() this.fetchUserBlessing()
} }
window['QQWXWBshare'] = result => { window['QQWXWBshare'] = result => {
alert('QQWXWBshare')
http.post(`${API.home}/sys/add/blessing`, { http.post(`${API.home}/sys/add/blessing`, {
share_platform: result, // 1 朋友圈 2 微博 3 qq share_platform: result, // 1 朋友圈 2 微博 3 qq
type: 3 // 1:签到;3:分享;4:浏览课程; type: 3 // 1:签到;3:分享;4:浏览课程;
}).then(res => { }).then(res => {
const {code} = res.data const {code} = res.data
alert(code)
if (code === 200) { if (code === 200) {
Toast.info('+2点福气值~', 2, null, false) Toast.info('+2点福气值~', 2, null, false)
this.fetchUserBlessing() this.fetchUserBlessing()
......
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