Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shuchengMiniPro
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
cfld-frontend
shuchengMiniPro
Commits
63da095b
Commit
63da095b
authored
Dec 19, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 分享功能
parent
f57133a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
main.js
src/main.js
+10
-0
CommonDetail.vue
src/pages/detail/components/CommonDetail.vue
+8
-7
No files found.
src/main.js
View file @
63da095b
...
...
@@ -39,6 +39,16 @@ Object.defineProperty(Array.prototype, 'removeItem', {
enumerable
:
false
})
Vue
.
mixin
({
onShareAppMessage
()
{
return
{
title
:
'立业舒城,共赢发展未来'
,
path
:
''
,
imageUrl
:
''
,
}
},
})
Vue
.
prototype
.
$fetch
=
fetch
Vue
.
config
.
productionTip
=
false
...
...
src/pages/detail/components/CommonDetail.vue
View file @
63da095b
...
...
@@ -20,13 +20,14 @@
<slot
:detail=
"detail"
></slot>
</div>
<div
class=
"common-detail__bottom-cell"
>
<div
class=
"flex align-center"
>
<!-- todo 图标 -->
<image
class=
"common-detail__icon"
src=
"@/static/img/icon-share.png"
></image>
<span
style=
"flex: none"
>
分享
</span>
<div>
<button
open-type=
"share"
class=
"flex align-center justify-center"
style=
"font-size: 28rpx;background: transparent;"
>
<image
class=
"common-detail__icon"
src=
"@/static/img/icon-share.png"
></image>
<span
style=
"flex: none"
>
分享
</span>
</button>
</div>
<div
class=
"flex align-center justify-center common-detail__contact-btn"
...
...
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