Commit 9ecddf0a by 张立顺

去除调试

1 parent f6d5dabb
...@@ -28,6 +28,7 @@ Page({ ...@@ -28,6 +28,7 @@ Page({
}) })
}, },
onLoad(options) { onLoad(options) {
let { windowWidth, windowHeight } = wx.getSystemInfoSync()
if (options.writeOffCode) { if (options.writeOffCode) {
this.writeOffCode = options.writeOffCode this.writeOffCode = options.writeOffCode
} }
...@@ -36,7 +37,7 @@ Page({ ...@@ -36,7 +37,7 @@ Page({
this.canvasCtx = wx.createCanvasContext('signature', that) this.canvasCtx = wx.createCanvasContext('signature', that)
// 设置线的样式 // 设置线的样式
this.canvasCtx.setFillStyle('white') this.canvasCtx.setFillStyle('white')
this.canvasCtx.fillRect(0, 0, 600, 600) this.canvasCtx.fillRect(0, 0, windowWidth, windowHeight)
this.canvasCtx.setLineCap('round') this.canvasCtx.setLineCap('round')
this.canvasCtx.setLineJoin('round') this.canvasCtx.setLineJoin('round')
// 初始化颜色 // 初始化颜色
...@@ -145,6 +146,17 @@ Page({ ...@@ -145,6 +146,17 @@ Page({
canvasId: 'signature', canvasId: 'signature',
fileType: 'jpg', fileType: 'jpg',
success(res) { success(res) {
// //将图片保存到本地相册
// wx.saveImageToPhotosAlbum({
// filePath: res.tempFilePath,
// success(res) {
// // wx.$util.showToast('已将图片保存到本地相册', res)
// },
// fail(err) {
// wx.$util.showToast('失败', err)
// console.log(err)
// }
// })
if (res.tempFilePath) { if (res.tempFilePath) {
that.toUploadImage(res.tempFilePath) that.toUploadImage(res.tempFilePath)
} }
......
...@@ -151,6 +151,13 @@ ...@@ -151,6 +151,13 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "全屏签名",
"pathName": "packageEquity/pages/carQuotation/fullSignture/fullSignture",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!