Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
fa022b73
Commit
fa022b73
authored
Sep 29, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'fix'
parent
4989b0ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
sharePic.vue
src/components/sharePic.vue
+10
-5
No files found.
src/components/sharePic.vue
View file @
fa022b73
...
...
@@ -118,10 +118,8 @@
<div
class=
"skuName"
style=
"height: 132px;margin: 28px 0 42px;font-size: 44px;line-height: 62px;"
>
<!-- 商品名称 -->
{{ sharePicData.skuName }}
</div>
v-html=
"skuName"
/>
<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;"
>
...
...
@@ -148,7 +146,8 @@ export default {
openGroupCnt
:
7
,
maxCount
:
0
,
sharePicData
:
{},
endTime
:
''
endTime
:
''
,
skuName
:
''
// 兼容safari做的特殊处理,每个文字都加一个span标签
};
},
methods
:
{
...
...
@@ -190,6 +189,12 @@ export default {
this
.
qrcodeUrl
=
qrcodeUrl
;
const
[
res
]
=
await
qiNiuApi
.
getQiniuToken
();
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
(()
=>
{
html2canvas
(
this
.
$refs
.
sharePic
,
{
width
:
1080
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment