acdr-ui/dist/dev/mp-weixin/sheep/components/s-share-modal/canvas-poster/poster/user.js.map

1 line
3.1 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"user.js","sources":["../../../../../../../../src/sheep/components/s-share-modal/canvas-poster/poster/user.js"],"sourcesContent":["import sheep from '@/sheep'\r\nimport { formatImageUrlProtocol, getWxaQrcode } from './index'\r\n\r\nconst user = async (poster) => {\r\n const width = poster.width\r\n const userInfo = sheep.$store('user').userInfo\r\n const wxa_qrcode = await getWxaQrcode(poster.shareInfo.path, poster.shareInfo.query)\r\n return [\r\n {\r\n type: 'image',\r\n src: formatImageUrlProtocol(\r\n sheep.$url.cdn(sheep.$store('app').platform.share.posterInfo.user_bg),\r\n ),\r\n css: {\r\n width,\r\n position: 'fixed',\r\n 'object-fit': 'contain',\r\n top: '0',\r\n left: '0',\r\n zIndex: -1,\r\n },\r\n },\r\n {\r\n type: 'text',\r\n text: userInfo.nickname,\r\n css: {\r\n color: '#333',\r\n fontSize: 14,\r\n textAlign: 'center',\r\n fontFamily: 'sans-serif',\r\n position: 'fixed',\r\n top: width * 0.4,\r\n left: width / 2,\r\n },\r\n },\r\n {\r\n type: 'image',\r\n src: formatImageUrlProtocol(sheep.$url.cdn(userInfo.avatar)),\r\n css: {\r\n position: 'fixed',\r\n left: width * 0.4,\r\n top: width * 0.16,\r\n width: width * 0.2,\r\n height: width * 0.2,\r\n },\r\n },\r\n // #ifndef MP-WEIXIN\r\n {\r\n type: 'qrcode',\r\n text: poster.shareInfo.link,\r\n css: {\r\n position: 'fixed',\r\n left: width * 0.35,\r\n top: width * 0.84,\r\n width: width * 0.3,\r\n height: width * 0.3,\r\n },\r\n },\r\n // #endif\r\n // #ifdef MP-WEIXIN\r\n {\r\n type: 'image',\r\n src: wxa_qrcode,\r\n css: {\r\n position: 'fixed',\r\n left: width * 0.35,\r\n top: width * 0.84,\r\n width: width * 0.3,\r\n height: width * 0.3,\r\n },\r\n },\r\n // #endif\r\n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