|
|
@ -327,11 +327,14 @@ Page({ |
|
|
ctx.setFillStyle("#999999"); |
|
|
ctx.setFillStyle("#999999"); |
|
|
ctx.setFontSize(28 * ratio); //字大小
|
|
|
ctx.setFontSize(28 * ratio); //字大小
|
|
|
ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
|
|
|
ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
|
|
|
let subtitle = that.data.info.display_tags[0]; |
|
|
let subtitle = that.data.info.sub_title |
|
|
if (subtitle.length > 10) { |
|
|
if (subtitle && subtitle.length > 10) { |
|
|
subtitle = subtitle.substr(0, 10) + '...' |
|
|
subtitle = subtitle.substr(0, 10) + '...' |
|
|
} |
|
|
} |
|
|
|
|
|
if(subtitle){ |
|
|
ctx.fillText(subtitle, 25 * ratio, 540 * ratio); |
|
|
ctx.fillText(subtitle, 25 * ratio, 540 * ratio); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// ctx.draw();
|
|
|
// ctx.draw();
|
|
|
// 划线价
|
|
|
// 划线价
|
|
|
// ctx.setFillStyle("#999999");
|
|
|
// ctx.setFillStyle("#999999");
|
|
|
|