scanCode.wxml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <view class="mine">
  2. <view class="content">
  3. <view class="camera-content">
  4. <camera class='scan-camera' mode="scanCode" binderror="cameraError" bindscancode='scancode' frame-size='large'>
  5.       <cover-view class='scan-animation' animation="{{animation}}"></cover-view>
  6. </camera>
  7. <view class='cover-corner cover-left-top' src='/images/left-top.png'></view>
  8. <view class='cover-corner cover-right-top' src='/images/right-top.png'></view>
  9. <view class='cover-corner cover-left-bottom' src='/images/left-bottom.png'></view>
  10. <view class='cover-corner cover-right-bottom' src='/images/right-bottom.png'></view>
  11. </view>
  12. <view class="cover-tips">
  13. 请扫描相应的条形码
  14. </view>
  15. <view class="total">入库数:{{type=='barcode'?codeList.length+'台':qrCodeList.length+'个'}}</view>
  16. <view class="code-list">
  17. <view class="list-info">
  18. <view class="phone-list">
  19. <view class="serial">序号</view>
  20. <text> 机型信息</text>
  21. <text>设备码</text>
  22. </view>
  23. <view class="delete-button"></view>
  24. </view>
  25. <!-- 手机 -->
  26. <view wx:if="{{type=='barcode'}}">
  27. <view class="list-info" wx:for="{{codeList}}">
  28. <view class="phone-list">
  29. <view class="serial">{{index+1}}</view>
  30. <text>{{item.title}}</text>
  31. <text>{{item.imei}}</text>
  32. </view>
  33. <view class="delete-button" bindtap="onDelete" data-item="{{item}}" data-index="{{index}}">
  34. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxrep/delete.png"></image>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- 耳机 -->
  39. <view wx:else="">
  40. <view class="list-info" wx:for="{{qrCodeList}}">
  41. <view class="phone-list">
  42. <view class="serial">{{index+1}}</view>
  43. <text>耳机</text>
  44. <text>{{item}}</text>
  45. </view>
  46. <view class="delete-button" bindtap="onDelete" data-item="{{item}}" data-index="{{index}}">
  47. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxrep/delete.png"></image>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="bottom-btn">
  53. <!-- <view class="btn" bindtap="onOpenShow">填写条码入库</view>
  54. <view class="btn" bindtap="onCodeInput">编辑更多信息</view> -->
  55. <view class="btn" bindtap="onCodeInput">清空</view>
  56. <view class="btn" bindtap="warehousing">入库</view>
  57. </view>
  58. </view>
  59. <van-popup class="code-popup" show="{{ popupShow }}" round bind:close="onClose">
  60. <view class="vr-code">
  61. <view class="code-popup-title">箱号数据</view>
  62. <van-cell-group>
  63. <van-field model:value="{{ userName }}" type="textarea" placeholder="请输入客户名" autosize />
  64. <view>
  65. <van-field model:value="{{ remarks }}" type="textarea" border="{{ false }}" placeholder="备注" autosize />
  66. </view>
  67. </van-cell-group>
  68. <view class="popup-botton">
  69. <view class="btn close-btn" bindtap="onCloseShow">取消</view>
  70. <view class="btn add-btn" bindtap="onAddCode">添加</view>
  71. </view>
  72. </view>
  73. </van-popup>
  74. <van-dialog use-slot title="您将删除该型号" show="{{ againDelete }}" show-cancel-button bind:close="onClose" bind:confirm="onDeleteCode">
  75. </van-dialog>
  76. <van-dialog use-slot title="您将清空所有记录" show="{{ deleteOverData }}" show-cancel-button bind:close="onClose" bind:confirm="onDeleteOverData">
  77. </van-dialog>
  78. </view>