sendCommand.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--blecontrol.wxml-->
  2. <view class="body">
  3. <view>
  4. <textarea class="result">{{returnResult}}</textarea>
  5. </view>
  6. <textarea class="input" bindinput="inputEvent"></textarea>
  7. <button type="primary" bindtap="sendData">发送(票据可使用)</button>
  8. <view style='margin-top:4%;display: flex;flex-direction: row;'>
  9. <button type='primary' bindtap='receiptTest' loading='{{isReceiptSend}}' disabled='{{isReceiptSend}}'>票据测试</button>
  10. <button type='primary' bindtap='labelTest' loading='{{isLabelSend}}' disabled='{{isLabelSend}}'>标签测试</button>
  11. </view>
  12. <view style='margin-top:4%;display: flex;flex-direction: row;'>
  13. <button type="primary" bindtap="openAndDraw">打开本地图片</button>
  14. <button type="primary" bindtap="process">处理图片</button>
  15. </view>
  16. <!-- <button style='margin-top:4%' type='primary' bindtap='queryStatus'>查询打印机状态</button> -->
  17. <!-- <view style='margin-top:4%;display: flex;flex-direction: row;'>
  18. <canvas hidden='false' canvas-id='edit_area_canvas' style='width:{{canvasWidth}}px;height:{{canvasHeight}}px'></canvas>
  19. </view> -->
  20. <view style='margin-top:4%;display: flex;flex-direction: column;'>
  21. <canvas canvas-id="canvasIn" class="canvas" style='border:1px solid; width:{{canvasWidth}}px; height:{{canvasHeight}}px'></canvas>
  22. <canvas canvas-id="canvasOut" class="canvas" style='border:1px solid; width:{{canvasWidth}}px; height:{{canvasHeight}}px'></canvas>
  23. </view>
  24. <picker style='margin:20px' mode='selector' range='{{buffSize}}' value='{{buffIndex}}' bindchange='buffBindChange'>当前每次发送字节数为(点击可更换):{{buffSize[buffIndex]}}
  25. </picker>
  26. <picker style='margin:20px' mode='selector' range='{{printNum}}' value='{{printNumIndex}}' bindchange='printNumBindChange'>当前打印份数(点击可更换):{{printNum[printNumIndex]}}
  27. </picker>
  28. </view>