index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/fault/index',
  35. text:'故障上报'
  36. },
  37. {
  38. url:'/pages/warn/index',
  39. text:'预警消息'
  40. },
  41. ]
  42. }
  43. },
  44. onLoad() {
  45. },
  46. methods: {
  47. }
  48. }
  49. </script>
  50. <style>
  51. .content {
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. justify-content: center;
  56. }
  57. .logo {
  58. height: 200rpx;
  59. width: 200rpx;
  60. margin-top: 200rpx;
  61. margin-left: auto;
  62. margin-right: auto;
  63. margin-bottom: 50rpx;
  64. }
  65. .text-area {
  66. display: flex;
  67. justify-content: center;
  68. }
  69. .title {
  70. font-size: 36rpx;
  71. color: #8f8f94;
  72. }
  73. </style>