Commit 01a8718b by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents baed7146 6411869d
......@@ -71,12 +71,12 @@
url: require("./img/back.png"),
activeUrl: require("./img/back.png")
},
{
title: "橡皮",
key: "eraser",
url: require("./img/eraser.png"),
activeUrl: require("./img/eraser-active.png")
},
// {
// title: "橡皮",
// key: "eraser",
// url: require("./img/eraser.png"),
// activeUrl: require("./img/eraser-active.png")
// },
{
title: "颜色",
key: "color",
......@@ -90,36 +90,36 @@
activeUrl: require("./img/pen-active.png"),
active: true
},
{
title: "直线",
key: "line",
url: require("./img/line.png"),
activeUrl: require("./img/line-active.png")
},
{
title: "圆形",
key: "circle",
url: require("./img/circle.png"),
activeUrl: require("./img/circle-active.png")
},
{
title: "方形",
key: "rect",
url: require("./img/rect.png"),
activeUrl: require("./img/rect-active.png")
},
{
title: "实圆",
key: "circle-fill",
url: require("./img/circle-fill.png"),
activeUrl: require("./img/circle-fill-active.png")
},
{
title: "实方",
key: "rect-fill",
url: require("./img/rect-fill.png"),
activeUrl: require("./img/rect-fill-active.png")
},
// {
// title: "直线",
// key: "line",
// url: require("./img/line.png"),
// activeUrl: require("./img/line-active.png")
// },
// {
// title: "圆形",
// key: "circle",
// url: require("./img/circle.png"),
// activeUrl: require("./img/circle-active.png")
// },
// {
// title: "方形",
// key: "rect",
// url: require("./img/rect.png"),
// activeUrl: require("./img/rect-active.png")
// },
// {
// title: "实圆",
// key: "circle-fill",
// url: require("./img/circle-fill.png"),
// activeUrl: require("./img/circle-fill-active.png")
// },
// {
// title: "实方",
// key: "rect-fill",
// url: require("./img/rect-fill.png"),
// activeUrl: require("./img/rect-fill-active.png")
// },
{
title: "下载",
......@@ -127,12 +127,12 @@
url: require("./img/download.png"),
activeUrl: require("./img/download.png")
},
{
title: "分享",
key: "share",
url: require("./img/share.png"),
activeUrl: require("./img/share.png")
}
// {
// title: "分享",
// key: "share",
// url: require("./img/share.png"),
// activeUrl: require("./img/share.png")
// }
],
toolsShow: true,
isLandScape: false, //是否横屏
......@@ -216,6 +216,7 @@
penBegin(x, y) {
this.begin = true;
this.drawContext.beginPath()
this.drawContext.setStrokeStyle(this.currentColor);
this.startX = x;
this.startY = y;
this.drawContext.moveTo(this.startX, this.startY)
......@@ -790,7 +791,7 @@
width: 1.8rem;
height: 1.8rem;
box-sizing: border-box;
position: fixed;
position: absolute;
right: 0.1rem;
top: 0.5rem;
z-index: 10;
......@@ -889,12 +890,13 @@
/* 横屏 */
@media screen and (orientation: landscape) {
.tools-box {
position: fixed;
position: absolute;
height: 80vh;
z-index: 10;
overflow: auto;
right: 0;
top: 50%;
transform: translateY(-50%);
.tools {
width: 1.8rem;
flex-direction: column;
......
......@@ -71,17 +71,6 @@
</template>
<view class="scrollSpase"></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>
</template>
......@@ -205,18 +194,6 @@ export default {
},
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')
},
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!