no message
Showing
2 changed files
with
11 additions
and
5 deletions
| ... | @@ -88,8 +88,8 @@ Page({ | ... | @@ -88,8 +88,8 @@ Page({ |
| 88 | if (!_this.data.canShake || _this.data.tipsCommonVisible) { | 88 | if (!_this.data.canShake || _this.data.tipsCommonVisible) { |
| 89 | return | 89 | return |
| 90 | } | 90 | } |
| 91 | if (res.x > 1) { //偏移量为2时触发,有的使用1 | 91 | let shakeValue = 2; |
| 92 | 92 | if (res.x > shakeValue || res.y > shakeValue || res.z > shakeValue) { //偏移量为2时触发,有的使用1 | |
| 93 | // 触发摇一摇 | 93 | // 触发摇一摇 |
| 94 | _this.queryWishbillAssist(); | 94 | _this.queryWishbillAssist(); |
| 95 | } | 95 | } |
| ... | @@ -187,10 +187,10 @@ Page({ | ... | @@ -187,10 +187,10 @@ Page({ |
| 187 | }, 2000); | 187 | }, 2000); |
| 188 | 188 | ||
| 189 | } else if (status == 2) { | 189 | } else if (status == 2) { |
| 190 | // 助力失败 | 190 | // 助力失败 已经为别人助力过 |
| 191 | this.setData({ | 191 | this.setData({ |
| 192 | tipsCommonVisible: true, | 192 | tipsCommonVisible: true, |
| 193 | tipsInnerText: `亲爱的女神,您已为${wishInfo.member.nickname}好友助力过,每人只能为一位好友助力噢!` | 193 | tipsInnerText: `亲爱的女神,您已为${result.assistNickname}好友助力过,每人只能为一位好友助力噢!` |
| 194 | }) | 194 | }) |
| 195 | } else if (status == 3) { | 195 | } else if (status == 3) { |
| 196 | this.setData({ | 196 | this.setData({ |
| ... | @@ -202,6 +202,11 @@ Page({ | ... | @@ -202,6 +202,11 @@ Page({ |
| 202 | this.setData({ | 202 | this.setData({ |
| 203 | groupMemberCoopVisible: true | 203 | groupMemberCoopVisible: true |
| 204 | }) | 204 | }) |
| 205 | } else if (status == 5) { | ||
| 206 | this.setData({ | ||
| 207 | tipsCommonVisible: true, | ||
| 208 | tipsInnerText: "亲爱的女神,TA的心愿已达成,您可为其它好友心愿充值~" | ||
| 209 | }) | ||
| 205 | } else { | 210 | } else { |
| 206 | // 助力失败 | 211 | // 助力失败 |
| 207 | this.setData({ | 212 | this.setData({ | ... | ... |
| ... | @@ -83,7 +83,8 @@ Page({ | ... | @@ -83,7 +83,8 @@ Page({ |
| 83 | if (!_this.data.tipsShakeVisible) { | 83 | if (!_this.data.tipsShakeVisible) { |
| 84 | return | 84 | return |
| 85 | } | 85 | } |
| 86 | if (res.x > 1) { //偏移量为2时触发,有的使用1 | 86 | let shakeValue = 2; |
| 87 | if (res.x > shakeValue || res.y > shakeValue || res.z > shakeValue) { //偏移量为2时触发,有的使用1 | ||
| 87 | _this.setData({ | 88 | _this.setData({ |
| 88 | tipsShakeVisible: false, | 89 | tipsShakeVisible: false, |
| 89 | tipsCreateCompleteVisible: true | 90 | tipsCreateCompleteVisible: true | ... | ... |
-
Please register or sign in to post a comment