wzh 2 лет назад
Родитель
Сommit
66b30dc0da
1 измененных файлов с 14 добавлено и 7 удалено
  1. 14 7
      pages/device/detail.vue

+ 14 - 7
pages/device/detail.vue

@@ -196,19 +196,19 @@
                   <view class="prop-item">
                     <view class="prop-item-left">{{item.name}}</view>
                     <view class="prop-item-right">
-                      <view v-if="item.type === 'integer'" style="width:240rpx;position: absolute;left: -260rpx;top: 10rpx;;">
+                      <view v-if="item.type === 'integer'" style="width:240rpx;position: absolute;top: 10rpx;;">
                         <u-input :customStyle="inputStyle" fontSize="20rpx"  placeholder="请输入整数"   v-model="item.shadow">
                         </u-input>
                       </view>
-                      <view style="padding:0 10rpx;width:260rpx;position: absolute;left: -270rpx;top: -10rpx;" v-if="item.type === 'string'">
+                      <view style="width:240rpx;position: absolute;top:0rpx;" v-if="item.type === 'string'">
                         <u-input :customStyle="inputStyle" fontSize="20rpx"  placeholder="请输入字符串"  v-model="item.shadow">
                         </u-input>
                       </view>
-                      <view style="padding:0 10rpx;width:260rpx;position: absolute;left: -270rpx;top: -10rpx;" v-if="item.type === 'array'">
+                      <view style="width:240rpx;position: absolute;top: 0rpx;" v-if="item.type === 'array'">
                         <u-input :customStyle="inputStyle" fontSize="20rpx" placeholder="请使用英文逗号分隔的字符串"  v-model="item.shadow">
                         </u-input>
                       </view>
-                      <view style="padding:0 10rpx;position: absolute;left: -300rpx;top: -10rpx;" v-if="item.type === 'enum'">
+                      <view style="padding:0 10rpx;position: absolute;top: -10rpx;left: -40rpx;" v-if="item.type === 'enum'">
 
                         <u-cell customStyle="border:0px;" size="mini" @click="chooseItemData(item)" arrow-direction="left" v-if="item.text != null && item.text.length>0" :title="item.text">
                           <u-icon slot="icon" size="12" name="arrow-down"></u-icon>
@@ -226,7 +226,11 @@
                   </view>
                 </view>
 
-                <button @click="send" class="login-btn cu-btn block bg-blue lg round send_btn">发送</button>
+                <view>
+                  <button style="width: 30%; height: 58rpx;
+    margin-top: 20rpx;    float: right;
+    margin-right: 140rpx;" @click="send" class="login-btn cu-btn block bg-blue lg round send_btn">发送</button>
+                </view>
 
                 <view style="margin-top:20rpx;margin-left:20rpx">
                   <u--text text="属性监控" style="margin-top:20px"></u--text>
@@ -234,8 +238,8 @@
 
                 <view class="prop-item"  v-if="checkCommonProp(item)"  v-for="item in deviceInfo.readOnlyList">
                   <view class="prop-item-left">{{item.name}}</view>
-                  <view class="prop-item-right" style="top:0rpx;">
-                    <u-input v-if="checkItemValue(item)"  placeholder="请输入字符串" disabled=""  :value="item.shadow+' '+item.unit">
+                  <view class="prop-item-right" style="width:240rpx;position: absolute;top: 10rpx;right: 70rpx;">
+                    <u-input v-if="checkItemValue(item)" :customStyle="inputStyle"  placeholder="请输入字符串" disabled=""  :value="item.shadow+' '+item.unit">
                     </u-input>
                   </view>
                 </view>
@@ -1197,12 +1201,15 @@ uni-col{
   left:10rpx;
   top:22rpx;
   color: #545454;
+  width: 50%;
+  font-size: 12px;
 }
 
 .prop-item-right{
   position: absolute;
   right:10rpx;
   top:10rpx;
+  width: 50%;
 }
 input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{
   color:#666;