index.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div>
  4. <p class="link p15">
  5. <span class="label">{$Think.lang.invitation_register_link}:</span>
  6. <span>
  7. <b id="foo">{$inviter_url}</b> <a class="artdilog_btn" id="copyurlbt" data-clipboard-action="copy" data-clipboard-target="#foo" >{$Think.lang.inviter_copy}</a>
  8. </span>
  9. </p>
  10. <p class="link p15">
  11. <span class="label">{$Think.lang.promotion_public_number_code}:</span>
  12. {if $refer_qrcode_weixin}<img src="{$refer_qrcode_weixin}" style='vertical-align: top' width='150' />{else}{$Think.lang.failed_generate_code}{$wx_error_msg}{/if}
  13. </p>
  14. <p class="link p15">
  15. <span class="label">{$Think.lang.promotion_registration_poster}:</span>
  16. <img src="{$refer_qrcode_logo}" style='vertical-align: top'/>
  17. </p>
  18. </div>
  19. <script src="{$Think.PLUGINS_SITE_ROOT}/clipboard.min.js"></script>
  20. <script>
  21. $(function(){
  22. var clipboard = new Clipboard('#copyurlbt');
  23. clipboard.on('success', function(e) {
  24. layer.msg('{$Think.lang.copy_link_successfully}')
  25. });
  26. })
  27. </script>
  28. {/block}