"use strict";const e=require("../../../../index.js");require("./index.js");exports.goods=t=>{const i=t.width,o=e.sheep.$store("user").userInfo;return{background:window.location.origin+"/static/goods-poster-bg.jpg",list:[{name:"nickname",type:"text",val:o.nickname,x:.21*i,y:.06*i,paintbrushProps:{fillStyle:"#333",font:{fontSize:16,fontFamily:"sans-serif"}}},{name:"avatar",type:"image",val:t.avatar,x:.04*i,y:.04*i,width:.14*i,height:.14*i,d:.14*i},{name:"goodsBg",type:"rect",x:.03*i,y:.3*i,width:.94*i,height:.75*i,r:5},{name:"goodsImage",type:"image",val:t.shareInfo.poster.image,x:.03*i,y:.3*i,width:.94*i,height:.5*i,r:5},{name:"goodsTitle",type:"text",val:t.shareInfo.poster.title,x:.05*i,y:.83*i,maxWidth:.91*i,line:5,lineHeight:10,paintbrushProps:{fillStyle:"#333",font:{fontSize:16}}},{name:"goodsIntroduction",type:"text",val:t.shareInfo.poster.introduction,x:.05*i,y:.89*i,maxWidth:.9*i,height:.1*i,line:3,lineHeight:4,paintbrushProps:{fillStyle:"#333",font:{fontSize:12,fontFamily:"OPPOSANS"}}},{name:"goodsOriginalPrice",type:"text",val:t.shareInfo.poster.original_price>0?"￥"+t.shareInfo.poster.original_price:"",x:.3*i,y:1.32*i,paintbrushProps:{fillStyle:"#999",font:{fontSize:10,fontFamily:"OPPOSANS"}},textDecoration:{line:"line-through",style:"solide"}},{name:"wxacode",type:"image",val:e.sheep.$api.third.wechat.getWxacode(t.shareInfo.path),x:.75*i,y:1.3*i,width:.2*i,height:.2*i}]}};
