This commit is contained in:
花有清香月有阴
2022-02-28 09:13:37 +08:00
parent 4734c76dff
commit d8b13da38a

View File

@@ -121,9 +121,9 @@
</div>
</div>
<div class="service-btn" @click="next">{{ currIndex === 3 ? '签名并提交' : '下一步' }}</div>
<div class="service-btn" @click="next">{{ currIndex === 3 ? '提交' : '下一步' }}</div>
<u-popup v-model="isShow" mode="bottom" :mask-custom-style="{ background: 'rgba(0, 0, 0, 0.2)' }" @close="clear">
<!-- <u-popup v-model="isShow" mode="bottom" :mask-custom-style="{ background: 'rgba(0, 0, 0, 0.2)' }" @close="clear">
<div class="signature">
<div class="signature-header">
<div hover-class="text-hover" :hover-stay-time="100" @click=";(isShow = false), clear()">取消</div>
@@ -139,7 +139,7 @@
<div class="signature-btn" hover-class="text-hover" :hover-stay-time="100" @click="submitSignature">提交</div>
</div>
</div>
</u-popup>
</u-popup> -->
</div>
</template>
@@ -152,14 +152,14 @@ export default {
return {
pageShow: false,
currIndex: 2,
isShow: false,
// isShow: false,
id: '',
list: [],
handwriting: '',
isHasSignature: false,
tableForm: [],
info: {},
isTouch: false,
// isTouch: false,
fileManage: null,
}
},
@@ -184,28 +184,28 @@ export default {
onReady() {},
methods: {
clear() {
this.isTouch = false
this.handwriting.retDraw()
},
// clear() {
// this.isTouch = false
// this.handwriting.retDraw()
// },
uploadScaleStart(event) {
this.handwriting.uploadScaleStart(event)
},
uploadScaleMove(event) {
this.isTouch = true
this.handwriting.uploadScaleMove(event)
},
// uploadScaleMove(event) {
// this.isTouch = true
// this.handwriting.uploadScaleMove(event)
// },
uploadScaleEnd(event) {
this.handwriting.uploadScaleEnd(event)
},
submitSignature() {
if (!this.isTouch) {
return this.$toast('签名不能为空')
}
// if (!this.isTouch) {
// return this.$toast('签名不能为空')
// }
this.handwriting
.saveCanvas()
@@ -224,8 +224,8 @@ export default {
.then((res) => {
if (res.code === 0) {
this.signatureId = res.data
this.isShow = false
this.$toast('签名成功')
// this.isShow = false
// this.$toast('签名成功')
this.$nextTick(() => {
this.submitForm()
@@ -463,9 +463,9 @@ export default {
canvasName: 'handWriting',
})
this.$nextTick(() => {
this.isShow = true
})
// this.$nextTick(() => {
// this.isShow = true
// })
return false
}