27647
This commit is contained in:
@@ -121,9 +121,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</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">
|
||||||
<div class="signature-header">
|
<div class="signature-header">
|
||||||
<div hover-class="text-hover" :hover-stay-time="100" @click=";(isShow = false), clear()">取消</div>
|
<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 class="signature-btn" hover-class="text-hover" :hover-stay-time="100" @click="submitSignature">提交</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</u-popup>
|
</u-popup> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -152,14 +152,14 @@ export default {
|
|||||||
return {
|
return {
|
||||||
pageShow: false,
|
pageShow: false,
|
||||||
currIndex: 2,
|
currIndex: 2,
|
||||||
isShow: false,
|
// isShow: false,
|
||||||
id: '',
|
id: '',
|
||||||
list: [],
|
list: [],
|
||||||
handwriting: '',
|
handwriting: '',
|
||||||
isHasSignature: false,
|
isHasSignature: false,
|
||||||
tableForm: [],
|
tableForm: [],
|
||||||
info: {},
|
info: {},
|
||||||
isTouch: false,
|
// isTouch: false,
|
||||||
fileManage: null,
|
fileManage: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -184,28 +184,28 @@ export default {
|
|||||||
onReady() {},
|
onReady() {},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
clear() {
|
// clear() {
|
||||||
this.isTouch = false
|
// this.isTouch = false
|
||||||
this.handwriting.retDraw()
|
// this.handwriting.retDraw()
|
||||||
},
|
// },
|
||||||
|
|
||||||
uploadScaleStart(event) {
|
uploadScaleStart(event) {
|
||||||
this.handwriting.uploadScaleStart(event)
|
this.handwriting.uploadScaleStart(event)
|
||||||
},
|
},
|
||||||
|
|
||||||
uploadScaleMove(event) {
|
// uploadScaleMove(event) {
|
||||||
this.isTouch = true
|
// this.isTouch = true
|
||||||
this.handwriting.uploadScaleMove(event)
|
// this.handwriting.uploadScaleMove(event)
|
||||||
},
|
// },
|
||||||
|
|
||||||
uploadScaleEnd(event) {
|
uploadScaleEnd(event) {
|
||||||
this.handwriting.uploadScaleEnd(event)
|
this.handwriting.uploadScaleEnd(event)
|
||||||
},
|
},
|
||||||
|
|
||||||
submitSignature() {
|
submitSignature() {
|
||||||
if (!this.isTouch) {
|
// if (!this.isTouch) {
|
||||||
return this.$toast('签名不能为空')
|
// return this.$toast('签名不能为空')
|
||||||
}
|
// }
|
||||||
|
|
||||||
this.handwriting
|
this.handwriting
|
||||||
.saveCanvas()
|
.saveCanvas()
|
||||||
@@ -224,8 +224,8 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.signatureId = res.data
|
this.signatureId = res.data
|
||||||
this.isShow = false
|
// this.isShow = false
|
||||||
this.$toast('签名成功')
|
// this.$toast('签名成功')
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.submitForm()
|
this.submitForm()
|
||||||
@@ -463,9 +463,9 @@ export default {
|
|||||||
canvasName: 'handWriting',
|
canvasName: 'handWriting',
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$nextTick(() => {
|
// this.$nextTick(() => {
|
||||||
this.isShow = true
|
// this.isShow = true
|
||||||
})
|
// })
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user