deviceType.vue 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="">
  3. <view class="cu-list menu-avatar">
  4. <view class="cu-item deviceTypeItem" v-for="(item,index) in deviceType" :key="index" @tap="goDeviceType">
  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. 共{{item.num}}个设备
  12. <text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import json from '../../data/json.js';
  21. export default {
  22. data() {
  23. return {
  24. deviceType: json.deviceType,
  25. };
  26. },
  27. onLoad: function(option) {
  28. },
  29. methods: {
  30. goDeviceType() {
  31. uni.navigateTo({
  32. url: '/pages/device-Manage/device-Manage',
  33. });
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. </style>