修改上传图片展示问题

feature/scanCodeOrder
游梦婷 10 months ago
parent 21f8def0bb
commit fa13deaf06
  1. 12
      subpackages/applyPeriod/applyPeriod.vue

@ -90,13 +90,11 @@
<view class="imageUploadContainer flex-1"> <view class="imageUploadContainer flex-1">
<view class="imageUploadList"> <view class="imageUploadList">
<template v-if="periodData.agreementPics!=''"> <view class="imageItem" v-for="(item,index) in imgValue" :key="index">
<view class="imageItem" v-for="(item,index) in imgValue" :key="index"> <image :src="imgUrl+item" mode="aspectFill" @click="previewImage(index,imgValue)"
<image :src="imgUrl+item" mode="aspectFill" @click="previewImage(index,imgValue)" :data-index="index"></image>
:data-index="index"></image> <view v-if="isShowMethodToUpdate" class="imageDel" @click="deleteImage(item)">x</view>
<view v-if="isShowMethodToUpdate" class="imageDel" @click="deleteImage(item)">x</view> </view>
</view>
</template>
<view v-if="isShowMethodToUpdate" class="imageUpload" @click="upload">+</view> <view v-if="isShowMethodToUpdate" class="imageUpload" @click="upload">+</view>
</view> </view>
</view> </view>

Loading…
Cancel
Save