Commit 6411869d by 李伟康

commit

1 parent 7a73cf7d
...@@ -71,12 +71,12 @@ ...@@ -71,12 +71,12 @@
url: require("./img/back.png"), url: require("./img/back.png"),
activeUrl: require("./img/back.png") activeUrl: require("./img/back.png")
}, },
{ // {
title: "橡皮", // title: "橡皮",
key: "eraser", // key: "eraser",
url: require("./img/eraser.png"), // url: require("./img/eraser.png"),
activeUrl: require("./img/eraser-active.png") // activeUrl: require("./img/eraser-active.png")
}, // },
{ {
title: "颜色", title: "颜色",
key: "color", key: "color",
...@@ -90,36 +90,36 @@ ...@@ -90,36 +90,36 @@
activeUrl: require("./img/pen-active.png"), activeUrl: require("./img/pen-active.png"),
active: true active: true
}, },
{ // {
title: "直线", // title: "直线",
key: "line", // key: "line",
url: require("./img/line.png"), // url: require("./img/line.png"),
activeUrl: require("./img/line-active.png") // activeUrl: require("./img/line-active.png")
}, // },
{ // {
title: "圆形", // title: "圆形",
key: "circle", // key: "circle",
url: require("./img/circle.png"), // url: require("./img/circle.png"),
activeUrl: require("./img/circle-active.png") // activeUrl: require("./img/circle-active.png")
}, // },
{ // {
title: "方形", // title: "方形",
key: "rect", // key: "rect",
url: require("./img/rect.png"), // url: require("./img/rect.png"),
activeUrl: require("./img/rect-active.png") // activeUrl: require("./img/rect-active.png")
}, // },
{ // {
title: "实圆", // title: "实圆",
key: "circle-fill", // key: "circle-fill",
url: require("./img/circle-fill.png"), // url: require("./img/circle-fill.png"),
activeUrl: require("./img/circle-fill-active.png") // activeUrl: require("./img/circle-fill-active.png")
}, // },
{ // {
title: "实方", // title: "实方",
key: "rect-fill", // key: "rect-fill",
url: require("./img/rect-fill.png"), // url: require("./img/rect-fill.png"),
activeUrl: require("./img/rect-fill-active.png") // activeUrl: require("./img/rect-fill-active.png")
}, // },
{ {
title: "下载", title: "下载",
...@@ -127,12 +127,12 @@ ...@@ -127,12 +127,12 @@
url: require("./img/download.png"), url: require("./img/download.png"),
activeUrl: require("./img/download.png") activeUrl: require("./img/download.png")
}, },
{ // {
title: "分享", // title: "分享",
key: "share", // key: "share",
url: require("./img/share.png"), // url: require("./img/share.png"),
activeUrl: require("./img/share.png") // activeUrl: require("./img/share.png")
} // }
], ],
toolsShow: true, toolsShow: true,
isLandScape: false, //是否横屏 isLandScape: false, //是否横屏
...@@ -216,6 +216,7 @@ ...@@ -216,6 +216,7 @@
penBegin(x, y) { penBegin(x, y) {
this.begin = true; this.begin = true;
this.drawContext.beginPath() this.drawContext.beginPath()
this.drawContext.setStrokeStyle(this.currentColor);
this.startX = x; this.startX = x;
this.startY = y; this.startY = y;
this.drawContext.moveTo(this.startX, this.startY) this.drawContext.moveTo(this.startX, this.startY)
...@@ -790,7 +791,7 @@ ...@@ -790,7 +791,7 @@
width: 1.8rem; width: 1.8rem;
height: 1.8rem; height: 1.8rem;
box-sizing: border-box; box-sizing: border-box;
position: fixed; position: absolute;
right: 0.1rem; right: 0.1rem;
top: 0.5rem; top: 0.5rem;
z-index: 10; z-index: 10;
...@@ -889,12 +890,13 @@ ...@@ -889,12 +890,13 @@
/* 横屏 */ /* 横屏 */
@media screen and (orientation: landscape) { @media screen and (orientation: landscape) {
.tools-box { .tools-box {
position: fixed; position: absolute;
height: 80vh; height: 80vh;
z-index: 10; z-index: 10;
overflow: auto; overflow: auto;
right: 0; right: 0;
top: 50%;
transform: translateY(-50%);
.tools { .tools {
width: 1.8rem; width: 1.8rem;
flex-direction: column; flex-direction: column;
......
...@@ -71,17 +71,6 @@ ...@@ -71,17 +71,6 @@
</template> </template>
<view class="scrollSpase"></view> <view class="scrollSpase"></view>
</scroll-view> </scroll-view>
<view class="content" style="width:100%;height:800px;">
<!-- <wnCanvas
saveImageType="3"
@saveImage="saveImage"
:drawImage="drawImage"
:isUnderBkg="true"
@dowmloadErr='dowmloadErr'
@dowmloadSuc="dowmloadSuc"
></wnCanvas> -->
</view>
</view> </view>
</template> </template>
...@@ -205,18 +194,6 @@ export default { ...@@ -205,18 +194,6 @@ export default {
}, },
midle (item) { midle (item) {
return item.isSuper == true ? 'midle_1' : item.userType == 1 ? 'midle_2' : (item.loginRole == 3 ? 'midle_3' : item.loginRole == 4 ? 'midle_4' : 'midle_5') return item.isSuper == true ? 'midle_1' : item.userType == 1 ? 'midle_2' : (item.loginRole == 3 ? 'midle_3' : item.loginRole == 4 ? 'midle_4' : 'midle_5')
},
saveImage (url) {
//画板返回的图片地址
console.log(url);
},
dowmloadErr (err) {
//下载图片失败时的回调
console.log(err);
},
dowmloadSuc (res) {
//下载图片成功时的回调
console.log(res);
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!