Commit 9ecddf0a by 张立顺

去除调试

1 parent f6d5dabb
......@@ -28,6 +28,7 @@ Page({
})
},
onLoad(options) {
let { windowWidth, windowHeight } = wx.getSystemInfoSync()
if (options.writeOffCode) {
this.writeOffCode = options.writeOffCode
}
......@@ -36,7 +37,7 @@ Page({
this.canvasCtx = wx.createCanvasContext('signature', that)
// 设置线的样式
this.canvasCtx.setFillStyle('white')
this.canvasCtx.fillRect(0, 0, 600, 600)
this.canvasCtx.fillRect(0, 0, windowWidth, windowHeight)
this.canvasCtx.setLineCap('round')
this.canvasCtx.setLineJoin('round')
// 初始化颜色
......@@ -145,6 +146,17 @@ Page({
canvasId: 'signature',
fileType: 'jpg',
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) {
that.toUploadImage(res.tempFilePath)
}
......
......@@ -151,6 +151,13 @@
"query": "",
"launchMode": "default",
"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!