IndexTaro.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div class="index">
  3. <div class="index-header">
  4. <img src="../../assets/images/logo-red.png" alt="" srcset="" />
  5. <div class="info">
  6. <h1>NutUI-Taro</h1>
  7. <p>请使用微信扫描下方二维码查看效果</p>
  8. </div>
  9. </div>
  10. <div class="index-wxcode">
  11. <img
  12. src="https://img12.360buyimg.com/imagetools/jfs/t1/174054/4/15968/66201/60d0028dE590f0aa8/752ecef62e4f1cbe.jpg"
  13. width="200"
  14. />
  15. </div>
  16. </div>
  17. </template>
  18. <script lang="ts">
  19. import { defineComponent } from 'vue';
  20. export default defineComponent({
  21. name: 'doc',
  22. setup() {
  23. return {};
  24. }
  25. });
  26. </script>
  27. <style lang="scss" scoped>
  28. .index {
  29. height: 100%;
  30. width: 100%;
  31. padding-top: 30px;
  32. &-header {
  33. display: flex;
  34. align-items: center;
  35. padding: 0 34px;
  36. height: 117px;
  37. > img {
  38. width: 67px;
  39. height: 67px;
  40. margin-right: 18px;
  41. flex-shrink: 0;
  42. }
  43. .info {
  44. display: flex;
  45. flex-direction: column;
  46. h1 {
  47. height: 48px;
  48. line-height: 48px;
  49. font-size: 34px;
  50. color: rgba(51, 51, 51, 1);
  51. }
  52. p {
  53. height: 18px;
  54. line-height: 18px;
  55. font-size: 12px;
  56. color: rgba(154, 155, 157, 1);
  57. }
  58. }
  59. }
  60. &-wxcode {
  61. display: flex;
  62. height: calc(100% - 117px);
  63. border-radius: 30px 30px 0 0;
  64. overflow: hidden;
  65. padding: 30px 25px;
  66. align-items: center;
  67. justify-content: center;
  68. }
  69. }
  70. </style>