control.wxml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!--pages/control/control.wxml-->
  2. <!-- 主页 -->
  3. <view class="switch-1">
  4. <image src="https://cloud.long-chi.com/resource/miniprogram-lightcontrol/image/network.png" style="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. <!-- 回路1-12 -->
  20. <view class="loop-0">
  21. <view class="loop-1">
  22. <image src="{{lamp[0]}}" class="loop-1-image-1"></image>
  23. <view class="loops">
  24. <text style="font-size: {{Size[0]}};color: {{Color[0]}};">{{loop[0]}}</text>
  25. <image src="{{address[0]}}" class="loop-0-image-2" bindtap="loopname" data-loopname="{{1}}"></image>
  26. </view>
  27. <button style="right: 17%;" class="loop-0-1" bindtap="Open" data-open="{{1}}">开</button>
  28. <button style="right: 2%;" class="loop-0-2" bindtap="Shut" data-shut="{{1}}">关</button>
  29. </view>
  30. <view class="loop-1">
  31. <image src="{{lamp[1]}}" class="loop-1-image-1"></image>
  32. <view class="loops">
  33. <text style="font-size: {{Size[1]}};color: {{Color[1]}};">{{loop[1]}}</text>
  34. <image src="{{address[1]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{2}}"></image>
  35. </view>
  36. <button style="right: 17%;" class="loop-1-1" bindtap="Open" data-open="{{2}}">开</button>
  37. <button style="right: 2%;" class="loop-1-2" bindtap="Shut" data-shut="{{2}}">关</button>
  38. </view>
  39. <view class="loop-1">
  40. <image src="{{lamp[2]}}" class="loop-1-image-1"></image>
  41. <view class="loops">
  42. <text style="font-size: {{Size[2]}};color: {{Color[2]}};">{{loop[2]}}</text>
  43. <image src="{{address[2]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{3}}"></image>
  44. </view>
  45. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{3}}">开</button>
  46. <button style="right: 2%;" class="loop-1-2" bindtap="Shut" data-shut="{{3}}">关</button>
  47. </view>
  48. <view class="loop-1">
  49. <image src="{{lamp[3]}}" class="loop-1-image-1"></image>
  50. <view class="loops">
  51. <text style="font-size: {{Size[3]}};color: {{Color[3]}};">{{loop[3]}}</text>
  52. <image src="{{address[3]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{4}}"></image>
  53. </view>
  54. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{4}}">开</button>
  55. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{4}}">关</button>
  56. </view>
  57. <view class="loop-1">
  58. <image src="{{lamp[4]}}" class="loop-1-image-1"></image>
  59. <view class="loops">
  60. <text style="font-size: {{Size[4]}};color: {{Color[4]}};">{{loop[4]}}</text>
  61. <image src="{{address[4]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{5}}"></image>
  62. </view>
  63. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{5}}">开</button>
  64. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{5}}">关</button>
  65. </view>
  66. <view class="loop-1">
  67. <image src="{{lamp[5]}}" class="loop-1-image-1"></image>
  68. <view class="loops">
  69. <text style="font-size: {{Size[5]}};color: {{Color[5]}};">{{loop[5]}}</text>
  70. <image src="{{address[5]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{6}}"></image>
  71. </view>
  72. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{6}}">开</button>
  73. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{6}}">关</button>
  74. </view>
  75. <view class="loop-1">
  76. <image src="{{lamp[6]}}" class="loop-1-image-1"></image>
  77. <view class="loops">
  78. <text style="font-size: {{Size[6]}};color: {{Color[6]}};">{{loop[6]}}</text>
  79. <image src="{{address[6]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{7}}"></image>
  80. </view>
  81. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{7}}">开</button>
  82. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{7}}">关</button>
  83. </view>
  84. <view class="loop-1">
  85. <image src="{{lamp[7]}}" class="loop-1-image-1"></image>
  86. <view class="loops">
  87. <text style="font-size: {{Size[7]}};color: {{Color[7]}};">{{loop[7]}}</text>
  88. <image src="{{address[7]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{8}}"></image>
  89. </view>
  90. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{8}}">开</button>
  91. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{8}}">关</button>
  92. </view>
  93. <view class="loop-1">
  94. <image src="{{lamp[8]}}" class="loop-1-image-1"></image>
  95. <view class="loops">
  96. <text style="font-size: {{Size[8]}};color: {{Color[8]}};">{{loop[8]}}</text>
  97. <image src="{{address[8]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{9}}"></image>
  98. </view>
  99. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{9}}">开</button>
  100. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{9}}">关</button>
  101. </view>
  102. <view class="loop-1">
  103. <image src="{{lamp[9]}}" class="loop-1-image-1"></image>
  104. <view class="loops">
  105. <text style="font-size: {{Size[9]}};color: {{Color[9]}};">{{loop[9]}}</text>
  106. <image src="{{address[9]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{10}}"></image>
  107. </view>
  108. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{10}}">开</button>
  109. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{10}}">关</button>
  110. </view>
  111. <view class="loop-1">
  112. <image src="{{lamp[10]}}" class="loop-1-image-1"></image>
  113. <view class="loops">
  114. <text style="font-size: {{Size[10]}};color: {{Color[10]}};">{{loop[10]}}</text>
  115. <image src="{{address[10]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{11}}"></image>
  116. </view>
  117. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{11}}">开</button>
  118. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{11}}">关</button>
  119. </view>
  120. <view class="loop-1">
  121. <image src="{{lamp[11]}}" class="loop-1-image-1"></image>
  122. <view class="loops">
  123. <text style="font-size: {{Size[11]}};color: {{Color[11]}};">{{loop[11]}}</text>
  124. <image src="{{address[11]}}" class="loop-1-image-2" bindtap="loopname" data-loopname="{{12}}"></image>
  125. </view>
  126. <button style="right:17%;" class="loop-1-1" bindtap="Open" data-open="{{12}}">开</button>
  127. <button style="right:2%;" class="loop-1-2" bindtap="Shut" data-shut="{{12}}">关</button>
  128. </view>
  129. <view class="loop-1" wx:if="{{play == 0 ? true : false}}">
  130. <text class="manual" style="font-weight: 550;">{{Modecontrol}}</text>
  131. <button style="width: 17%;top: 15%;" class="loop-install-1" bindtap="manual">手动</button>
  132. <button style="width: 17%;top: 15%;" class="loop-install-2" bindtap="automatic">自动</button>
  133. <button style="width: 17%;top: 15%;" class="loop-install-3" bindtap="Fullopen">全开</button>
  134. <button style="width: 17%;top: 15%;" class="loop-install-4" bindtap="Allclosed">全关</button>
  135. </view>
  136. </view>