使用HBuilder插件市场中的ksp-cropper插件,结合图片上传实现
直接当做组件引入使用(这里ksp-cropper组件最好放在外面,不要包在其他组件里面,不然裁剪组件大小可能会受影响)
<ksp-cropper class="crop" mode="fixed" :width="250" :height="290" :url="currentImageUrl"
@cancel="localDataShowCropper=false" @ok="handleCropOk" v-if="localDataShowCropper"></ksp-cropper>
<uni-list class="container1">
<uni-list-item v-if="imgPath" clickable showExtraIcon="true" :extraIcon="{type: 'image-filled'}"
title="证件照">
<template v-slot:footer>
<view class="slot-box">
<image :src="imgUrl+imgPath" mode="heightFix" style="height: 150rpx;width: 100rpx;" @


3万+

被折叠的 条评论
为什么被折叠?



