Browse Source

Invitation

tags/v1.22.9.2^2
chenshihai 3 years ago
parent
commit
7f17da5af1
5 changed files with 10 additions and 3 deletions
  1. +3
    -0
      options/locale/locale_en-US.ini
  2. +3
    -0
      options/locale/locale_zh-CN.ini
  3. +2
    -2
      templates/user/auth/signup_inner.tmpl
  4. +2
    -0
      templates/user/profile.tmpl
  5. +0
    -1
      web_src/vuepages/pages/user/invite/index.vue

+ 3
- 0
options/locale/locale_en-US.ini View File

@@ -70,6 +70,9 @@ your_profile = Profile
your_starred = Starred
your_settings = Settings
invite_friends = Invite Friends
your_friend=Your friend
invite_you_to_join_the_OpenI_AI_Collaboration_Platform_and_enjoy_abundant_free_computing_resources=invite you to join the OpenI AI Collaboration Platform and enjoy abundant free computing resources!
recommender=Recommender

all = All
sources = Sources


+ 3
- 0
options/locale/locale_zh-CN.ini View File

@@ -70,6 +70,9 @@ your_profile=个人信息
your_starred=已点赞
your_settings=设置
invite_friends=邀请好友
your_friend=您的好友
invite_you_to_join_the_OpenI_AI_Collaboration_Platform_and_enjoy_abundant_free_computing_resources=邀请你加入启智社区AI协作平台,畅享充沛的免费算力资源!
recommender=推荐人

all=所有
sources=自建


+ 2
- 2
templates/user/auth/signup_inner.tmpl View File

@@ -36,7 +36,7 @@
<p>{{.i18n.Tr "auth.disable_register_prompt"}}</p>
{{else}}
<div class="field invitation_tips" style="font-weight:400;font-size:14px;color:rgba(250,140,22,1);display:none;">
<span>您的好友 <span class="__invitation_code__">Itx003</span> 邀请你加入启智社区AI协作平台,畅享充沛的免费算力资源!</span>
<span>{{.i18n.Tr "your_friend"}} <span class="__invitation_code__">Itx003</span> {{.i18n.Tr "invite_you_to_join_the_OpenI_AI_Collaboration_Platform_and_enjoy_abundant_free_computing_resources"}}</span>
</div>
<div class="field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
<input id="user_name" name="user_name" value="{{.user_name}}" placeholder="{{.i18n.Tr "username"}}" autofocus required>
@@ -78,7 +78,7 @@
<div class="field">
<div style="display:flex;">
<div style="display:flex;align-items:center;">
<span>推荐人</span>
<span>{{.i18n.Tr "recommender"}}</span>
</div>
<input style="flex:1;margin-left:12px;" id="invitation_code" name="invitation_code" value="" autocomplete="off" />
</div>


+ 2
- 0
templates/user/profile.tmpl View File

@@ -48,12 +48,14 @@
</li>
{{end}}
{{end}}
{{if and .IsSigned (eq .SignedUserName .Owner.Name)}}
<li>
{{svg "octicon-clock" 16}} {{.i18n.Tr "user.join_on"}} {{.Owner.CreatedUnix.FormatShort}}
<div style="margin-top:6px;height:50px;">
<a href="/user/invitation_tpl"><img src="/img/ad/ad02.png" style="width:100%;height:100%" /></a>
</div>
</li>
{{end}}
<li>{{svg "octicon-clock" 16}} {{.i18n.Tr "user.join_on"}} {{.Owner.CreatedUnix.FormatShort}}</li>
{{if and .Orgs .HasOrgsVisible}}


+ 0
- 1
web_src/vuepages/pages/user/invite/index.vue View File

@@ -176,7 +176,6 @@ export default {
},
},
mounted() {
// this.getTableData();
this.initData();
this.initCopy();
},


Loading…
Cancel
Save