|
@@ -21,7 +21,7 @@
|
|
<scroll-view scroll-y="true" style="height: calc(100vh - 118rpx - 14rpx - 20rpx - 88rpx - 64rpx - 58rpx - {{bannerList.length>0?296:0}}rpx - {{navBarHeight}}px);margin-top: 22rpx;padding-top: 10rpx; ">
|
|
<scroll-view scroll-y="true" style="height: calc(100vh - 118rpx - 14rpx - 20rpx - 88rpx - 64rpx - 58rpx - {{bannerList.length>0?296:0}}rpx - {{navBarHeight}}px);margin-top: 22rpx;padding-top: 10rpx; ">
|
|
<view wx:if="{{deviceList}}">
|
|
<view wx:if="{{deviceList}}">
|
|
<block wx:key="key" wx:for-item="item" wx:for-index="index" wx:for="{{deviceList}}">
|
|
<block wx:key="key" wx:for-item="item" wx:for-index="index" wx:for="{{deviceList}}">
|
|
- <view class="item_public" style="width: calc(100vw - 72rpx);border: {{item.state && item.state === 'online'&&deviceListIndex === index ? '4rpx solid #6546A3' : item.state && item.state === 'online'?'2rpx solid #6546A3':'2rpx solid #F2F5F7'}}; margin-left: {{item.state && item.state === 'online'&&deviceListIndex === index ?0:4}}rpx;" data-item="{{item}}" data-index="{{index}}" bind:tap="onTapItem">
|
|
|
|
|
|
+ <view class="item_public" style="width: calc(100vw - {{item.state && item.state === 'online'&&deviceListIndex === index ?76:70}}rpx);border: {{item.state && item.state === 'online'&&deviceListIndex === index ? '8rpx solid #6546A3' : item.state && item.state === 'online'?'2rpx solid #6546A3':'2rpx solid #F2F5F7'}}; margin-left: {{item.state && item.state === 'online'&&deviceListIndex === index ?0:4}}rpx;" data-item="{{item}}" data-index="{{index}}" bind:tap="onTapItem">
|
|
|
|
|
|
<image class="item_public_image" src="./../../img/min.png" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};"></image>
|
|
<image class="item_public_image" src="./../../img/min.png" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};"></image>
|
|
<view class="item_public_right" style="margin-right: 26rpx; opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};">
|
|
<view class="item_public_right" style="margin-right: 26rpx; opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};">
|