删除console.log

This commit is contained in:
shengliang 2019-12-18 10:30:03 +08:00
parent 0ff96e9931
commit 0cb480ec06

View File

@ -1,5 +1,4 @@
/* global Component wx */ /* global Component wx */
Component({ Component({
properties: { properties: {
painting: { painting: {
@ -38,7 +37,7 @@ Component({
ctx: null, ctx: null,
cache: {}, cache: {},
ready() { ready() {
console.log('ready'); // console.log('ready');
wx.removeStorageSync('canvasdrawer_pic_cache') wx.removeStorageSync('canvasdrawer_pic_cache')
this.cache = wx.getStorageSync('canvasdrawer_pic_cache') || {} this.cache = wx.getStorageSync('canvasdrawer_pic_cache') || {}
this.ctx = wx.createCanvasContext('canvasdrawer', this) this.ctx = wx.createCanvasContext('canvasdrawer', this)
@ -92,14 +91,14 @@ Component({
}) })
}, },
startPainting() { startPainting() {
console.log('startPainting'); // console.log('startPainting');
const { const {
tempFileList, tempFileList,
painting: { painting: {
views views
} }
} = this.data } = this.data
console.log(tempFileList) // console.log(tempFileList)
for (let i = 0, imageIndex = 0; i < views.length; i++) { for (let i = 0, imageIndex = 0; i < views.length; i++) {
// console.log(views[i]); // console.log(views[i]);
// console.log(views[i].type); // console.log(views[i].type);
@ -126,9 +125,9 @@ Component({
this.drawRect(views[i]) this.drawRect(views[i])
} }
} }
console.log('????????为什么'); // console.log('????????为什么');
this.ctx.draw(false, () => { this.ctx.draw(false, () => {
console.log(this.cache); // console.log(this.cache);
wx.setStorageSync('canvasdrawer_pic_cache', this.cache) wx.setStorageSync('canvasdrawer_pic_cache', this.cache)
const system = wx.getSystemInfoSync().system const system = wx.getSystemInfoSync().system
if (/ios/i.test(system)) { if (/ios/i.test(system)) {
@ -142,7 +141,7 @@ Component({
}) })
}, },
drawImage(params) { drawImage(params) {
console.log('drawImage'); // console.log('drawImage');
this.ctx.save() this.ctx.save()
const { const {
url, url,
@ -170,7 +169,7 @@ Component({
this.ctx.restore() this.ctx.restore()
}, },
drawText(params) { drawText(params) {
console.log('drawText'); // console.log('drawText');
this.ctx.save() this.ctx.save()
// console.log('drawText'); // console.log('drawText');
const { const {