Commit f0acad79 by 谢中龙

修改

parent bb38e656
...@@ -734,7 +734,14 @@ ...@@ -734,7 +734,14 @@
"id": 99, "id": 99,
"name": "活动预约", "name": "活动预约",
"pathName": "subPackageMarketing/page/pages/activityOrder/activityOrder", "pathName": "subPackageMarketing/page/pages/activityOrder/activityOrder",
"query": "id=717762562237927424", "query": "id=718064396915576832",
"scene": null
},
{
"id": -1,
"name": "活动预约生产海报",
"pathName": "subPackageMarketing/page/pages/activityPoster/activityPoster",
"query": "",
"scene": null "scene": null
} }
] ]
......
...@@ -81,7 +81,6 @@ wxService.page({ ...@@ -81,7 +81,6 @@ wxService.page({
}); });
//调用处理信息 //调用处理信息
this.data.activityInfo = activityInfo; this.data.activityInfo = activityInfo;
console.log(this.data.activityInfo)
this.downloadSharePosterImg(); this.downloadSharePosterImg();
} }
}, },
...@@ -153,8 +152,6 @@ wxService.page({ ...@@ -153,8 +152,6 @@ wxService.page({
//画canvas //画canvas
drawCanvas(){ drawCanvas(){
let self = this; let self = this;
console.log(this.data)
console.log(ratio,deviceWidth,deviceHeight)
const ctx = wx.createCanvasContext('myCanvas', this) const ctx = wx.createCanvasContext('myCanvas', this)
const canvasWidth = deviceWidth const canvasWidth = deviceWidth
const canvasHeight = deviceHeight const canvasHeight = deviceHeight
...@@ -169,11 +166,9 @@ wxService.page({ ...@@ -169,11 +166,9 @@ wxService.page({
//计算剩下的高度 //计算剩下的高度
let leftHeight = deviceHeight - ratioImgHeight; let leftHeight = deviceHeight - ratioImgHeight;
console.log('leftHeight---',leftHeight)
//设置二维码的宽高 //设置二维码的宽高
let qrcodeWidth = parseInt(leftHeight/3)*2 , qrcodeHeight = qrcodeWidth; let qrcodeWidth = parseInt(leftHeight/3)*2 , qrcodeHeight = qrcodeWidth;
let qrcodeX = deviceWidth - qrcodeWidth - 25 , qrcodeY = ratioImgHeight + (qrcodeWidth/3); let qrcodeX = deviceWidth - qrcodeWidth - 25 , qrcodeY = ratioImgHeight + (qrcodeWidth/3);
console.log(qrcodeX,qrcodeY,qrcodeWidth,qrcodeHeight)
ctx.drawImage(this.data.qrcodeImgInfo.path, qrcodeX, qrcodeY, qrcodeWidth, qrcodeHeight); ctx.drawImage(this.data.qrcodeImgInfo.path, qrcodeX, qrcodeY, qrcodeWidth, qrcodeHeight);
//画文案 //画文案
//第一行文案 邀请您参与 //第一行文案 邀请您参与
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment