Commit 125eb59d by 穆启卓

1

parent 74b0b106
...@@ -617,6 +617,7 @@ Page({ ...@@ -617,6 +617,7 @@ Page({
method: 'POST', method: 'POST',
success: res2 => { success: res2 => {
if (res2.data.code === 0) { if (res2.data.code === 0) {
if (this.data.targetSteps) {
wx.showToast({ wx.showToast({
title: '视频错误,请尝试其他方式赚取步数', title: '视频错误,请尝试其他方式赚取步数',
icon: 'none', icon: 'none',
...@@ -630,6 +631,13 @@ Page({ ...@@ -630,6 +631,13 @@ Page({
this.setData({ this.setData({
bubbleList: this.data.bubbleList bubbleList: this.data.bubbleList
}); });
} else {
wx.showToast({
title: '报名后将获取步数',
icon: 'none',
duration: 2000
});
}
} }
} }
}); });
...@@ -648,6 +656,7 @@ Page({ ...@@ -648,6 +656,7 @@ Page({
method: 'POST', method: 'POST',
success: res2 => { success: res2 => {
if (res2.data.code === 0) { if (res2.data.code === 0) {
if (this.data.targetSteps) {
wx.showToast({ wx.showToast({
title: '获取步数成功', title: '获取步数成功',
icon: 'none', icon: 'none',
...@@ -664,6 +673,13 @@ Page({ ...@@ -664,6 +673,13 @@ Page({
bubbleList: this.data.bubbleList, bubbleList: this.data.bubbleList,
currentSteps: this.data.currentSteps + earnStep currentSteps: this.data.currentSteps + earnStep
}); });
} else {
wx.showToast({
title: '报名后将获取步数',
icon: 'none',
duration: 2000
});
}
} }
} }
}); });
......
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