瀏覽代碼

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

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;


Loading…
取消
儲存