inspectList.vue 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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" :style="`background-image:url(${item.imgUrl})`"></view>
  6. <view class="content">
  7. <view class="title">{{item.title}}</view>
  8. </view>
  9. <view class="nav-right num">
  10. <view>
  11. <text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import json from '../../data/json.js';
  20. export default {
  21. data() {
  22. return {
  23. inspectList: json.inspectList,
  24. };
  25. },
  26. onLoad:function(option){
  27. },
  28. methods: {
  29. goProcessList(item){
  30. uni.navigateTo({
  31. url: '/pages/inspectList/processList/processList?type='+item.type,
  32. });
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. </style>