浏览代码

[商户海报][修改]重叠问题

tags/江西版6.1.0
luqc 6 年前
父节点
当前提交
fa657fd7e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      pages/canvas/index.js

+ 1
- 1
pages/canvas/index.js 查看文件

@@ -189,7 +189,7 @@ Page({
let metrics;
if(i==0){
metrics = 35;
that.drawNormalText(ctx, that.data.data.merchantVoList[i].merchantName, metrics, 375 * scale, 14 * scale, "#000", "left", "middle", scale);
that.drawNormalText(ctx, that.data.data.merchantVoList[i].merchantName+"、", metrics, 375 * scale, 14 * scale, "#000", "left", "middle", scale);
}else if(i<=2){
let word = that.data.data.merchantVoList[i - 1].merchantName;
let metrics = (ctx.measureText(word).width) * scale;


正在加载...
取消
保存