Commit 0cc0b364 by 李嘉林

测试

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