index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. }
  47. },
  48. onLoad() {
  49. },
  50. methods: {
  51. }
  52. }
  53. </script>
  54. <style>
  55. .content {
  56. display: flex;
  57. flex-direction: column;
  58. align-items: center;
  59. justify-content: center;
  60. }
  61. .logo {
  62. height: 200rpx;
  63. width: 200rpx;
  64. margin-top: 200rpx;
  65. margin-left: auto;
  66. margin-right: auto;
  67. margin-bottom: 50rpx;
  68. }
  69. .text-area {
  70. display: flex;
  71. justify-content: center;
  72. }
  73. .title {
  74. font-size: 36rpx;
  75. color: #8f8f94;
  76. }
  77. </style>