Commit 790b56a1 by 李伟康

commit

1 parent d3e1c2c7
......@@ -113,7 +113,7 @@ export default {
mode: "pen", //操作模式
currentColor: "red", //当前画笔颜色
bgColor: "#fff", //画板背景颜色
lineWidth: 20, //画笔粗细 px
lineWidth: 5, //画笔粗细 px
lastRect: {}, //运动轨迹最后一个方形
lastCircle: {}, //运动轨迹最后一个圆形
//工具箱
......@@ -803,7 +803,6 @@ export default {
} else {
this.isLandScape = false
}
// console.log(this.isLandScape);
let imageInfoObj = (await uni.getImageInfo({
src: this.drawImage
......@@ -819,9 +818,8 @@ export default {
this.drawContext.setLineCap('round') // 让线条圆润
this.drawContext.strokeStyle = this.currentColor; //设置画笔颜色
this.drawContext.setLineWidth(this.lineWidth); //设置画笔粗细
//设置背景
this.$nextTick(() => {
this.penWidthChange()
this.drawContext.setLineWidth(this.lineWidth)
this.fillBackground();
})
}
......
<template>
<view class="layout">
<view class="bg">
<glsx-image src="media/bg-2.png" />
<glsx-image src="media/bg-5.png" />
</view>
<view class="content">
<view class="canvas-box">
......
<template>
<view class="layout">
<view class="bg">
<glsx-image src="media/bg-2.png" />
<glsx-image src="media/bg-5.png" />
</view>
<view class="content">
<view class="canvas-box">
......
......@@ -76,12 +76,12 @@ export default {
icon: 'tool/4.png'
},
{
id: 5,
id: 6,
label: '历史成交',
icon: 'tool/5.png'
},
{
id: 6,
id: 5,
label: '质保升级',
icon: 'tool/6.png'
}
......@@ -103,8 +103,7 @@ export default {
.tool-box {
position: fixed;
right: 40rpx;
top: 50%;
transform: translateY(-50%);
top: 5%;
z-index: 998;
width: 128rpx;
.btn {
......@@ -130,6 +129,7 @@ export default {
.hideIcon {
height: 0;
overflow: hidden;
opacity: 0;
.icon {
height: 0;
margin-bottom: 0;
......
......@@ -42,6 +42,9 @@
<media_6 :views="mediaList" />
</view>
<pay-pop ref="pay"></pay-pop>
<view class="pen-box">
</view>
</view>
</template>
<script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!