system.wxml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!--pages/system/system.wxml-->
  2. <view class="overallsituation">
  3. <view class="switch-1">
  4. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/network.png" style="position: absolute; left:5%;top:14%;width:8%;height:70%;"></image>
  5. <view class="Dropdown">
  6. <picker range="{{groupName}}" value="{{groupIndex}}" bindchange="changegroup">
  7. <view class="group">
  8. {{groupName[groupIndex]}}
  9. </view>
  10. </picker>
  11. <picker range="{{deviceName}}" value="{{deviceIndex}}" bindchange="changedevice">
  12. <view class="device">
  13. {{deviceName[deviceIndex]}}
  14. </view>
  15. </picker>
  16. </view>
  17. <text class="Onlinestatus" style="background-color: white;color: red;">{{status}}</text>
  18. </view>
  19. <view class="Calibration-time">
  20. <text style="left: 5.3%;">回路数量:</text>
  21. <text style="left: 27%;">{{loops}}路</text>
  22. <button style="width: 21.3%;" bindtap="Calibrationtime">校准时间</button>
  23. </view>
  24. <!-- 旧设备 -->
  25. <view class="adjustment" wx:if="{{play == 0 ? true : false}}">
  26. <view class="adjustment-1">
  27. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/calendar.png"></image>
  28. <text style=" left: 12.3%;">日期:</text>
  29. <text style="right: 5.8%;">{{dates}}</text>
  30. </view>
  31. <view class="adjustment-1">
  32. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/Clock.png" style="height: calc(100vw * 30/375);width: calc(100vw * 30/375);top: 18.75%;"></image>
  33. <text style=" left: 14%;">时间:</text>
  34. <text style="right: 5.8%;">{{times}}</text>
  35. </view>
  36. <view class="adjustment-1">
  37. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/sunrise.png"></image>
  38. <text style=" left: 12.3%;">光照度:</text>
  39. <text style="right: 5.8%;">{{Illuminance}}</text>
  40. </view>
  41. <view class="adjustment-1">
  42. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/Fire-Extinguisher.png" style="width: calc(100vw * 30/375);height: calc(100vw * 40/375);"></image>
  43. <text style=" left: 12.3%;">消防报警:</text>
  44. <text style="right: 5.8%;background-color:{{Firealarmcolor}};">{{Firealarmtext}}</text>
  45. </view>
  46. <view class="adjustment-1">
  47. <text style="position: absolute;left: 2.9%;">日出:</text>
  48. <text style="position: absolute;left: 20.5%;">{{Sunrisetime}}</text>
  49. <text style="position: absolute;left: 52.9%;">日落:</text>
  50. <text style="position: absolute;left: 70.5%;">{{Sunsettime}}</text>
  51. </view>
  52. <view class="adjustment-1">
  53. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/time.png" style="height: calc(100vw * 36/375);width: calc(100vw * 36/375);top: 13%;"></image>
  54. <text style=" left: 13%;">开关延时:</text>
  55. <picker style="left:47%;top:18.36%;width: 14.7%;"bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
  56. <view class="picker">
  57. {{array[index]}}秒
  58. </view>
  59. </picker>
  60. <text style="right: 5.8%;">{{switchtime}}秒</text>
  61. </view>
  62. <view class="adjustment-1">
  63. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/Longitude.png" style="height: calc(100vw * 30/375); width: calc(100vw * 30/375);top: 18.75%;"></image>
  64. <text style=" left: 12.35%;">经度:</text>
  65. <picker mode="multiSelector" range="{{multiItems}}" bindchange="handleMulti" style="width: 20%;left: 40%;top: 20%;">
  66. <view>{{ multiItems[0][multiIndex[0]] }},{{ multiItems[1][multiIndex[1]] }}'</view>
  67. </picker>
  68. <text style="right: 5.8%;">{{longitude}}</text>
  69. </view>
  70. <view class="adjustment-1">
  71. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/Longitude.png" style="height: calc(100vw * 30/375); width: calc(100vw * 30/375);top: 18.75%;"></image>
  72. <text style=" left: 12.35%;">纬度:</text>
  73. <picker mode="multiSelector" range="{{multiItems2}}" bindchange="handleMulti2" style="width: 20%;left: 40%;top: 20%;">
  74. <view>{{ multiItems2[0][multiIndex2[0]] }},{{ multiItems2[1][multiIndex2[1]] }}'</view>
  75. </picker>
  76. <text style="right: 5.8%;">{{latitude}}</text>
  77. </view>
  78. </view>
  79. <!-- 新设备 -->
  80. <view class="adjustment" wx:if="{{play == 1 ? true : false}}">
  81. <view class="adjustment-1">
  82. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/calendar.png"></image>
  83. <text style=" left: 12.3%;">日期:</text>
  84. <text style="right: 5.8%;">{{dates}}</text>
  85. </view>
  86. <view class="adjustment-1">
  87. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/Clock.png" style="height: calc(100vw * 30/375);width: calc(100vw * 30/375);top: 18.75%;"></image>
  88. <text style=" left: 14%;">时间:</text>
  89. <text style="right: 5.8%;">{{times}}</text>
  90. </view>
  91. </view>
  92. <view class="Refresh" wx:if="{{play == 0 ? true : false}}">
  93. <button class="Refresh-1" bindtap="RefreshPage">
  94. 刷新页面
  95. </button>
  96. <button class="Refresh-2" bindtap="Storedata">
  97. 存储数据
  98. </button>
  99. </view>
  100. </view>