page-nav.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="nav-wrap">
  3. <view class="nav-title">
  4. <image class="logo" src="/static/images/logo.png" mode="widthFix"></image>
  5. <view class="nav-info">
  6. <view class="nav-title__text">
  7. {{title}}
  8. </view>
  9. </view>
  10. </view>
  11. <view class="nav-desc">
  12. {{desc}}
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. props: {
  19. desc: String,
  20. title: String,
  21. },
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .nav-wrap {
  26. margin-top: 15px;
  27. padding: 15px;
  28. position: relative;
  29. }
  30. .lang {
  31. position: absolute;
  32. top: 15px;
  33. right: 15px;
  34. }
  35. .nav-title {
  36. /* #ifndef APP-NVUE */
  37. display: flex;
  38. /* #endif */
  39. flex-direction: row;
  40. align-items: center;
  41. }
  42. .nav-info {
  43. margin-left: 15px;
  44. }
  45. .nav-title__text {
  46. /* #ifndef APP-NVUE */
  47. display: flex;
  48. /* #endif */
  49. color: $u-main-color;
  50. font-size: 20px;
  51. font-weight: bold;
  52. }
  53. .logo {
  54. width: 100px;
  55. /* #ifndef APP-NVUE */
  56. height: auto;
  57. /* #endif */
  58. }
  59. .nav-slogan {
  60. color: $u-tips-color;
  61. font-size: 14px;
  62. }
  63. .nav-desc {
  64. margin-top: 10px;
  65. font-size: 14px;
  66. color: $u-content-color;
  67. }
  68. </style>