Commit 7298621a authored by zhangjianguo's avatar zhangjianguo

样式修改

parent b7dc6123
......@@ -207,7 +207,7 @@ export default {
ctx,
24 + 90 + 20,
95 + 20,
text.length * 22,
text.length * 22+20,
55,
55,
"#f5f5f5"
......
......@@ -205,7 +205,7 @@ export default {
},
drawTitle(ctx) {
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.font = "20px 'microsoft yahei'";
ctx.fillText(text, 165, 70);
......
......@@ -367,17 +367,20 @@ export default {
this.g.pic_url.forEach((x) => {
this.imgs.push(x.pic_url);
});
this.g.attr_groups.forEach((x, i) => {
if (i > 0) {
this.sku += ",";
}
this.sku += x.attr_group_name;
});
this.g.attr_groups[0].attr_list.forEach((x) => {
if (x.pic_url) {
this.skuimage.push(x.pic_url);
}
});
if(this.g.attr_groups.length>0){
this.g.attr_groups.forEach((x, i) => {
if (i > 0) {
this.sku += ",";
}
this.sku += x.attr_group_name;
});
this.g.attr_groups[0].attr_list.forEach((x) => {
if (x.pic_url) {
this.skuimage.push(x.pic_url);
}
});
}
var richtext = this.g.detail;
richtext = richtext.replace(
/<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