Commit fa022b73 authored by Xuguangxing's avatar Xuguangxing

'fix'

parent 4989b0ac
...@@ -118,10 +118,8 @@ ...@@ -118,10 +118,8 @@
<div <div
class="skuName" class="skuName"
style="height: 132px;margin: 28px 0 42px;font-size: 44px;line-height: 62px;" style="height: 132px;margin: 28px 0 42px;font-size: 44px;line-height: 62px;"
> v-html="skuName"
<!-- 商品名称 --> />
{{ sharePicData.skuName }}
</div>
<div class="shareInfo" style="height: 318px;border-radius: 24px;padding: 0 48px;"> <div class="shareInfo" style="height: 318px;border-radius: 24px;padding: 0 48px;">
<!-- 底部分享信息 --> <!-- 底部分享信息 -->
<div class="qrcode" style="width: 353px;height: 278px;padding: 0 75px 0 0;"> <div class="qrcode" style="width: 353px;height: 278px;padding: 0 75px 0 0;">
...@@ -148,7 +146,8 @@ export default { ...@@ -148,7 +146,8 @@ export default {
openGroupCnt: 7, openGroupCnt: 7,
maxCount: 0, maxCount: 0,
sharePicData: {}, sharePicData: {},
endTime: '' endTime: '',
skuName: '' // 兼容safari做的特殊处理,每个文字都加一个span标签
}; };
}, },
methods: { methods: {
...@@ -190,6 +189,12 @@ export default { ...@@ -190,6 +189,12 @@ export default {
this.qrcodeUrl = qrcodeUrl; this.qrcodeUrl = qrcodeUrl;
const [res] = await qiNiuApi.getQiniuToken(); const [res] = await qiNiuApi.getQiniuToken();
const token = res.token; const token = res.token;
let skuName = '';
const originSkuName = sharePicData.skuName || '';
for (let i = 0; i < originSkuName.length; i++) {
skuName += `<span>${originSkuName[i]}</span>`;
}
this.skuName = skuName;
this.$nextTick(() => { this.$nextTick(() => {
html2canvas(this.$refs.sharePic, { html2canvas(this.$refs.sharePic, {
width: 1080, width: 1080,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment