home.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="content">
  3. <view class="zdyNav">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="nav">
  6. <view>欧洲维修</view>
  7. </view>
  8. </view>
  9. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  10. <view style="height: 44px;"></view>
  11. <view class="homePg">
  12. <view class="bg">
  13. <view class="logIn" @click="logIn">立即登录</view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. iStatusBarHeight: '',
  23. }
  24. },
  25. onLoad() {
  26. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  27. },
  28. methods: {
  29. logIn() {
  30. uni.navigateTo({
  31. url: '../logIn/logIn'
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style>
  38. .content {
  39. background-color: #EB5808;
  40. width: 100%;
  41. height: 100%;
  42. }
  43. /* #ifdef H5 */
  44. .content {
  45. background-color: #EB5808;
  46. width: 100%;
  47. height: 100%;
  48. }
  49. /* #endif */
  50. .zdyNav {
  51. position: fixed;
  52. left: 0;
  53. top: 0;
  54. background: #FFFFFF;
  55. z-index: 11;
  56. }
  57. .status_bar {
  58. background: #FFFFFF;
  59. }
  60. .nav {
  61. width: 100vw;
  62. height: 44px;
  63. background: #FFFFFF;
  64. text-align: center;
  65. font-size: 34rpx;
  66. line-height: 44px;
  67. font-weight: bold;
  68. }
  69. .homePg {
  70. position: fixed;
  71. width: 100vw;
  72. height: calc(100vh - 44px);
  73. background-color: #EB5808;
  74. }
  75. .bg {
  76. width: 100vw;
  77. height: calc(100vh - 44px);
  78. background: url('http://phone.66km.cn:8088/marketing/home_yypb.png') no-repeat;
  79. background-size: 100%;
  80. position: relative;
  81. }
  82. .logIn{
  83. width: 442rpx;
  84. height: 88rpx;
  85. background-color: #FF4F00;
  86. border-radius: 44rpx;
  87. color: #FFFFFF;
  88. font-size: 30rpx;
  89. text-align: center;
  90. line-height: 88rpx;
  91. position: absolute;
  92. left: 154rpx;
  93. top: 847rpx;
  94. }
  95. </style>