Commit 46100d3a by 李伟康

commit 提交

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