This commit is contained in:
oneao committed 2026-03-20 17:26:05 +08:00
1 parent 87d63b6542
commit aa813c9649
4 files changed
+11 -39

No files matched your search

@@ -14,6 +14,8 @@ const form = ref({
boxImageUrl: '',
})
const otherImages = ref([])
function handleChooseBox() {
uni.chooseImage({
count: 1,
@@ -23,6 +25,11 @@ function handleChooseBox() {
boxImage.value = tempFile.path
toast.loading('OCR识别中,请稍等 . . .', {
overlay: true,
transparent: false,
})
imageCompress(tempFile.path).then((compressRes) => {
uploadFileToAliyun(compressRes.path, tempFile.name, 'image').then((res) => {
if (res.url) {
@@ -30,11 +37,6 @@ function handleChooseBox() {
ocrFinish.value = false
toast.loading('OCR识别中,请稍等 . . .', {
overlay: true,
transparent: false,
})
recognizeOcrBoxApi({
fileUrl: form.value.boxImageUrl,
}).then((ocrRes) => {
@@ -171,7 +173,10 @@ function handleDeleteBoxImage() {
</sar-tag>
</view>
<view class="step-content">
<sar-upload />
<sar-upload
v-model="otherImages"
multiple
/>
</view>
</view>
</view>