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

1 line
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"file":"index.js","sources":["../../../../../../../../src/sheep/components/s-share-modal/canvas-poster/poster/index.js"],"sourcesContent":["import user from './user'\r\nimport goods from './goods'\r\nimport groupon from './groupon'\r\nimport SocialApi from '@/sheep/api/member/social'\r\n\r\nexport function getPosterData(options) {\r\n switch (options.shareInfo.poster.type) {\r\n case 'user':\r\n return user(options)\r\n case 'goods':\r\n return goods(options)\r\n case 'groupon':\r\n return groupon(options)\r\n }\r\n}\r\n\r\nexport function formatImageUrlProtocol(url) {\r\n // #ifdef H5\r\n // H5平台 https协议下需要转换\r\n if (window.location.protocol === 'https:' && url.indexOf('http:') === 0) {\r\n url = url.replace('http:', 'https:')\r\n }\r\n // #endif\r\n\r\n // #ifdef MP-WEIXIN\r\n // 小程序平台 需要强制转换为https协议\r\n if (url.indexOf('http:') === 0) {\r\n url = url.replace('http:', 'https:')\r\n }\r\n // #endif\r\n\r\n return url\r\n}\r\n\r\n// 获得微信小程序码 Base64 image\r\nexport async function getWxaQrcode(path, query) {\r\n const res = await SocialApi.getWxaQrcode(path, query)\r\n return 'data:image/png;base64,' + res.data\r\n}\r\n"],"names":["user","goods","groupon","SocialApi"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKO,SAAS,cAAc,SAAS;AACrC,UAAQ,QAAQ,UAAU,OAAO,MAAI;AAAA,IACnC,KAAK;AACH,aAAOA,sDAAAA,KAAK,OAAO;AAAA,IACrB,KAAK;AACH,aAAOC,uDAAAA,MAAM,OAAO;AAAA,IACtB,KAAK;AACH,aAAOC,yDAAAA,QAAQ,OAAO;AAAA,EACzB;AACH;AAEO,SAAS,uBAAuB,KAAK;AAU1C,MAAI,IAAI,QAAQ,OAAO,MAAM,GAAG;AAC9B,UAAM,IAAI,QAAQ,SAAS,QAAQ;AAAA,EACpC;AAGD,SAAO;AACT;AAGO,SAAe,aAAa,MAAM,OAAO;AAAA;AAC9C,UAAM,MAAM,MAAMC,wBAAAA,UAAU,aAAa,MAAM,KAAK;AACpD,WAAO,2BAA2B,IAAI;AAAA,EACxC;AAAA;;;;"}