label.wxml 1.2 KB

123456789101112131415
  1. <view class="body">
  2. <button class='button' hover-class="hover" bindtap='labelTest' loading='{{isLabelSend}}' disabled='{{isLabelSend}}'>标签案例</button>
  3. <button class='button' hover-class="hover" bindtap='queryStatus' loading='{{isQuery}}' disabled='{{isQuery}}'>查询状态</button>
  4. <button class='button' hover-class="hover" bindtap='printPhoto' >打印图片</button>
  5. <canvas canvas-id="canvasOut" class="canvas" style='border:0px solid; width:{{canvasWidth}}px; height:{{canvasHeight}}px'></canvas>
  6. <button class='button' hover-class="hover" bindtap='printJPGPhoto' >打印彩图</button>
  7. <canvas canvas-id="canvasJPG" class="canvas" style='border:0px solid; width:{{jpgWidth}}px; height:{{jpgHeight}}px'></canvas>
  8. <picker style='margin:20px' mode='selector' range='{{buffSize}}' value='{{buffIndex}}' bindchange='buffBindChange'>当前每次发送字节数为(点击可更换):{{buffSize[buffIndex]}}
  9. </picker>
  10. <picker style='margin:20px' mode='selector' range='{{printNum}}' value='{{printNumIndex}}' bindchange='printNumBindChange'>当前打印份数(点击可更换):{{printNum[printNumIndex]}}
  11. </picker>
  12. </view>