order.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <view style="font-size: 16px">
  3. <canvasNavbar></canvasNavbar>
  4. <view class="flex box">
  5. <view class="boxSon">
  6. <view class="flex m20">
  7. <view class="sphere">A</view>
  8. <view class="sphere">B</view>
  9. <view class="sphere">C</view>
  10. <view class="sphere">D</view>
  11. </view>
  12. <view class="canvasBox">
  13. <view></view>
  14. <view class="floating">
  15. <text style="color:#939393">灯光增益</text>
  16. <uni-number-box v-model="vModelValue" @change="changeValue" style="margin: 0 5rpx"/>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="boxSon bg">
  21. <view class="m20">
  22. </view>
  23. <view class="m20 flex">
  24. <view class="roundBig">
  25. <view class="roundSmall">
  26. <span>位置</span>
  27. </view>
  28. <view class="direction">
  29. <span class="rotate45">
  30. <uni-icons type="up" color="#fff" size="30"></uni-icons>
  31. </span>
  32. </view>
  33. <view class="direction">
  34. <span class="rotate45">
  35. <uni-icons type="right" color="#fff" size="30"></uni-icons>
  36. </span>
  37. </view>
  38. <view class="direction">
  39. <span class="rotate45">
  40. <uni-icons type="left" color="#fff" size="30"></uni-icons>
  41. </span>
  42. </view>
  43. <view class="direction">
  44. <span class="rotate45">
  45. <uni-icons type="down" color="#fff" size="30"></uni-icons>
  46. </span>
  47. </view>
  48. </view>
  49. <view class="roundBig">
  50. <view class="roundSmall">
  51. <span>50</span>
  52. </view>
  53. <view class="direction">
  54. <span class="rotate45">高 +</span>
  55. </view>
  56. <view class="direction">
  57. <span class="rotate45">宽 +</span>
  58. </view>
  59. <view class="direction">
  60. <span class="rotate45">宽 -</span>
  61. </view>
  62. <view class="direction">
  63. <span class="rotate45">高 -</span>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="m20 flex1">
  68. <view class="button1">更新位置</view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </template>
  74. <script>
  75. import UniNumberBox from "../../uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue";
  76. import UniDataCheckbox from "../../uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue";
  77. import canvasNavbar from '../../components/canvasNavbar.vue'
  78. import UniIcons from "../../uni_modules/uni-icons/components/uni-icons/uni-icons.vue";
  79. export default {
  80. components: {UniIcons, UniNumberBox, UniDataCheckbox, canvasNavbar},
  81. data() {
  82. return {
  83. checkbox1: [],
  84. vModelValue: 0,
  85. hobby: [{
  86. text: '光控计数',
  87. value: 0
  88. }, {
  89. text: '推头复位',
  90. value: 1
  91. }],
  92. };
  93. },
  94. methods: {
  95. changeValue() {
  96. console.log(this.vModelValue)
  97. },
  98. }
  99. }
  100. </script>
  101. <style lang="scss">
  102. .box {
  103. margin-top: 20px;
  104. }
  105. .M40 {
  106. margin-top: 40px;
  107. }
  108. .flex {
  109. padding: 0 20px;
  110. display: flex;
  111. justify-content: space-between
  112. }
  113. .flex1 {
  114. display: flex;
  115. justify-content: center;
  116. }
  117. .boxSon {
  118. width: 50%;
  119. height: 75vh;
  120. }
  121. .bg {
  122. margin-left: 20px;
  123. background-color: #cccccc;
  124. }
  125. .comButton {
  126. margin-right: 20rpx;
  127. }
  128. .sphere {
  129. width: 60px;
  130. height: 60px;
  131. line-height: 56px;
  132. border-radius: 30px;
  133. text-align: center;
  134. font-size: 20px;
  135. border: 1px solid #ccc;
  136. }
  137. .sphere:hover {
  138. background-color: #2b85e4;
  139. color: white;
  140. }
  141. .canvasBox {
  142. position: relative;
  143. height: 75%;
  144. background-color: black;
  145. }
  146. .floating {
  147. position: absolute;
  148. right: 5%;
  149. bottom: 5%;
  150. display: flex;
  151. align-items: center
  152. }
  153. .m20 {
  154. margin: 20px 0;
  155. }
  156. .roundBig {
  157. width: 160px;
  158. height: 160px;
  159. position: relative;
  160. background-color: #ea2424;
  161. border-radius: 80px;
  162. display: flex;
  163. flex-wrap: wrap;
  164. transform: rotate(45deg);
  165. overflow: hidden;
  166. }
  167. .roundSmall {
  168. background-color: white;
  169. border-radius: 35px;
  170. font-size: 22px;
  171. width: 70px;
  172. height: 70px;
  173. position: absolute;
  174. display: flex;
  175. justify-content: center;
  176. align-items: center;
  177. top: 50%;
  178. right: 50%;
  179. transform: translate(50%, -50%) rotate(-45deg);
  180. }
  181. .direction {
  182. width: 50%;
  183. height: 50%;
  184. background-color: #516c77;
  185. box-sizing: border-box;
  186. display: flex;
  187. justify-content: center;
  188. align-items: center;
  189. }
  190. .direction:active {
  191. background-color: #92a6af;
  192. }
  193. .rotate45 {
  194. transform: rotate(-45deg);
  195. color: white;
  196. }
  197. .button {
  198. display: inline-block;
  199. background-color: #516c77;
  200. color: white;
  201. line-height: 30px;
  202. height: 30px;
  203. width: 80px;
  204. text-align: center;
  205. margin: 0 10px;
  206. border-radius: 5px;
  207. }
  208. .button:active{
  209. background-color: #92a6af;
  210. }
  211. .button1{
  212. display: inline-block;
  213. background-color: white;
  214. color: black;
  215. line-height: 40px;
  216. height: 40px;
  217. width: 90px;
  218. text-align: center;
  219. margin: 0 10px;
  220. border-radius: 5px;
  221. }
  222. .button1:active{
  223. background-color: #2b82ed;
  224. color: white;
  225. }
  226. </style>