1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <view class="">
- <view class="cu-list menu-avatar">
- <view class="cu-item deviceTypeItem" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in deviceData"
- :key="index" :data-target="'move-box-' + index" @tap="goDeviceDetail">
- <view class="cu-avatar round lg" :style="`background-image:url(${item.imgUrl})`"></view>
- <view class="content" >
- <view class="">{{item.title}}</view>
- </view>
- <view class="nav-right num">
- <view class="text-grey">
- {{item.status}}
- <text class="icon iconfont margin-right-xs margin-left-lg"></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- deviceData: [{
- imgUrl: '../../static/jx.png',
- title: '进线一',
- status:'在线'
- }, {
- imgUrl: '../../static/jx.png',
- title: '进线二',
- status:'离线'
- }
- ],
- modalName: null,
- };
- },
- methods: {
-
- // 页面跳转
- goDeviceDetail() {
- uni.navigateTo({
- url: '/pages/deviceManage/deviceDetail/deviceDetail',
- success: res => {},
- fail: () => {},
- complete: () => {}
- });
- },
-
- }
- }
- </script>
- <style lang="scss">
- .cu-list.menu-avatar>.cu-item .content>uni-view:first-child {
- font-size: 32rpx;
- }
- .num {
- font-size: 30rpx;
- color: #666;
- }
- </style>
|