Commit 46100d3a by 李伟康

commit 提交

1 parent 1fef4e97
No preview for this file type
......@@ -862,10 +862,7 @@ export default {
},
//清空画板
clearBoard () {
this.defaultScaleValue = 1.1
setTimeout(() => {
this.defaultScaleValue = 1
}, 100)
this.defaultScaleValue = 1
this.historyList = [];
this.drawContext?.draw()
},
......
......@@ -49,14 +49,16 @@ export default {
isDragging: false,
transformOrigin: { x: 0, y: 0 },
transformStyle: '',
transformOriginStyle: '0px 0px',
transformOriginStyle: '50% 50%',
scaleFactor: 0.01,
};
},
watch: {
watchScaleValue () {
this.setScale(this.scaleValue)
this.lastScale = this.scaleValue
this.scale = this.scaleValue
this.transformStyle = `translate(0px, 0px) scale(${this.scaleValue})`
}
},
computed: {
......
<template>
<view class="layout">
<view class="bg">
<image :src="mediaBg" />
</view>
<view
class="content"
:style="{background:background}"
......@@ -85,19 +82,11 @@ export default {
<style scoped lang='scss'>
.layout {
padding-top: 192rpx;
width: 100vw;
height: 100vh;
position: relative;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 240rpx;
image {
width: 100%;
height: 100%;
}
}
background-image: url("@/assets/images/media/media-bg.webp");
background-size: 100%;
.content {
border-radius: 40rpx 40rpx 0 0;
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
......
......@@ -50,7 +50,7 @@
@finish="open"
:id="id"
@toPay="toPay"
:showPayBtn="showPayBtn"
:showPayBtn="watchPayInfo"
/>
<view
class="pen-box"
......@@ -95,7 +95,6 @@ export default {
data () {
return {
drawStatus: false,
showPayBtn: false,
startX: null,
screenWidth: null
};
......@@ -108,7 +107,7 @@ export default {
return this.type != 'preview' && this.drawStatus
},
watchPayInfo () {
return this.$store.state.user.paymentType
return this.$store.state.user.paymentType.length
},
title () {
let { id } = this,
......@@ -123,12 +122,6 @@ export default {
if (newval) this.drawStatus = false
}
},
watchPayInfo: {
immediate: true,
handler (newval) {
this.showPayBtn = newval.length ? true : false
}
}
},
mounted () {
const systemInfo = uni.getSystemInfoSync()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!