Commit 7d54c2d4 authored by wildfirecode13's avatar wildfirecode13

1

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