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
20b49deb
Commit
20b49deb
authored
Oct 06, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 处理低版本app分享海报兼容问题
parent
662e5646
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
groupShare.vue
src/components/groupShare.vue
+6
-2
No files found.
src/components/groupShare.vue
View file @
20b49deb
...
@@ -15,7 +15,7 @@ import sharePic from './sharePic';
...
@@ -15,7 +15,7 @@ import sharePic from './sharePic';
import
MpBridge
from
'
@/service/mp
'
;
import
MpBridge
from
'
@/service/mp
'
;
import
Bridge
from
'
@qg/js-bridge
'
;
import
Bridge
from
'
@qg/js-bridge
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
import
{
isApp
,
isWxMp
,
appVersion
}
from
'
@/service/validation.service
'
;
import
qs
from
'
qs
'
;
import
qs
from
'
qs
'
;
import
config
from
'
@/config
'
;
import
config
from
'
@/config
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
...
@@ -191,13 +191,17 @@ export default {
...
@@ -191,13 +191,17 @@ export default {
// 创建分享数据
// 创建分享数据
const
sharePicData
=
this
.
filterShareInfo
();
const
sharePicData
=
this
.
filterShareInfo
();
const
tagName
=
this
.
type
?
'
[0元购]
'
:
''
;
const
tagName
=
this
.
type
?
'
[0元购]
'
:
''
;
this
.
shareInfo
=
{
const
shareInfo
=
{
title
:
`
${
tagName
}${
sharePicData
.
skuName
}
`
,
title
:
`
${
tagName
}${
sharePicData
.
skuName
}
`
,
desc
:
sharePicData
.
desc
||
''
,
desc
:
sharePicData
.
desc
||
''
,
link
:
sharePicData
.
linkPath
,
// 页面地址
link
:
sharePicData
.
linkPath
,
// 页面地址
imgUrl
:
sharePicData
.
skuImg
,
// 图片地
imgUrl
:
sharePicData
.
skuImg
,
// 图片地
posterUrl
:
sharePicData
.
posterUrl
posterUrl
:
sharePicData
.
posterUrl
};
};
if
(
isApp
&&
+
appVersion
.
replace
(
/
\.
/g
,
''
)
<
8260
)
{
delete
shareInfo
.
posterUrl
;
}
this
.
shareInfo
=
shareInfo
;
},
},
filterShareInfo
()
{
filterShareInfo
()
{
const
type
=
this
.
type
;
const
type
=
this
.
type
;
...
...
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