controlReport.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="site-wrapper">
  3. <view style="height: calc(100vh - 200rpx);overflow:scroll">
  4. <view class="cu-list menu-avatar">
  5. <view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in controlReport"
  6. :key="index" :data-target="'move-box-' + index" @tap="goDeviceDetail(item)">
  7. <view class="cu-avatar round lg" style="background-image:url(../../../static/controlReportIcon.png)"></view>
  8. <view class="content" >
  9. <view class="pro-title">
  10. <view class="cut">{{item.title}}</view>
  11. </view>
  12. <view class="pro-date ">{{item.time}}</view>
  13. </view>
  14. <view class="nav-right num">
  15. <view class="text-grey">
  16. <text class="icon iconfont margin-right-sm margin-left-lg">&#xe629;</text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 新增按钮start -->
  23. <view class="plus">
  24. <image src="../../../static/plus.png" style="width:125rpx;height:125rpx" @tap="goAddPage()"></image>
  25. </view>
  26. <!-- 新增按钮end -->
  27. </view>
  28. </template>
  29. <script>
  30. import json from '../../../data/json.js';
  31. export default {
  32. data() {
  33. return {
  34. controlReport: json.controlReport,
  35. modalName: null,
  36. };
  37. },
  38. onLoad:function(option){
  39. },
  40. methods: {
  41. // 页面跳转
  42. goAddPage(item) {
  43. uni.navigateTo({
  44. url: '/pages/eleControl/controlReport/controlReportAdd/controlReportAdd',
  45. });
  46. },
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. .cu-item{
  52. height:160rpx!important
  53. }
  54. .cu-list.menu-avatar > .cu-item .content {
  55. left: 110rpx;
  56. }
  57. </style>