feat: award

This commit is contained in:
shenyu
2019-12-05 23:31:52 +08:00
parent b7dd081c74
commit 100ee436a9
9 changed files with 145 additions and 1 deletions

View File

@@ -30,6 +30,40 @@
<% } else { %>
<%- post.content %>
<% } %>
<!-- 打赏 -->
<% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index){ %>
<div class="page-reward">
<a href="javascript:void(0);" class="page-reward-btn tooltip-top" target="_self">
<div class="tooltip tooltip-east">
<span class="tooltip-item">
</span>
<span class="tooltip-content">
<span class="tooltip-text">
<span class="tooltip-inner">
<p class="reward-p"><i class="icon icon-quo-left"></i><%= theme.reward_wording%><i
class="icon icon-quo-right"></i></p>
<div class="reward-box">
<% if(theme.alipay) {%>
<div class="reward-box-item">
<img class="reward-img" src="<%- url_for(theme.alipay) %>">
<span class="reward-type">支付宝</span>
</div>
<% } %>
<% if(theme.weixin) {%>
<div class="reward-box-item">
<img class="reward-img" src="<%- url_for(theme.weixin) %>">
<span class="reward-type">微信</span>
</div>
<% } %>
</div>
</span>
</span>
</span>
</div>
</a>
</div>
<% } %>
</div>
<footer class="article-footer">
<a data-url="<%- post.permalink %>" data-id="<%= post._id %>"