Commit 7298621a authored by zhangjianguo's avatar zhangjianguo

样式修改

parent b7dc6123
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
ctx, ctx,
24 + 90 + 20, 24 + 90 + 20,
95 + 20, 95 + 20,
text.length * 22, text.length * 22+20,
55, 55,
55, 55,
"#f5f5f5" "#f5f5f5"
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
}, },
drawTitle(ctx) { drawTitle(ctx) {
let text = this.info.nickname + "向您推荐一个好物"; let text = this.info.nickname + "向您推荐一个好物";
this.roundRect(ctx, 144, 34, text.length * 22, 55, 55, "#f5f5f5"); this.roundRect(ctx, 144, 34, text.length * 22+20, 55, 55, "#f5f5f5");
ctx.fillStyle = "#333"; ctx.fillStyle = "#333";
ctx.font = "20px 'microsoft yahei'"; ctx.font = "20px 'microsoft yahei'";
ctx.fillText(text, 165, 70); ctx.fillText(text, 165, 70);
......
...@@ -367,6 +367,7 @@ export default { ...@@ -367,6 +367,7 @@ export default {
this.g.pic_url.forEach((x) => { this.g.pic_url.forEach((x) => {
this.imgs.push(x.pic_url); this.imgs.push(x.pic_url);
}); });
if(this.g.attr_groups.length>0){
this.g.attr_groups.forEach((x, i) => { this.g.attr_groups.forEach((x, i) => {
if (i > 0) { if (i > 0) {
this.sku += ","; this.sku += ",";
...@@ -378,6 +379,8 @@ export default { ...@@ -378,6 +379,8 @@ export default {
this.skuimage.push(x.pic_url); this.skuimage.push(x.pic_url);
} }
}); });
}
var richtext = this.g.detail; var richtext = this.g.detail;
richtext = richtext.replace( richtext = richtext.replace(
/<img/g, /<img/g,
......
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