在子组件components里创建upload.vue文件
<template>
<view class="uploadImage">
<view class="item-box">
<view @tap="previewImg(item)" v-for="(item, index) in imgList" :key="item" class="item">
<image mode="aspectFill" :src="item"></image>
<view class="img-del" @tap.stop="delImg(index)">
<uni-icons type="clear" size="20"></uni-icons>
</view>
</view>
<view @tap="choseImg" class="item"><image src="https://autoservice-prod.oss-cn-beijing.aliyuncs.com/img/common/upload.png"></image></view>
</view>
</view>
</template>
<script>
/