first_email.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div class="first_email">
  3. <!-- <image src="@/static/images/gif/letter.png" style="width: 100%;height: auto" mode="widthFix"></image> -->
  4. <div class="text_email">
  5. <div class="title">
  6. {{detail.h5_base_user_diyifengxin_title}}
  7. </div>
  8. <div class="email_text">
  9. <div v-html="detail.h5_base_user_diyifengxin"></div>
  10. </div>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. detail: {
  19. }
  20. }
  21. },
  22. onLoad() {
  23. this.getDetail()
  24. },
  25. methods: {
  26. getDetail() {
  27. this.$u.post('/base/setting/configs', {
  28. keys: ['h5_base_user_diyifengxin', 'h5_base_user_diyifengxin_title']
  29. }).then(res => {
  30. console.log(res)
  31. this.detail = res.data
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .first_email {
  39. background-image: url('../../static/images/gif/letter.png');
  40. height: 100vh;
  41. width: 100vw;
  42. background-position: center;
  43. background-size: 100% auto;
  44. }
  45. .text_email {
  46. line-height: 26px;
  47. font-size: 16px;
  48. position: fixed;
  49. width: 75vw;
  50. top: 20vh;
  51. left: 12.5vw;
  52. text-align: justify;
  53. .title {
  54. font-size: 18px;
  55. font-weight: 550;
  56. text-align: center;
  57. margin-bottom: 8px;
  58. }
  59. .email_text {
  60. height: 36vh;
  61. overflow-y: scroll;
  62. }
  63. }
  64. </style>