Browse Source

完善信息

devlop
mo-bai 4 years ago
parent
commit
778e52340e
1 changed files with 6 additions and 2 deletions
  1. 8
      pages/complete-info/EnterpriseForm.vue

8
pages/complete-info/EnterpriseForm.vue

@ -90,7 +90,7 @@
<image class="image__close-icon" @click="clearImage(index)" src="/static/imgs/general/close-icon.png"></image> <image class="image__close-icon" @click="clearImage(index)" src="/static/imgs/general/close-icon.png"></image>
<image :src="url" class="upload_image" @click="preview(url)"></image> <image :src="url" class="upload_image" @click="preview(url)"></image>
</view> </view>
<view class="flex-col items-center section_4" @click="selectImg('factory')">
<view v-show="imgList.length < 5" class="flex-col items-center section_4" @click="selectImg('factory')">
<image src="/static/imgs/general/camera-icon.png" class="image_6" /> <image src="/static/imgs/general/camera-icon.png" class="image_6" />
<text class="text_20">点击上传</text> <text class="text_20">点击上传</text>
</view> </view>
@ -294,7 +294,11 @@ export default {
return this.form return this.form
}, },
selectImg(type) { selectImg(type) {
uploadImage()
let count = 1
if (type == 'factory') {
count = 5 - this.imgList.length
}
uploadImage(undefined, count)
.then((urls) => { .then((urls) => {
if (urls) { if (urls) {
// OCR // OCR

Loading…
Cancel
Save