|
@@ -13,7 +13,8 @@
|
|
|
:max-size="maxSize * 1024*1024">
|
|
:max-size="maxSize * 1024*1024">
|
|
|
<template #preview-cover="{ file }">
|
|
<template #preview-cover="{ file }">
|
|
|
<div v-if="!showUpload" class="image-zoom-icon">
|
|
<div v-if="!showUpload" class="image-zoom-icon">
|
|
|
- <van-icon name="search" size="30px" color="#fff"/>
|
|
|
|
|
|
|
+ <img src="../../assets/svg/glass.svg" width="30px" height="30px" color="#fff"/>
|
|
|
|
|
+ <!-- <van-icon name="search" size="30px" color="#fff"/> -->
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</van-uploader>
|
|
</van-uploader>
|
|
@@ -266,19 +267,31 @@ export default {
|
|
|
// height: 100% !important;
|
|
// height: 100% !important;
|
|
|
width: 330px !important;
|
|
width: 330px !important;
|
|
|
height: 186px !important;
|
|
height: 186px !important;
|
|
|
- max-height: 26vw;
|
|
|
|
|
|
|
+ max-height: 26vw;
|
|
|
|
|
+ object-fit: cover;
|
|
|
|
|
+ .van-image__img{
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ object-fit: cover;
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.IdCardImg{
|
|
.IdCardImg{
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
object-fit: cover;
|
|
object-fit: cover;
|
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
|
- max-height: 26vw;
|
|
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ // max-height: 26vw;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
</style>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
.image-zoom-icon {
|
|
.image-zoom-icon {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: 50%;
|
|
top: 50%;
|