Browse Source

算力积分

tags/v1.22.9.2^2
chenshihai 3 years ago
parent
commit
72fa62dfb2
5 changed files with 4 additions and 16 deletions
  1. +1
    -7
      templates/reward/point/rule.tmpl
  2. +0
    -1
      web_src/vuepages/langs/config/en-US.js
  3. +0
    -1
      web_src/vuepages/langs/config/zh-CN.js
  4. +0
    -4
      web_src/vuepages/pages/reward/point/utils.js
  5. +3
    -3
      web_src/vuepages/pages/reward/point/vp-point.vue

+ 1
- 7
templates/reward/point/rule.tmpl View File

@@ -34,13 +34,7 @@
<td>1、首次完成微信扫码验证,即获取50积分。<br>2、同个账号,更换微信号码再验证不重复给积分。<br>3、同一个微信,绑定第一个账号时奖励50分,下次绑定其他账号时不再奖励。</td>
</tr>
<tr>
<td class="t-center">每日首次Fork项目</td>
<td class="t-center">1</td>
<td class="t-center">每日积分获取上限1</td>
<td></td>
</tr>
<tr>
<td class="t-center">创建公开项目</td>
<td class="t-center">创建或Fork公开项目</td>
<td class="t-center">1</td>
<td class="t-center">每日积分获取上限3</td>
<td>请注意项目质量,请勿复制粘贴或者重复公开项目,任何非常规的以公开项目去获取积分的行为将被认定为积分舞弊,将扣除所有积分。</td>


+ 0
- 1
web_src/vuepages/langs/config/en-US.js View File

@@ -25,7 +25,6 @@ const en = {
imageRecommendedByThePlatform: 'Image Recommended by the Platform',
firstChangeofAvatar: 'First Change of Avatar',
dailyCommit: 'Daily Commit',
dailyFirstForkProject: 'Daily First Fork Project',
calcPointDetails: 'Calculation Points Details',
calcPointAcquisitionInstructions: 'Calculation Points Acquisition Instructions',
CurrAvailableCalcPoints: 'Currently Available Calculation Points',


+ 0
- 1
web_src/vuepages/langs/config/zh-CN.js View File

@@ -25,7 +25,6 @@ const zh = {
imageRecommendedByThePlatform: '镜像被平台推荐',
firstChangeofAvatar: '首次更换头像',
dailyCommit: '每日commit',
dailyFirstForkProject: '每日首次Fork项目',
calcPointDetails: '算力积分明细',
calcPointAcquisitionInstructions: '积分获取说明',
CurrAvailableCalcPoints: '当前可用算力积分(分)',


+ 0
- 4
web_src/vuepages/pages/reward/point/utils.js View File

@@ -115,14 +115,10 @@ export const getRewardPointRecordInfo = (record) => {
case 40: // 每日commit - 推送了xxxx分支的代码到OpenI/aiforge
const words = record.Action.RefName.split('/');
const branch = words[words.length - 1];
// out.remark = `推送了<a href="${record.Action.RepoLink}/src/branch/${branch}" rel="nofollow">${branch}</a>分支的代码到<a href="${record.Action.RepoLink}" rel="nofollow">${record.Action.ShortRepoFullDisplayName}</a>`;
out.remark = `${i18n.t('pushedBranch', {
branch: `<a href="${record.Action.RepoLink}/src/branch/${branch}" rel="nofollow">${branch}</a>`
})}<a href="${record.Action.RepoLink}" rel="nofollow">${record.Action.ShortRepoFullDisplayName}</a>`;
break;
case 41: // 每日首次Fork项目 - 创建了项目OpenI/fork_aiforge
out.remark = `${i18n.t('createdRepository')}<a href="${record.Action.RepoLink}" rel="nofollow">${record.Action.ShortRepoFullDisplayName}</a>`;
break;
default:
break;
}


+ 3
- 3
web_src/vuepages/pages/reward/point/vp-point.vue View File

@@ -136,7 +136,7 @@ export default {
curpage: 1,
pageSize: 10,
pageSizes: [10],
total: 100,
total: 0,
},
eventSource: null,
};
@@ -169,8 +169,8 @@ export default {
getTableData: function () {
this.loading = true;
getPointList({
operate: this.tabIndex === 0 ? 'INCREASE' : 'DECREASE',
page: this.pageInfo.curpage,
Operate: this.tabIndex === 0 ? 'INCREASE' : 'DECREASE',
Page: this.pageInfo.curpage,
// pageSize: this.pageInfo.pageSize,
})
.then((res) => {


Loading…
Cancel
Save