Commit 7d54c2d4 authored by wildfirecode13's avatar wildfirecode13

1

parent e6ef8160
......@@ -60,22 +60,25 @@ Component({
}) || {};
// my.hideLoading();
if (success && data) {
let str = '领取成功~';
switch (taskType) {
case 'sign':
break;
case 'browseGoods':
break;
case 'follow':
break;
case 'invites':
str=`成功邀请${data.times}名好友,奖励为精力值+${data.energy}`
break;
let str;
// switch (taskType) {
// case 'sign':
// break;
// case 'browseGoods':
// break;
// case 'follow':
// break;
// case 'invites':
// break;
default:
break;
}
commonToast(str);
// default:
// break;
// }
console.log('taskType',taskType)
if (taskType == 'invites')
str = `成功邀请${data.times}名好友,奖励为精力值+${data.energy}`
commonToast(str || '领取成功');
}
my.__updateUserInfo__();
await this.getTaskList()
......
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