alarmingList.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view>
  3. <!-- 宫格列表 -->
  4. <square :cuIconList="cuIconList"></square>
  5. <!-- <view class="section2 section bg-white margin-top-sm margin-bottom-sm">
  6. <view class="cu-list grid col-3 no-border">
  7. <view class="cu-item justify-center align-center" @tap="goProcessList">
  8. <image src="../../static/square-dl.png" style="width:100rpx;height:100rpx"></image>
  9. <view class="cu-tag badge">99+
  10. </view>
  11. <text>电力监测</text>
  12. </view>
  13. <view class="cu-item justify-center align-center">
  14. <image src="../../static/square-alarm.png" style="width:100rpx;height:100rpx"></image>
  15. <text>视频告警</text>
  16. </view>
  17. </view>
  18. </view> -->
  19. </view>
  20. </template>
  21. <script>
  22. // import square from '../../components/square/square.vue';
  23. export default {
  24. // components: {
  25. // square
  26. // },
  27. data() {
  28. return {
  29. // 宫格列表数据
  30. cuIconList: [{
  31. imgUrl:'../../static/square-dl.png',
  32. badge: 120,
  33. name: '电力监测',
  34. redirectUrl:'/pages/processList/processList?type=1'
  35. }, {
  36. imgUrl:'../../static/square-alarm.png',
  37. badge: 0,
  38. name: '视频告警',
  39. redirectUrl:'/pages/processList/processList?type=2'
  40. }],
  41. }
  42. },
  43. onLoad() {
  44. uni.setNavigationBarTitle({
  45. title: '综合报警'
  46. });
  47. },
  48. methods: {
  49. // 页面跳转
  50. goProcessList() {
  51. uni.navigateTo({
  52. url: '/pages/processList/processList',
  53. success: res => {},
  54. fail: () => {},
  55. complete: () => {}
  56. });
  57. },
  58. }
  59. }
  60. </script>
  61. <style>
  62. </style>