reminder.blade.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. @include('home.soft.common.head')
  5. <style>
  6. /* 未登录弹窗 */
  7. .member-model {
  8. line-height: 2.2;
  9. padding: 10px;
  10. height: 100vh;
  11. }
  12. .member-model .m-title {
  13. color: #BD2C00;
  14. font-size: 15px;
  15. }
  16. .member-model .m-tips {
  17. margin: 20px 0;
  18. }
  19. .member-model .member-btn {
  20. position: absolute;
  21. bottom: 30px;
  22. right: 20px;
  23. }
  24. </style>
  25. </head>
  26. <body style="margin:0 10px">
  27. <div class="member-model">
  28. @if(isset($ad) && $ad->logo)
  29. <div class="adv-banner">
  30. <img src="{{$ad->logo}}" style="width: 100%; height: 100%;"/>
  31. </div>
  32. @endif
  33. <p class="m-title">检测到您没有可使用的会员套餐,是否开通?</p>
  34. <p class="m-title">非会员上传的文件不能大于2M,图片不能大于300KB,开通会员后,您将获得以下权限:</p>
  35. <div class="m-tips">
  36. <p>
  37. <i class="fa fa-check" style="color: #ce0000;margin-right:5px;" size="16" aria-hidden="true"></i>
  38. 文件上传不限制大小
  39. </p>
  40. <p>
  41. <i class="fa fa-check" style="color: #ce0000;margin-right:5px;" size="16" aria-hidden="true"></i>
  42. 永久免费升级
  43. </p>
  44. <p>
  45. <i class="fa fa-check" style="color: #ce0000;margin-right:5px;" size="16" aria-hidden="true"></i>
  46. 7*24专业技术支持
  47. </p>
  48. </div>
  49. <div class="member-btn">
  50. <button type="button" style="margin:0 10px;" class="btn btn-outline-secondary" onclick="next()">继续试用</button>
  51. <button type="button" class="btn btn-danger" onclick="openVip()">开通会员</button>
  52. </div>
  53. </div>
  54. <script>
  55. let reminderContext;
  56. let isShow = "{{ !$isVip }}" // 会员才显示
  57. // 初始化
  58. function init() {
  59. if (typeof qt != 'undefined') {
  60. new QWebChannel(qt.webChannelTransport, function (channel) {
  61. reminderContext = channel.objects.reminder;
  62. //
  63. reminderContext.setWidth(400);
  64. reminderContext.setHeight(500);
  65. reminderContext.setTitle("提示");
  66. // context.sendContinueBtnSignal.connect(function (msg) {
  67. // alert("msg ==" + msg)
  68. // })
  69. // 显示弹窗
  70. reminderContext.setVisible(Boolean(isShow));
  71. }
  72. );
  73. } else {
  74. // alert("qt对象获取失败!");
  75. }
  76. }
  77. init();
  78. function next() {
  79. if (typeof reminderContext == 'undefined') {
  80. alert("出现了错误,请重启软件!");
  81. } else {
  82. reminderContext.setContinue();
  83. }
  84. }
  85. function openVip() {
  86. if (typeof reminderContext == 'undefined') {
  87. alert("出现了错误,请重启软件!");
  88. } else {
  89. reminderContext.setOpenVip();
  90. }
  91. }
  92. </script>
  93. </body>
  94. </html>