Commit 14f42d4f authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 96cf36c0
......@@ -15,7 +15,7 @@
</view>
<l-clipper v-if="showlip" :image-url="tempUri" :isShowPhotoBtn="false" type="2d" :minWidth="400" :maxHeight="400"
@success="tempUri = $event.url; showlip = false;" @cancel="showlip = false" />
@success="clipperSuc" @cancel="showlip = false" />
</view>
</template>
......@@ -100,7 +100,7 @@
loadData() {
setTimeout(() => {
this.compress();
}, 500);
}, 200);
},
crop() {
this.showlip = true
......@@ -134,6 +134,11 @@
this.ocr(this.ocrUrl)
}
},
clipperSuc(event){
this.tempUri = event.url;
this.showlip = false;
this.compress();
},
ocr(imgUrl) {
if (this.scantype == ScanTypeBean.scan_pdf) {
this.generatePDF([this.tempPath])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment