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
c93bd61d
Commit
c93bd61d
authored
Oct 09, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a2fb8c4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
routes.js
src/router/routes.js
+0
-8
share-test.vue
src/views/test/share-test.vue
+0
-27
No files found.
src/router/routes.js
View file @
c93bd61d
...
@@ -13,14 +13,6 @@ export default [
...
@@ -13,14 +13,6 @@ export default [
},
},
component
:
()
=>
import
(
'
../components/error
'
)
component
:
()
=>
import
(
'
../components/error
'
)
},
},
{
path
:
'
/share-test
'
,
name
:
'
share-test
'
,
meta
:
{
title
:
'
出错了
'
},
component
:
()
=>
import
(
'
../views/test/share-test.vue
'
)
},
{
{
path
:
'
*
'
,
path
:
'
*
'
,
name
:
'
notFound
'
,
name
:
'
notFound
'
,
...
...
src/views/test/share-test.vue
deleted
100644 → 0
View file @
a2fb8c4f
<
template
>
<button
style=
"width: 80%; height: 35px; background:#f00"
@
click=
"share"
>
分享
</button>
</
template
>
<
script
>
import
Bridge
from
'
@qg/js-bridge
'
;
export
default
{
methods
:
{
share
()
{
const
nativeBridge
=
new
Bridge
();
const
data
=
{
event
:
'
showShareView
'
,
data
:
{
platform
:
[
'
weChat
'
,
'
timeLine
'
,
'
QQ
'
,
'
QQZone
'
,
'
CopyLink
'
,
'
GeneratePoster
'
],
//依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
shareDic
:
{
title
:
'
aaaa
'
,
desc
:
'
bbbb
'
,
link
:
`https://www.baidu.com`
,
// 页面地址
imgUrl
:
'
https://kdspstatic.q-gp.com/FnPUaThQoK23qZjhXTG9C8XopI4y
'
,
// 图片地址
posterUrl
:
'
https://kdspstatic.q-gp.com/FnPUaThQoK23qZjhXTG9C8XopI4y
'
// 海报地址
}
}
};
nativeBridge
.
showShareView
(
data
);
}
}
};
</
script
>
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