浏览代码

feature: 首页UI细节调整

Damon 7 月之前
父节点
当前提交
5a0c6bb4a7
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      pages/index/index.wxml

+ 2 - 3
pages/index/index.wxml

@@ -25,7 +25,7 @@
 
 
             <image wx:if="{{item.connectType==3}}" class="item_public_image" src="./../../img/min.png" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};"></image>
             <image wx:if="{{item.connectType==3}}" class="item_public_image" src="./../../img/min.png" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};"></image>
             <image wx:else class="item_public_image" src="{{item.img}}" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};" mode="aspectFit" lazy-load="true" webp="true"></image>
             <image wx:else class="item_public_image" src="{{item.img}}" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};" mode="aspectFit" lazy-load="true" webp="true"></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: 25rpx; opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};">
               <view style="height: 190rpx; margin-top: 37rpx; margin-left: 32rpx; flex-direction: column; display: flex;">
               <view style="height: 190rpx; margin-top: 37rpx; margin-left: 32rpx; flex-direction: column; display: flex;">
                 <view style="flex: 1;">
                 <view style="flex: 1;">
                   <view style="display: flex;">
                   <view style="display: flex;">
@@ -33,8 +33,7 @@
                       {{item.devName}}
                       {{item.devName}}
                     </view>
                     </view>
 
 
-                    <image wx:if="{{item.state && item.state === 'online'&&deviceListIndex === index }}" mode="heightFix" src="./../../img/add_device_arrow.png" style="width: 48rxp;height: 48rpx;"></image>
-                    <view wx:else style="width: 48rxp;height: 48rpx;"></view>
+                    <image mode="heightFix" src="./../../img/add_device_arrow.png" style="width: 48rxp;height: 48rpx; opacity: {{item.state && item.state === 'online'&&deviceListIndex === index ? '1' : '0'}};"></image>
 
 
                   </view>
                   </view>
                   <view style="color: #666666; font-size: 24rpx;display: flex; flex-direction: row; align-items: center;">
                   <view style="color: #666666; font-size: 24rpx;display: flex; flex-direction: row; align-items: center;">