2 lines
1019 B
JavaScript
2 lines
1019 B
JavaScript
"use strict";const e=require("../../../../index.js"),t=require("./index.js");exports.user=r=>{return o=exports,s=null,i=function*(){const o=r.width,s=e.sheep.$store("user").userInfo,i=yield t.getWxaQrcode(r.shareInfo.path,r.shareInfo.query);return[{type:"image",src:t.formatImageUrlProtocol(e.sheep.$url.cdn(e.sheep.$store("app").platform.share.posterInfo.user_bg)),css:{width:o,position:"fixed","object-fit":"contain",top:"0",left:"0",zIndex:-1}},{type:"text",text:s.nickname,css:{color:"#333",fontSize:14,textAlign:"center",fontFamily:"sans-serif",position:"fixed",top:.4*o,left:o/2}},{type:"image",src:t.formatImageUrlProtocol(e.sheep.$url.cdn(s.avatar)),css:{position:"fixed",left:.4*o,top:.16*o,width:.2*o,height:.2*o}},{type:"image",src:i,css:{position:"fixed",left:.35*o,top:.84*o,width:.3*o,height:.3*o}}]},new Promise(((e,t)=>{var r=e=>{try{a(i.next(e))}catch(r){t(r)}},n=e=>{try{a(i.throw(e))}catch(r){t(r)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(o,s)).next())}));var o,s,i};
|