rules.vue 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <transition name="msgbox-fade">
  3. <div class="popup-wrap" v-show="visible">
  4. <div class="popup-modal"></div>
  5. <div class="popup-box">
  6. <div class="popup-hd">
  7. <div class="popup-hd-title"><em>{{$t(`rules.${showTitle}`)}}</em></div>
  8. <span class="popup-close" @click="visible = false"></span>
  9. </div>
  10. <div class="popup-bd">
  11. <div class="rules-text">
  12. <pre>{{$t(`rules.${showContent}`)}}</pre>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </transition>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'popupRules'
  22. }
  23. </script>
  24. <style lang="scss">
  25. .rules-text{
  26. padding: px2rem(20);
  27. background-color: rgba(0, 0, 0, 0.2);
  28. pre{
  29. font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  30. text-align: left;
  31. font-size: px2rem(16);
  32. line-height: px2rem(28);
  33. @include wrap;
  34. @media #{$phone} {
  35. font-size: px2rem(24);
  36. line-height: px2rem(44);
  37. }
  38. }
  39. }
  40. </style>