"use strict";const e=require("../../../../index.js"),t=require("./index.js");exports.groupon=o=>{const a=o.width,r=e.sheep.$store("user").userInfo;return{background:t.formatImageUrlProtocol(e.sheep.$url.cdn(e.sheep.$store("app").platform.share.posterInfo.groupon_bg)),list:[{name:"nickname",type:"text",val:r.nickname,x:.22*a,y:.06*a,paintbrushProps:{fillStyle:"#333",font:{fontSize:16,fontFamily:"sans-serif"}}},{name:"avatar",type:"image",val:t.formatImageUrlProtocol(e.sheep.$url.cdn(r.avatar)),x:.04*a,y:.04*a,width:.14*a,height:.14*a,d:.14*a},{name:"goodsImage",type:"image",val:t.formatImageUrlProtocol(o.shareInfo.poster.image),x:.03*a,y:.21*a,width:.94*a,height:.94*a,r:10},{name:"goodsTitle",type:"text",val:o.shareInfo.poster.title,x:.04*a,y:1.18*a,maxWidth:.91*a,line:2,lineHeight:5,paintbrushProps:{fillStyle:"#333",font:{fontSize:14}}},{name:"goodsPrice",type:"text",val:"￥"+o.shareInfo.poster.price,x:.04*a,y:1.3*a,paintbrushProps:{fillStyle:"#ff0000",font:{fontSize:20,fontFamily:"OPPOSANS"}}},{name:"grouponNum",type:"text",val:"2人团",x:.3*a,y:1.32*a,paintbrushProps:{fillStyle:"#ff0000",font:{fontSize:10,fontFamily:"OPPOSANS"}}},{name:"wxacode",type:"image",val:e.sheep.$api.third.wechat.getWxacode(o.shareInfo.path),x:.75*a,y:1.3*a,width:.2*a,height:.2*a}]}};
