|
@@ -139,7 +139,7 @@ Page({
|
|
|
if (wx.getStorageSync('madeCupImgData' + i)) {
|
|
|
imgTouch = wx.getStorageSync('madeCupImgData' + i);
|
|
|
dataPositionObj = util.changeCup(i.toString()).dataPositionObj;
|
|
|
- console.log(dataPositionObj, "dataPositionObj")
|
|
|
+ console.log(dataPositionObj, imgTouch,"dataPositionObj")
|
|
|
wx.getSystemInfo({
|
|
|
success: function (res) {
|
|
|
let rpx = res.windowWidth / 750;
|
|
@@ -165,7 +165,7 @@ Page({
|
|
|
ctx.drawImage(res.tempFilePath, -imgTouch.width * rpx / 2, -imgTouch.height * rpx / 2, imgTouch.width * rpx, imgTouch.height * rpx)
|
|
|
ctx.draw(false, function () {
|
|
|
wx.canvasToTempFilePath({
|
|
|
- canvasId: 'comb-img' + i,
|
|
|
+ canvasId: 'comb-img' + id,
|
|
|
success: function (res) {
|
|
|
console.log(res)
|
|
|
let imgArray = that.data.imgSrcArray;
|
|
@@ -178,6 +178,9 @@ Page({
|
|
|
}, that)
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ error(err){
|
|
|
+ console.log('err下载失败',err)
|
|
|
}
|
|
|
})
|
|
|
|