Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
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
刘文虎
account-book
Commits
7dfc4ba3
Commit
7dfc4ba3
authored
Jul 24, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页分享
parent
3ef17d43
Pipeline
#2899
canceled with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
index.js
api/card/index.js
+0
-0
index.vue
pages/index/index.vue
+5
-2
show.vue
pages/maintain-bill/show.vue
+6
-3
No files found.
api/card/index.js
0 → 100644
View file @
7dfc4ba3
pages/index/index.vue
View file @
7dfc4ba3
...
@@ -199,6 +199,9 @@ export default {
...
@@ -199,6 +199,9 @@ export default {
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
}
}
},
},
shareImage
()
{
return
this
.
baseUrl
+
'share_index.png'
},
dingweidizhiImage
()
{
dingweidizhiImage
()
{
return
this
.
baseUrl
+
'dingweidizhi@3x.png'
return
this
.
baseUrl
+
'dingweidizhi@3x.png'
},
},
...
@@ -496,7 +499,7 @@ export default {
...
@@ -496,7 +499,7 @@ export default {
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
// imageUrl: ''
imageUrl
:
this
.
shareImage
}
}
},
},
// 好友
// 好友
...
@@ -504,7 +507,7 @@ export default {
...
@@ -504,7 +507,7 @@ export default {
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
// imageUrl: ''
imageUrl
:
this
.
shareImage
}
}
},
},
},
},
...
...
pages/maintain-bill/show.vue
View file @
7dfc4ba3
...
@@ -198,8 +198,11 @@ export default {
...
@@ -198,8 +198,11 @@ export default {
shareTitle
()
{
shareTitle
()
{
return
'扳手记账-账单确认'
return
'扳手记账-账单确认'
},
},
shareParams
()
{
return
`?billId=
${
this
.
billId
}
&shareUserId=
${
this
.
userInfo
.
id
}
`
},
shareUrl
()
{
shareUrl
()
{
return
`/pages/maintain-bill/show?billId=
${
this
.
billId
}
&shareUserId=
${
this
.
userInfo
.
id
}
`
return
this
.
maintainShareUrl
+
this
.
shareParams
},
},
receive
()
{
receive
()
{
return
this
.
shareUserId
&&
(
this
.
shareUserId
!=
this
.
userInfo
.
id
)
return
this
.
shareUserId
&&
(
this
.
shareUserId
!=
this
.
userInfo
.
id
)
...
@@ -426,7 +429,7 @@ export default {
...
@@ -426,7 +429,7 @@ export default {
onShareTimeline
(
res
)
{
onShareTimeline
(
res
)
{
return
{
return
{
title
:
this
.
shareTitle
,
title
:
this
.
shareTitle
,
path
:
this
.
shareUrl
,
path
:
'pages/maintain-bill/show'
+
this
.
shareParams
,
// imageUrl: ''
// imageUrl: ''
}
}
},
},
...
@@ -434,7 +437,7 @@ export default {
...
@@ -434,7 +437,7 @@ export default {
onShareAppMessage
(
res
)
{
onShareAppMessage
(
res
)
{
return
{
return
{
title
:
this
.
shareTitle
,
title
:
this
.
shareTitle
,
path
:
this
.
shareUrl
,
path
:
'pages/maintain-bill/show'
+
this
.
shareParams
,
// imageUrl: ''
// imageUrl: ''
}
}
},
},
...
...
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