deviceManage.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="">
  3. <view class="cu-list menu-avatar">
  4. <view class="cu-item deviceTypeItem" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in deviceData"
  5. :key="index" :data-target="'move-box-' + index" @tap="goDeviceDetail">
  6. <view class="cu-avatar round lg" :style="`background-image:url(${item.imgUrl})`"></view>
  7. <view class="content" >
  8. <view class="">{{item.title}}</view>
  9. </view>
  10. <view class="nav-right num">
  11. <view class="text-grey">
  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. export default {
  21. data() {
  22. return {
  23. deviceData: [{
  24. imgUrl: '../../static/jx.png',
  25. title: '进线一',
  26. }, {
  27. imgUrl: '../../static/jx.png',
  28. title: '进线二',
  29. }
  30. ],
  31. modalName: null,
  32. };
  33. },
  34. methods: {
  35. // 页面跳转
  36. goDeviceDetail() {
  37. uni.navigateTo({
  38. url: '/pages/deviceManage/deviceDetail/deviceDetail',
  39. success: res => {},
  40. fail: () => {},
  41. complete: () => {}
  42. });
  43. },
  44. }
  45. }
  46. </script>
  47. <style lang="scss">
  48. .cu-list.menu-avatar>.cu-item .content>uni-view:first-child {
  49. font-size: 32rpx;
  50. }
  51. .num {
  52. font-size: 30rpx;
  53. color: #666;
  54. }
  55. </style>