Authored by htoooth

fix

... ... @@ -73,7 +73,8 @@ const ASSIST_SUCCESS = {
const QUEUE_SUCCESS = {
UNKNOWN: 0,
OK: 1,
REPEAT: 2
REPEAT: 2,
FULL: 3
};
const YB_SHARE_RESULT_L = 'YB_SHARE_RESULT_L';
... ... @@ -504,6 +505,10 @@ Page(Object.assign({
this.setData({
queueSuccess: QUEUE_SUCCESS.REPEAT
});
} else if (result.code === 402) {
this.setData({
queueSuccess: QUEUE_SUCCESS.FULL
});
} else {
yas.report(YB_ASSIST_SUCCESS_L, {
ASSIST_RESULT: ASSIST_FAIL,
... ...
... ... @@ -408,6 +408,28 @@
</view>
</yoho-alert>
<yoho-alert wx:if="{{queueSuccess === 3}}" bindcancel="hideAlert">
<view class="modal-content">
<view class="modal-title">
<view class="sub-title">助力失败</view>
<view class="sub-title2">
<view>助力人数已满,</view>
<view>自己也来参加吧~</view>
</view>
</view>
<view class="modal-btn">
<view class="modal-ok" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel" bindtap="goQueueList">
查看详情
</view>
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{error}}" bindcancel="hideAlert">
<view class="modal-content">
<view class="modal-title">
... ...