Commit 790b56a1 by 李伟康

commit

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