index.vue 739 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="content">
  3. <button type="primary" @click="addDevice">添加设备</button>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. title: "Hello",
  11. };
  12. },
  13. onLoad() {},
  14. methods: {
  15. addDevice() {
  16. uni.navigateTo({
  17. url: "../addDevice/selectDevice/selectDevice",
  18. });
  19. },
  20. },
  21. };
  22. </script>
  23. <style>
  24. .content {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. justify-content: center;
  29. }
  30. .logo {
  31. height: 200rpx;
  32. width: 200rpx;
  33. margin-top: 200rpx;
  34. margin-left: auto;
  35. margin-right: auto;
  36. margin-bottom: 50rpx;
  37. }
  38. .text-area {
  39. display: flex;
  40. justify-content: center;
  41. }
  42. .title {
  43. font-size: 36rpx;
  44. color: #8f8f94;
  45. }
  46. </style>