|
@@ -64,12 +64,15 @@ Component({
|
|
wx.getImageInfo({
|
|
wx.getImageInfo({
|
|
src: this.data.QRCodeImagePath,//服务器返回的图片地址
|
|
src: this.data.QRCodeImagePath,//服务器返回的图片地址
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
|
+ console.log('下载content成功1')
|
|
|
|
+ console.log(res.path)
|
|
//res.path是网络图片的本地地址
|
|
//res.path是网络图片的本地地址
|
|
ctx.drawImage(res.path, 227, 364, 135, 135);
|
|
ctx.drawImage(res.path, 227, 364, 135, 135);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ console.log('下载content成功2')
|
|
ctx.draw(true, function (res) {
|
|
ctx.draw(true, function (res) {
|
|
wx.canvasToTempFilePath({
|
|
wx.canvasToTempFilePath({
|
|
x: 0,
|
|
x: 0,
|
|
@@ -98,6 +101,7 @@ Component({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ console.log('下载content成功3')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -286,7 +290,7 @@ Component({
|
|
let group = new Promise((resolve, reject) => {
|
|
let group = new Promise((resolve, reject) => {
|
|
//resolve(() => {
|
|
//resolve(() => {
|
|
ctx.fillText('郎朗读书声是世上最美的声音', 50, 138)
|
|
ctx.fillText('郎朗读书声是世上最美的声音', 50, 138)
|
|
- ctx.drawImage(this.data.groupPurchaseInfo.bgImg, 9, 205, 352, 145);
|
|
|
|
|
|
+ ctx.drawImage(this.data.iconImg, 9, 205, 352, 145);
|
|
ctx.drawImage('../../../static/groupImg/Rectangle 41.png', 134, 358, 59, 20);
|
|
ctx.drawImage('../../../static/groupImg/Rectangle 41.png', 134, 358, 59, 20);
|
|
ctx.setFontSize(14)
|
|
ctx.setFontSize(14)
|
|
ctx.setFillStyle('#fff')
|
|
ctx.setFillStyle('#fff')
|
|
@@ -298,13 +302,13 @@ Component({
|
|
ctx.moveTo(64, 368)
|
|
ctx.moveTo(64, 368)
|
|
ctx.lineTo(114, 368)
|
|
ctx.lineTo(114, 368)
|
|
ctx.stroke()
|
|
ctx.stroke()
|
|
- ctx.fillText(`¥${parseFloat(this.data.groupPurchaseInfo.originPrice / 100).toFixed(2)}元`, 64, 373)
|
|
|
|
|
|
+ ctx.fillText(`¥${parseFloat(this.data.groupPurchaseInfo.originPrice / 100).toFixed(2)}元`, 54, 373)
|
|
ctx.setFontSize(18)
|
|
ctx.setFontSize(18)
|
|
ctx.fillText('团购价仅需', 20, 403)
|
|
ctx.fillText('团购价仅需', 20, 403)
|
|
- ctx.fillText('元', 174, 403)
|
|
|
|
|
|
+ ctx.fillText('元', 185, 403)
|
|
ctx.setFontSize(20)
|
|
ctx.setFontSize(20)
|
|
ctx.setFillStyle('red')
|
|
ctx.setFillStyle('red')
|
|
- ctx.fillText(`¥${parseFloat(this.data.groupPurchaseInfo.price / 100).toFixed(2)}`, 109, 403)
|
|
|
|
|
|
+ ctx.fillText(`¥${parseFloat(this.data.groupPurchaseInfo.price / 100).toFixed(2)}`, 115, 403)
|
|
ctx.drawImage('../../../static/groupImg/share_bottom.png', 3, 419, 370, 192);
|
|
ctx.drawImage('../../../static/groupImg/share_bottom.png', 3, 419, 370, 192);
|
|
ctx.setFontSize(20)
|
|
ctx.setFontSize(20)
|
|
ctx.setFillStyle('red')
|
|
ctx.setFillStyle('red')
|