提交一部分民政评分新版

This commit is contained in:
aixianling
2022-12-08 13:38:03 +08:00
parent b6dc935b17
commit 0c2edd2b9f
4 changed files with 102 additions and 59 deletions

View File

@@ -1,7 +1,8 @@
<template>
<section class="AiDrawer">
<AiPagePicker type="custom" :ops="ops">
<div class="placeholder">{{ placeholder }}</div>
<AiPagePicker type="custom" :ops="ops" @select="getSeal">
<img class="sealImage" v-if="seal" :src="seal"/>
<div v-else class="placeholder">{{ placeholder }}</div>
</AiPagePicker>
</section>
</template>
@@ -17,7 +18,7 @@ export default {
event: "input"
},
props: {
seal: String,
seal: {default: null},
placeholder: {type: String, default: "请在此处清晰书写你的签名"},
},
data() {
@@ -26,6 +27,11 @@ export default {
url: "/components/pages/sealDrawer"
}
}
},
methods: {
getSeal(image) {
this.$emit("input", image)
}
}
}
</script>
@@ -42,6 +48,11 @@ export default {
& > div {
height: 100%;
}
.sealImage {
width: 100%;
height: 100%;
}
}
.placeholder {