siteArchive.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/archiveIcon.png)"></view>
  8. <view class="content" >
  9. <view class="pro-title">
  10. <view class="cut">{{item.title}}</view>
  11. </view>
  12. </view>
  13. <view class="nav-right num">
  14. <view class="text-grey">
  15. <text class="icon iconfont margin-right-sm margin-left-lg">&#xe629;</text>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 新增按钮start -->
  22. <view class="plus">
  23. <image src="../../static/plus.png" style="width:125rpx;height:125rpx" @tap="goAddPage()"></image>
  24. </view>
  25. <!-- 新增按钮end -->
  26. </view>
  27. </template>
  28. <script>
  29. import json from '../../data/json.js';
  30. export default {
  31. data() {
  32. return {
  33. controlReport: json.archive,
  34. modalName: null,
  35. };
  36. },
  37. onLoad:function(option){
  38. },
  39. methods: {
  40. // 页面跳转
  41. goAddPage(item) {
  42. uni.navigateTo({
  43. url: '/pages/eleControl/controlReport/controlReportAdd/controlReportAdd',
  44. });
  45. },
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. .cu-item{
  51. height:160rpx!important
  52. }
  53. .cu-list.menu-avatar > .cu-item .content {
  54. left: 110rpx;
  55. }
  56. </style>