Commit c18eb035 by zhangxw

活动海报显示优化

1 parent 1e4037a9
......@@ -54,6 +54,7 @@ Component({
*/
methods: {
async init(n) {
n.activityName = n.activityName.length > 12 ? `${n.activityName.substring(0, 12)}...` : n.activityName
const drawfun = new Draw({
width: 279,
height: n.postersImageHeight + 76,
......@@ -96,7 +97,7 @@ Component({
textBaseline: 'top'
},
{
x: 44 + drawfun.getTextWidth(userInfo.name, 14),
x: 50 + drawfun.getTextWidth(userInfo.name, 14),
y: 15,
fontSize: 12,
color: '#6E6E7A',
......@@ -113,16 +114,17 @@ Component({
fontWeight: 500
},
{
x: 44 + drawfun.getTextWidth(n.activityName, 14) + 9,
x: 48 + drawfun.getTextWidth(n.activityName, 14) + 9,
y: 39,
fontSize: 10,
color: '#4466F0',
text: '众筹',
textBaseline: 'top',
border: {
width: 1,
color: '#8FA5FF',
radius: 2,
padding: [5, 5]
padding: [4, 5]
}
},
],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!