index.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. use \common\helpers\Utils;
  3. $this->title = '推广链接';
  4. ?>
  5. <div class="row">
  6. <div class="col-md-3">
  7. <?= $this->render('/common/_left_menu.php') ?>
  8. </div>
  9. <div class="col-md-9">
  10. <div class="ibox">
  11. <div class="ibox-title">
  12. <h5>推广链接</h5>
  13. </div>
  14. <div class="ibox-content">
  15. <p>您的推广专属链接:</p>
  16. <input type="text" class="form-control" value="<?= Utils::getCrmHostByEnv().'/account/open?login='.$login ?>">
  17. <br>
  18. <p>您的推广二维码</p>
  19. <div class="qrcode" id="qrcode"></div>
  20. <br>
  21. <p>您的代理专属链接:</p>
  22. <input type="text" class="form-control" value="<?= Utils::getCrmHostByEnv().'/account/ib-open-index?login='.$login ?>">
  23. <br>
  24. <p>您的推广二维码</p>
  25. <div class="qrcode" id="qrcode1"></div>
  26. <br>
  27. <div class="well">
  28. <strong>友情提示:</strong>
  29. 您可复制链接或下载二维码图片进行推广!
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <?php $this->beginBlock('footer_script'); ?>
  36. <script src="<?= STATIC_URL ?>/ui/js/jquery-qrcode-0.14.0.min.js"></script>
  37. <script>
  38. jQuery('#qrcode').qrcode({
  39. render: 'image',
  40. correctLevel: 0,
  41. text: "<?= Utils::getCrmHostByEnv().'/account/open?login='.$login ?>",
  42. size: 250,
  43. background: '#FFF'
  44. });
  45. jQuery('#qrcode1').qrcode({
  46. render: 'image',
  47. correctLevel: 0,
  48. text: "<?= Utils::getCrmHostByEnv().'/account/ib-open-index?login='.$login ?>",
  49. size: 250,
  50. background: '#FFF'
  51. });
  52. </script>
  53. <?php $this->endBlock(); ?>