inspectList.vue 990 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="">
  3. <view class="cu-list menu-avatar">
  4. <view class="cu-item deviceTypeItem" v-for="(item,index) in inspectList" :key="index" @tap="goProcessList(item)">
  5. <view class="cu-avatar round">
  6. <image class="image-bg" :src=item.imgUrl />
  7. </view>
  8. <view class="content">
  9. <view class="title">{{item.title}}</view>
  10. </view>
  11. <view class="nav-right num">
  12. <view>
  13. <text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import json from '../../data/json.js';
  22. export default {
  23. data() {
  24. return {
  25. inspectList: json.inspectList,
  26. };
  27. },
  28. onLoad:function(option){
  29. },
  30. methods: {
  31. goProcessList(item){
  32. uni.navigateTo({
  33. url: '/pages/inspectList/processList/processList?type='+item.type,
  34. });
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. </style>