device.wxml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!-- <view class="container">
  2. <text style="font-size:medium;word-break:break-all">设备名称:{{name}}</text>
  3. <text style="font-size:x-small;color:gray;word-break:break-all">设备ID:{{connectedDeviceId}}</text>
  4. <text style="font-size:x-small;color:gray">状态:{{connected?"已连接":"已断开"}}</text> -->
  5. <!-- <view class="layout_horizontal"> -->
  6. <!-- <button type="primary" class="button" bindtap="GetManufactureDate">查看生产日期</button>
  7. <button type="primary" class="button" bindtap="GetManufacture">查看制造厂商</button> -->
  8. <!-- </view> -->
  9. <!-- <view class="layout_horizontal">
  10. <button type="primary" class="button" bindtap="SendOpen">打开电池</button>
  11. <button type="primary" class="button" bindtap="SendClose">关闭电池</button>
  12. </view> -->
  13. <!-- <text style="font-size:medium;margin-top:10px">发送内容:</text>
  14. <input class="input" value="{{inputText}}" bindinput="bindInput" maxlength="50"/>
  15. <text style="font-size:medium;margin-top:10px">接收内容:</text>
  16. <input class="input" disabled value="{{receiveText}}" maxlength="50"/>
  17. <!-- <button type="primary" class="button" bindtap="SendButton">发送</button> -->
  18. <!-- </view> -->
  19. <view catchtap='hiddenShadow'>
  20. <view class='head'>
  21. <view class='selectBox'>
  22. <!-- 第一栏选择框标题位置 -->
  23. <view class='select' catchtap='selectCom'>
  24. <text class='select_text' style='color:{{proShow?"#008bff":"#4A4A4A"}}'>{{proData[proindex]}}</text>
  25. </view>
  26. <!-- 第一栏选择框底部可选择部分 -->
  27. <view class='option_box' style='height:{{proShow?(proData.length>3?210:proData.length*70):0}}rpx'>
  28. <text class='option' style='color:{{index==proindex?"#008bff":"#4A4A4A"}}' wx:for='{{proData}}' wx:key='*this' data-proindex='{{index}}' catchtap='optionUnit'>{{item}}</text>
  29. </view>
  30. <!-- 第二栏选择框标题位置 -->
  31. <view class='select' catchtap='selectFeature'>
  32. <text class='select_text' style='color:{{claShow?"#008bff":"#4A4A4A"}}'>{{claData[claindex]}}</text>
  33. </view>
  34. <!-- 第二栏选择框底部可选择部分 -->
  35. <view class='option_box' style='height:{{claShow?(claData.length>3?210:claData.length*70):0}}rpx'>
  36. <text class='option' style='color:{{index==claindex?"#008bff":"#4A4A4A"}}' wx:for='{{claData}}' wx:key='*this' data-claindex='{{index}}' catchtap='optionFeature'>{{item}}</text>
  37. </view>
  38. </view>
  39. <view class='option_box'
  40. style='height:{{claShow?(claData.length>3?210:claData.length*70):0}}rpx'>
  41. <text class='option' style='color:{{index==claindex?"#008bff":"#4A4A4A"}}' wx:for='{{claData}}' wx:key='*this' data-claindex='{{index}}' catchtap='optionFeature'>{{item}}</text>
  42. </view>
  43. </view>
  44. <!-- 下拉框遮罩层 -->
  45. <view class='shadow' style='display:{{display}}' catchtouchmove='true'></view>
  46. <view class='button_box'>
  47. <button type="primary" class="button" bindtap="GetSelectListInfo">{{"获取以上信息"}}</button>
  48. </view>
  49. <view class='log_area'>
  50. <textarea placeholder='日志显示区域' bindinput="getWords" disabled value="{{log_text_area}}" maxlength='-1'></textarea>
  51. </view>
  52. <!-- <text style="font-size:medium;margin-top:10px">接收内容:</text> -->
  53. <!-- <text> {{log_text}}</text> -->
  54. <!-- <textarea placeholder='日志显示区域' bindinput="getWords" disabled value="{{log_text_area}}" maxlength='-1'></textarea> -->
  55. <!-- <input class="input" disabled value="{{receiveText}}" maxlength="20"/> -->
  56. </view>