Showing
2 changed files
with
28 additions
and
1 deletions
@@ -73,7 +73,8 @@ const ASSIST_SUCCESS = { | @@ -73,7 +73,8 @@ const ASSIST_SUCCESS = { | ||
73 | const QUEUE_SUCCESS = { | 73 | const QUEUE_SUCCESS = { |
74 | UNKNOWN: 0, | 74 | UNKNOWN: 0, |
75 | OK: 1, | 75 | OK: 1, |
76 | - REPEAT: 2 | 76 | + REPEAT: 2, |
77 | + FULL: 3 | ||
77 | }; | 78 | }; |
78 | 79 | ||
79 | const YB_SHARE_RESULT_L = 'YB_SHARE_RESULT_L'; | 80 | const YB_SHARE_RESULT_L = 'YB_SHARE_RESULT_L'; |
@@ -504,6 +505,10 @@ Page(Object.assign({ | @@ -504,6 +505,10 @@ Page(Object.assign({ | ||
504 | this.setData({ | 505 | this.setData({ |
505 | queueSuccess: QUEUE_SUCCESS.REPEAT | 506 | queueSuccess: QUEUE_SUCCESS.REPEAT |
506 | }); | 507 | }); |
508 | + } else if (result.code === 402) { | ||
509 | + this.setData({ | ||
510 | + queueSuccess: QUEUE_SUCCESS.FULL | ||
511 | + }); | ||
507 | } else { | 512 | } else { |
508 | yas.report(YB_ASSIST_SUCCESS_L, { | 513 | yas.report(YB_ASSIST_SUCCESS_L, { |
509 | ASSIST_RESULT: ASSIST_FAIL, | 514 | ASSIST_RESULT: ASSIST_FAIL, |
@@ -408,6 +408,28 @@ | @@ -408,6 +408,28 @@ | ||
408 | </view> | 408 | </view> |
409 | </yoho-alert> | 409 | </yoho-alert> |
410 | 410 | ||
411 | +<yoho-alert wx:if="{{queueSuccess === 3}}" bindcancel="hideAlert"> | ||
412 | + <view class="modal-content"> | ||
413 | + <view class="modal-title"> | ||
414 | + <view class="sub-title">助力失败</view> | ||
415 | + <view class="sub-title2"> | ||
416 | + <view>助力人数已满,</view> | ||
417 | + <view>自己也来参加吧~</view> | ||
418 | + </view> | ||
419 | + </view> | ||
420 | + | ||
421 | + <view class="modal-btn"> | ||
422 | + <view class="modal-ok" bindtap="restartSelfShare"> | ||
423 | + 我也要参加 | ||
424 | + </view> | ||
425 | + | ||
426 | + <view class="modal-cancel" bindtap="goQueueList"> | ||
427 | + 查看详情 | ||
428 | + </view> | ||
429 | + </view> | ||
430 | + </view> | ||
431 | +</yoho-alert> | ||
432 | + | ||
411 | <yoho-alert wx:if="{{error}}" bindcancel="hideAlert"> | 433 | <yoho-alert wx:if="{{error}}" bindcancel="hideAlert"> |
412 | <view class="modal-content"> | 434 | <view class="modal-content"> |
413 | <view class="modal-title"> | 435 | <view class="modal-title"> |
-
Please register or login to post a comment