index.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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?type=5',
  15. text:'气象检测'
  16. },
  17. {
  18. url:'/pages/weather/index?type=8',
  19. text:'墒情检测'
  20. },
  21. {
  22. url:'/pages/worm/index',
  23. text:'虫情监测'
  24. },
  25. {
  26. url:'/pages/camera/index',
  27. text:'监控列表'
  28. },
  29. {
  30. url:'/pages/pest/index',
  31. text:'病虫害百科'
  32. },
  33. {
  34. url:'/pages/pest/discern',
  35. text:'病虫害识别'
  36. },
  37. {
  38. url:'/pages/aftersale/list',
  39. text:'故障上报'
  40. },
  41. {
  42. url:'/pages/warn/index',
  43. text:'预警列表'
  44. },
  45. {
  46. url:'/pages/traplamp/traplamp',
  47. text:'测报灯'
  48. },
  49. {
  50. url:'/pages/weatherother/weatherother',
  51. text:'气象站'
  52. }
  53. ]
  54. }
  55. },
  56. onLoad() {
  57. },
  58. methods: {
  59. }
  60. }
  61. </script>
  62. <style>
  63. .content {
  64. display: flex;
  65. flex-direction: column;
  66. align-items: center;
  67. justify-content: center;
  68. }
  69. .logo {
  70. height: 200rpx;
  71. width: 200rpx;
  72. margin-top: 200rpx;
  73. margin-left: auto;
  74. margin-right: auto;
  75. margin-bottom: 50rpx;
  76. }
  77. .text-area {
  78. display: flex;
  79. justify-content: center;
  80. }
  81. .title {
  82. font-size: 36rpx;
  83. color: #8f8f94;
  84. }
  85. </style>