Commit eddaed89 by xuzhenghua

安卓测试

parent 1213ac7e
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -105,11 +105,14 @@ class BlessingPreheat extends Component {
}
window['getNewData'] = result => {
alert('getNewData')
http.post(`${API.home}/sys/add/blessing`, {
share_platform: '', // 1 朋友圈 2 微博 3 qq
type: 4 // 1:签到;3:分享;4:浏览课程;
}).then(res => {
const {code} = res.data
alert(code)
if (code === 200) {
Toast.info('+2点福气值~', 2, null, false)
this.fetchUserBlessing()
......@@ -238,6 +241,8 @@ class BlessingPreheat extends Component {
}
fetchUserBlessing = () => {
alert('fetchUserBlessing')
const {userInfo} = this.state
http.get(`${API.home}/sys/user/blessing`).then(res => {
const {code, data} = res.data
......
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