Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
9b2683d5
Commit
9b2683d5
authored
Jun 05, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化分享逻辑
parent
61336de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
invite.vue
vedio/pagesD/invite/invite.vue
+6
-20
No files found.
vedio/pagesD/invite/invite.vue
View file @
9b2683d5
...
...
@@ -90,13 +90,13 @@
},
methods
:
{
async
onShareAppMessage
(
option
)
{
const
title
=
'
更多好剧,等你来看
'
;
const
title
=
'
寻觅短剧
'
;
return
{
title
,
// 这是要转发的小程序标题
desc
:
""
,
path
:
this
.
share
.
path
+
getApp
().
globalData
.
userId
,
// ?后面的参数会在转发页面打开时传入onLoad方法
imageUrl
:
this
.
share
.
imageUrl
,
// 支持本地或远程图片,默认是小程序 icon
templateId
:
"
这是开发者后台设置的分享素材模板id
"
,
desc
:
this
.
share
.
title
,
path
:
this
.
share
.
path
+
getApp
().
globalData
.
userId
,
imageUrl
:
this
.
share
.
imageUrl
,
templateId
:
"
920405b4ghj2fla2gc
"
,
success
()
{
message
.
notify
(
'分享成功'
);
...
...
@@ -105,14 +105,7 @@
message
.
notify
(
'分享失败'
);
},
};
},
getTitle
()
{
return
new
Promise
((
resolve
)
=>
{
setTimeout
(()
=>
{
resolve
(
"This is a mock title"
);
},
2000
);
});
},
},
loadData
()
{
this
.
post
({
url
:
'/vTask/share/pageMsg'
,
...
...
@@ -126,13 +119,6 @@
},
// onShareAppMessage(res) { //发送给朋友
// return {
// title: this.share.title,
// imageUrl: this.share.imageUrl,
// path: this.share.path + getApp().globalData.userId,
// }
// },
handleRule
()
{
uni
.
showModal
({
title
:
'邀请好友规则'
,
...
...
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