ocr-result.wxml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <template name="ocr-result">
  2. <!-- 图片展示 start -->
  3. <view class="ocr-result-head ocr-result-head-{{theme}}">
  4. <view class="image-media" bind:tap="onImageTap">
  5. <image src="{{imageDetail.filePath}}" class="image" mode="aspectFit"></image>
  6. </view>
  7. <view class="tips-text" wx:if="{{modifiable}}">请确认识别结果,若有误可手动修改</view>
  8. </view>
  9. <!-- 图片展示 end -->
  10. <!-- 信息列表区 start -->
  11. <view class="ocr-result-form-list">
  12. <seal-list>
  13. <view wx:for="{{ocrResponse}}" wx:key="index" wx:for-index="key" wx:for-item="value">
  14. <seal-form
  15. border
  16. textAlign="left" labelWidth="4em"
  17. type="{{value.type}}"
  18. autoHeight
  19. label="{{value.title}}"
  20. value="{{value.value}}"
  21. data-key="{{key}}"
  22. bind:input="onResultChange"
  23. readonly="{{!modifiable}}"
  24. ></seal-form>
  25. </view>
  26. </seal-list>
  27. <view class="btn-media" wx:if="{{ocrResponse}}">
  28. <seal-button color="{{sealTheme}}" bind:tap="onFinished">完成</seal-button>
  29. </view>
  30. </view>
  31. <!-- 信息列表区 end -->
  32. </template>