Browse Source

裁剪框修改

lzm_web
Linzm 8 months ago
parent
commit
853019eb7b
  1. 19
      src/views/badge/index.vue

19
src/views/badge/index.vue

@ -9,8 +9,14 @@ import { onMounted, ref } from 'vue';
const show = ref(false) const show = ref(false)
const imgShow = ref(false) const imgShow = ref(false)
const router = useRouter() const router = useRouter()
const option = ref({}) const option = ref({
const options = ref({}) autoCropWidth: 1000,
autoCropHeight: 1000,
})
const options = ref({
autoCropWidth: 1000,
autoCropHeight: 1000,
})
const imgurl = ref('') const imgurl = ref('')
const imgBgUrl = ref('') const imgBgUrl = ref('')
const isBgShow = ref(true) const isBgShow = ref(true)
@ -396,7 +402,7 @@ onMounted(() => {
</div> </div>
<img class="photo-upload-img" v-if="picture" :src="picture" alt="" srcset=""> <img class="photo-upload-img" v-if="picture" :src="picture" alt="" srcset="">
<div class="photo-upload-box-1"> <div class="photo-upload-box-1">
<h5-cropper :option="option" @getbase64Data="getbase64Data" @getFile="getFile" @getblob='getBlob'></h5-cropper> <h5-cropper :option="option" @getbase64Data="getbase64Data" @getFile="getFile" @getblob='getBlob' ></h5-cropper>
</div> </div>
</div> </div>
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;">温馨提示请上传只有1-2人的照片</div> <div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;">温馨提示请上传只有1-2人的照片</div>
@ -1029,4 +1035,11 @@ onMounted(() => {
width: 18px; width: 18px;
height: 12px; height: 12px;
} }
.btndiv {
position: fixed;
bottom: 10vh;
width: 80%;
left: 50%;
transform: translateX(-50%);
}
</style> </style>

Loading…
Cancel
Save