├── php-api/ # 改造后的PHP接口层 ├── java-ad-service/ # 若依框架微服务(广告+VIP+分账) ├── uniapp-reader/ # UniApp前端项目 │ ├── pages/ # 各端页面 │ └──
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

login-prompt.vue 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="login-prompt">
  3. <view class="prompt-content">
  4. <text class="title">登录后继续阅读</text>
  5. <text class="tip">您已阅读{{ freeChaptersRead }}章免费内容</text>
  6. <view class="benefits">
  7. <view class="benefit-item">
  8. <uni-icons type="checkmark" size="18" color="#2ecc71" />
  9. <text>解锁全部精彩章节</text>
  10. </view>
  11. <view class="benefit-item">
  12. <uni-icons type="checkmark" size="18" color="#2ecc71" />
  13. <text>加入书架保存阅读进度</text>
  14. </view>
  15. <view class="benefit-item">
  16. <uni-icons type="checkmark" size="18" color="#2ecc71" />
  17. <text>每日领取阅读金币</text>
  18. </view>
  19. </view>
  20. <button class="login-btn" @click="$emit('login')">立即登录/注册</button>
  21. <button class="continue-btn" @click="$emit('continue')">
  22. 继续阅读 (还可阅读{{ maxFreeChapters - freeChaptersRead }}章)
  23. </button>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. props: {
  30. freeChaptersRead: {
  31. type: Number,
  32. default: 0
  33. },
  34. maxFreeChapters: {
  35. type: Number,
  36. default: 5
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. .login-prompt {
  43. position: fixed;
  44. top: 0;
  45. left: 0;
  46. right: 0;
  47. bottom: 0;
  48. background: rgba(0, 0, 0, 0.5);
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. z-index: 1000;
  53. }
  54. .prompt-content {
  55. width: 80%;
  56. background: white;
  57. border-radius: 20rpx;
  58. padding: 40rpx;
  59. text-align: center;
  60. .title {
  61. font-size: 36rpx;
  62. font-weight: bold;
  63. display: block;
  64. margin-bottom: 15rpx;
  65. color: #e74c3c;
  66. }
  67. .tip {
  68. font-size: 28rpx;
  69. color: #666;
  70. display: block;
  71. margin-bottom: 30rpx;
  72. }
  73. }
  74. .benefits {
  75. text-align: left;
  76. margin-bottom: 40rpx;
  77. .benefit-item {
  78. display: flex;
  79. align-items: center;
  80. margin-bottom: 20rpx;
  81. font-size: 28rpx;
  82. color: #333;
  83. text {
  84. margin-left: 15rpx;
  85. }
  86. }
  87. }
  88. .login-btn {
  89. background-color: #e74c3c;
  90. color: white;
  91. border-radius: 50rpx;
  92. margin-bottom: 20rpx;
  93. }
  94. .continue-btn {
  95. background-color: #3498db;
  96. color: white;
  97. border-radius: 50rpx;
  98. }
  99. </style>