Commit 0cc0b364 by 李嘉林

测试

parent bbfe603f
......@@ -84,13 +84,15 @@ export default {
console.log(info, "---------------------71");
const InfoSync = wx.getSystemInfoSync();
this.InfoSync = InfoSync;
let bili = InfoSync.windowWidth / 375 * 1;
// let bili = InfoSync.windowWidth / 375 * 1;
let bili = 1;
const ctx = wx.createCanvasContext("posterCanvas");
ctx.setFillStyle("#fff");
ctx.fillRect(0, 0, 310 * bili, 520 * bili);
//封面
this.saveThe(info.coverUrl, path => {
console.log(path,'---------------------94')
ctx.drawImage(path, 0, 0, 310 * bili, 370 * bili);
ctx.save();
// 微信昵称
......@@ -127,6 +129,7 @@ export default {
wx.getImageInfo({
src: url, //服务器返回的图片地址
success: res => {
console.log(res.path,'--------------------131')
callback(res.path);
},
fail: function(res) {}
......
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