login.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view style="font-size: 16px">
  3. <loginNavbar></loginNavbar>
  4. <view class="flex box">
  5. <view>
  6. <view class="inputCom">
  7. <text>设备编号</text>
  8. <input type="number" class="uni-input"/>
  9. <button size="mini" class="comButton">登录设备</button>
  10. </view>
  11. <view class="inputCom">
  12. <text>设备密码</text>
  13. <input type="number" class="uni-input"/>
  14. <button size="mini" class="comButton">修改密码</button>
  15. </view>
  16. <view class="inputCom">
  17. <text>服务器IP</text>
  18. <kuan-ip-input v-model="ip"></kuan-ip-input>
  19. <button size="mini" class="comButton">热点设置</button>
  20. </view>
  21. </view>
  22. <view>
  23. <view class="inputCom">
  24. <button size="mini" class="comButton">开始游戏</button>
  25. <button size="mini" class="comButton">结束游戏</button>
  26. <button size="mini" class="comButton">重启设备</button>
  27. </view>
  28. <view class="inputCom">
  29. <uni-data-checkbox multiple v-model="checkbox1" :localdata="hobby"></uni-data-checkbox>
  30. </view>
  31. <view class="inputCom">
  32. <view style="display: flex; align-items: center">
  33. <text style="color:#939393">电机转动时间</text>
  34. <uni-number-box v-model="vModelValue" @change="changeValue" style="margin: 0 5rpx"/>
  35. <button size="mini" class="comButton">确认</button>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view>
  41. <view class="DividingLine"></view>
  42. <view class="flex M40" style="color:#939393">
  43. <text> APP版本:V5.19</text>
  44. <text> 软件版本</text>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import UniNumberBox from "../../uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue";
  51. import UniDataCheckbox from "../../uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue";
  52. import loginNavbar from '../../components/loginNavbar.vue'
  53. import kuanIpInput from '@/components/kuan-ip-input/kuan-ip-input.vue'
  54. export default {
  55. components: {UniNumberBox, UniDataCheckbox, loginNavbar, kuanIpInput},
  56. data() {
  57. return {
  58. checkbox1: [],
  59. vModelValue: 0,
  60. ip: '',
  61. hobby: [{
  62. text: '光控计数',
  63. value: 0
  64. }, {
  65. text: '推头复位',
  66. value: 1
  67. }],
  68. };
  69. },
  70. methods: {
  71. changeValue() {
  72. console.log(this.vModelValue)
  73. },
  74. }
  75. }
  76. </script>
  77. <style lang="scss">
  78. .box {
  79. margin-top: 20px;
  80. }
  81. .inputCom {
  82. width: 42vw;
  83. display: flex;
  84. justify-content: space-between;
  85. align-items: center;
  86. font-size: 14px;
  87. margin: 20rpx 5rpx;
  88. .uni-input {
  89. padding: 2rpx 0;
  90. margin: 0 4rpx;
  91. border: 1px solid #ccc;
  92. border-radius: 5px;
  93. }
  94. }
  95. .M40 {
  96. margin-top: 40px;
  97. }
  98. .flex {
  99. padding: 0 20px;
  100. display: flex;
  101. justify-content: space-between
  102. }
  103. .comButton {
  104. margin-right: 20rpx;
  105. width: 100rpx;
  106. }
  107. .DividingLine {
  108. border-top: 1px solid #cccccc;
  109. width: 100%;
  110. }
  111. .kuan-ip-input {
  112. width: 120rpx;
  113. }
  114. </style>