forget.vue 684 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="container">
  3. <view :style="{height: statusBarHeight + 'px'}"></view>
  4. 忘记密码
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. statusBarHeight: 0,
  12. navBarHeight:0
  13. };
  14. },
  15. onReady() {
  16. const that = this;
  17. uni.getSystemInfo({
  18. success(e) {
  19. that.statusBarHeight = e.statusBarHeight;
  20. let custom = uni.getMenuButtonBoundingClientRect();
  21. that.navBarHeight = custom.height + (custom.top - e.statusBarHeight) * 2;
  22. }
  23. })
  24. },
  25. onLoad() {
  26. }
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. .container {
  31. height: 100vh;
  32. width: 100vw;
  33. background-color: $uni-bg-color;
  34. padding: 0 20rpx;
  35. }
  36. </style>