index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="content">
  3. <navigator :url="item.url" class="ui-card p-12" v-for="(item,index) in urls" :key="index">
  4. {{item.text}}
  5. </navigator>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. urls:[
  13. {
  14. url:'/pages/weather/index',
  15. text:'环境检测'
  16. },
  17. {
  18. url:'/pages/worm/index',
  19. text:'虫情监测'
  20. },
  21. {
  22. url:'/pages/camera/index',
  23. text:'监控列表'
  24. },
  25. {
  26. url:'/pages/pest/index',
  27. text:'病虫害百科'
  28. },
  29. {
  30. url:'/pages/fault/index',
  31. text:'故障上报'
  32. },
  33. {
  34. url:'/pages/warn/index',
  35. text:'预警消息'
  36. },
  37. ]
  38. }
  39. },
  40. onLoad() {
  41. },
  42. methods: {
  43. }
  44. }
  45. </script>
  46. <style>
  47. .content {
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. justify-content: center;
  52. }
  53. .logo {
  54. height: 200rpx;
  55. width: 200rpx;
  56. margin-top: 200rpx;
  57. margin-left: auto;
  58. margin-right: auto;
  59. margin-bottom: 50rpx;
  60. }
  61. .text-area {
  62. display: flex;
  63. justify-content: center;
  64. }
  65. .title {
  66. font-size: 36rpx;
  67. color: #8f8f94;
  68. }
  69. </style>