Commit 51231c10 authored by 汪欢's avatar 汪欢

prizepart

parent af5342e2
...@@ -172,9 +172,9 @@ Page({ ...@@ -172,9 +172,9 @@ Page({
async receiveObjectPrize(params) { async receiveObjectPrize(params) {
// commonToast('正在调用receiveObjectPrize'+JSON.stringify(params)) // commonToast('正在调用receiveObjectPrize'+JSON.stringify(params))
API.receiveObjectPrize(params).then((res) => { API.receiveObjectPrize(params).then((res) => {
setTimeout(() => { // setTimeout(() => {
commonToast(JSON.stringify(res)) // commonToast(JSON.stringify(res))
}, 5000); // }, 5000);
const { success, data, message } = res; const { success, data, message } = res;
if (success && data) { if (success && data) {
...@@ -183,6 +183,8 @@ Page({ ...@@ -183,6 +183,8 @@ Page({
commonToast(message) commonToast(message)
} }
this.getMyPrize() this.getMyPrize()
},(rej)=>{
commonToast(rej.message)
}); });
}, },
// 积分 // 积分
......
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