Authored by 毕凯

Merge branch 'hotfix/invite' into 'gray'

邀请好友去除复制



See merge request !1123
... ... @@ -26,8 +26,6 @@ module.exports = class extends global.yoho.BaseModel {
result.data.isApp = isApp;
result.data.copyCode = result.data.trendWord ? result.data.trendWord : result.data.inviteCode;
result.data.copyUrl = result.data.shareUrl ?
result.data.shareUrl.replace(/"/g, '"').replace(/=/g, ':') : '';
return result.data;
} else {
... ...
... ... @@ -26,10 +26,9 @@
<div class="title">方法三:使用邀请链接</div>
<div class="code-content">
<div class="invite-content">
<span class="code{{#unless isApp}} code-len{{/unless}}">{{shareUrl}}</span>
<span class="code code-len">{{shareUrl}}</span>
{{#if isApp}}
<span class="share button">分享</span>
<a class="copy button" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{copyUrl}}","message":"复制成功"}}'>复制</a>
{{/if}}
</div>
<p class="link-info">
... ...