moreInfo.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="container-view">
  3. <view :style="'padding-top:'+sumHeight+'px;height:0'"></view>
  4. <!-- <img src="https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX" style="width: 100%;height: 526rpx;" alt=""> -->
  5. <image src="https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX" style="width: 100%;height: 526rpx;"
  6. mode="aspectFit"></image>
  7. <view class="btnWrap">
  8. <view class="btnClass" @tap="toDashboard">
  9. <view class="margin_r">
  10. <image src="https://qiniu.bms16.com/Fjx1qYpRoVX6dqg1sGqn1Lzn6Bpc"
  11. style="width: 80rpx;height: 80rpx;" mode="aspectFit"></image>
  12. </view>
  13. <view class="text">
  14. 仪表盘
  15. </view>
  16. <image src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" style="width: 28rpx;height: 28rpx;"
  17. mode="aspectFit"></image>
  18. </view>
  19. <view class="btnClass" @tap="toDeviceInfo">
  20. <view class="margin_r">
  21. <image src="https://qiniu.bms16.com/FpRgmuTWpd-QyPbl_yuavOM7NtVb"
  22. style="width: 80rpx;height: 80rpx;" mode="aspectFit"></image>
  23. </view>
  24. <view class="text">
  25. 设备信息
  26. </view>
  27. <image src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" style="width: 28rpx;height: 28rpx;"
  28. mode="aspectFit"></image>
  29. </view>
  30. </view>
  31. <view class="imgWrpa" @tap="toBack">
  32. <image src="https://qiniu.bms16.com/FpfRLdpO1VjkzytUI72T36V1_j9n" style="width: 112rpx;height: 112rpx;"
  33. mode="aspectFit"></image>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. statusBarHeight: 0,
  42. navabarHeight: 0,
  43. sumHeight: 0
  44. }
  45. },
  46. onLoad() {
  47. const clientRect = uni.getMenuButtonBoundingClientRect()
  48. const sysinfo = uni.getSystemInfoSync()
  49. let GAP = 8
  50. // #ifdef MP-ALIPAY
  51. GAP = 0
  52. // #endif
  53. const navabarHeight = (clientRect.bottom - sysinfo.statusBarHeight) + (clientRect.top - sysinfo
  54. .statusBarHeight) + GAP
  55. this.navabarHeight = navabarHeight
  56. this.statusBarHeight = sysinfo.statusBarHeight
  57. this.sumHeight = this.statusBarHeight + this.navabarHeight
  58. },
  59. methods: {
  60. toDashboard() {
  61. uni.navigateTo({
  62. url: '/pages/dashboard/dashboard'
  63. })
  64. },
  65. toDeviceInfo() {
  66. uni.navigateTo({
  67. url: '/pages/deviceInfo/deviceInfo'
  68. })
  69. },
  70. toBack() {
  71. uni.navigateBack({
  72. delta: 1
  73. })
  74. },
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .container-view {
  80. height: 100vh;
  81. background-image: url('https://qiniu.bms16.com/Fj2y3PaoJrfoS5XOk9YACac7TNQQ');
  82. .btnWrap {
  83. display: flex;
  84. flex-direction: column;
  85. justify-content: center;
  86. align-items: center;
  87. }
  88. .btnClass {
  89. padding: 0 48rpx;
  90. display: flex;
  91. align-items: center;
  92. width: 686rpx;
  93. height: 176rpx;
  94. background: #FFFFFF;
  95. border-radius: 40rpx;
  96. margin-bottom: 28rpx;
  97. font-weight: 600;
  98. font-size: 40rpx;
  99. color: #060809;
  100. font-style: normal;
  101. .margin_r {
  102. margin-right: 24rpx;
  103. }
  104. .text {
  105. flex: 1;
  106. }
  107. }
  108. .imgWrpa {
  109. display: flex;
  110. justify-content: center;
  111. margin-top: 36rpx;
  112. }
  113. }
  114. </style>