feat(invitations): show tooltip when invite function is closed

This commit is contained in:
OldHawk
2017-06-14 11:10:28 +08:00
parent 18493aba33
commit dd8f51e4e6
4 changed files with 14 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ module.exports = {
allow_social_sign: true
},
invite: {
open_invite: true,
open_invite: false,
score_exchange: 10000,
expires: 60 * 60 * 1000 * 24
},

View File

@@ -426,6 +426,8 @@
EXCHANGE_INVITATION_CONFIRM_BODY_TEXT: 'Are you sure want to exchange an invitation with {{score}} scores?',
EXCHANGE_INVITATION_SUCCESSFULLY: 'Exchange invitation successfully',
EXCHANGE_INVITATION_ERROR: 'Exchange invitation failed',
INVITE_CLOSED: 'The invitation function is closed and you cannot exchange an invitations ...',
NOTE_CAPTION: 'Note!',
//user message box
MESSAGES_INBOX: 'Messages Inbox',

View File

@@ -426,6 +426,8 @@
EXCHANGE_INVITATION_CONFIRM_BODY_TEXT: '您确定要花 {{score}} 积分来兑换一个限时邀请么?',
EXCHANGE_INVITATION_SUCCESSFULLY: '限时邀请兑换成功',
EXCHANGE_INVITATION_ERROR: '限时邀请兑换失败',
INVITE_CLOSED: '邀请功能已关闭, 现在不能使用积分兑换邀请 ...',
NOTE_CAPTION: '请注意!',
//user message box
MESSAGES_INBOX: '消息收件箱',

View File

@@ -23,7 +23,7 @@
</div>
</div>
<div class="row margin-top-30">
<div class="row margin-top-30" ng-show="vm.inviteConfig.open_invite">
<div class="col-sm-8 col-sm-offset-2 text-center">
<button class="btn btn-default" ng-disabled="vm.user.score < vm.inviteConfig.score_exchange"
translate="EXCHANGE_INVITATION" translate-values='{ score: vm.inviteConfig.score_exchange}'
@@ -32,6 +32,14 @@
</div>
</div>
<div class="row margin-top-30" ng-hide="vm.inviteConfig.open_invite">
<div class="col-sm-8 col-sm-offset-2 text-center">
<div class="alert alert-warning" role="alert">
<strong>{{ 'NOTE_CAPTION' | translate }}</strong> {{ 'INVITE_CLOSED' | translate }}
</div>
</div>
</div>
<div class="row margin-top-30 padding-top-30">
<div class="col-sm-8 col-sm-offset-2">
<legend class="small-legend" translate="SCORE.HOW_TO_GET_LEVEL"></legend>