详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
2.9 KiB

  1. <template>
  2. <view>
  3. <view class="head">
  4. <view class="left">
  5. <view>
  6. <text class="lf-color-222">已连续签到</text>
  7. <text class="lf-color-primary lf-p-l-10">{{ day }} </text>
  8. </view>
  9. <view>连续签到7天以上多获赠5桃花</view>
  10. </view>
  11. <view class="right">签到</view>
  12. </view>
  13. <view class="content">
  14. <view class="hua-item" :class="{'active-bg': item < day}" v-for="item in monthDate" :key="item">
  15. <text class="lf-iconfont icon-hua lf-font-38" style="color: #FD898E;"></text>
  16. <text>+5桃花</text>
  17. </view>
  18. </view>
  19. <view class="explain">
  20. <view class="lf-font-32 lf-color-222 lf-font-bold">签到说明</view>
  21. <view class="lf-m-t-20 lf-font-24 lf-color-777">
  22. <view>1每日签到会员每天可签到一次签到后获赠桃花</view>
  23. <view class="lf-m-t-10">2连续签到连续签到7天以上以后继续签到将每天额外获赠5桃花</view>
  24. <view class="lf-m-t-10">
  25. <text>3关于桃花桃花用于发布动态评论等也可在</text>
  26. <text class="eye-catching">福利中心</text>
  27. <text>兑换红线</text>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data(){
  36. return {
  37. day: new Date().getDate()
  38. }
  39. },
  40. computed: {
  41. // 获取当前月份天数
  42. monthDate(){
  43. var date = new Date();
  44. var year = date.getFullYear();
  45. var month = date.getMonth()+1;
  46. var d = new Date(year, month, 0);
  47. return d.getDate();
  48. }
  49. },
  50. onLoad(){
  51. },
  52. methods: {
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped="scoped">
  57. .active-bg{
  58. background-color: #ffdaf1 !important;
  59. }
  60. .head{
  61. width: 750rpx;
  62. height: max-content;
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. padding: 40rpx 32rpx;
  67. box-sizing: border-box;
  68. .left view:nth-child(1){
  69. font-size: 36rpx;
  70. font-weight: bold;
  71. }
  72. .left view:nth-child(2){
  73. font-size: 28rpx;
  74. color: #555555;
  75. margin-top: 20rpx;
  76. }
  77. .right{
  78. width: 182rpx;
  79. height: 82rpx;
  80. background-color: #E21196;
  81. border-radius: 10rpx;
  82. color: #FFFFFF;
  83. font-size: 36rpx;
  84. line-height: 82rpx;
  85. text-align: center;
  86. }
  87. }
  88. .content{
  89. width: 750rpx;
  90. height: max-content;
  91. padding: 20rpx 32rpx 50rpx;
  92. display: flex;
  93. flex-wrap: wrap;
  94. .hua-item{
  95. width: 90rpx;
  96. height: 90rpx;
  97. background-color: #F5F5F5;
  98. border-radius: 5rpx;
  99. font-size: 18rpx;
  100. color: #555555;
  101. display: flex;
  102. flex-direction: column;
  103. align-items: center;
  104. justify-content: space-around;
  105. margin-right: 9rpx;
  106. margin-bottom: 10rpx;
  107. &:nth-child(7n){
  108. margin-right: 0rpx;
  109. }
  110. }
  111. }
  112. .explain{
  113. width: 686rpx;
  114. height: max-content;
  115. background-color: #F5F5F5;
  116. border-radius: 10rpx;
  117. margin: 0 auto;
  118. box-sizing: border-box;
  119. padding: 30rpx;
  120. .eye-catching{
  121. font-size: 28rpx;
  122. font-weight: bold;
  123. color: #E21196;
  124. padding: 0 4rpx;
  125. }
  126. }
  127. </style>