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
f9bc5529
Commit
f9bc5529
authored
Jun 26, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
84672834
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
book-content.vue
vedio/page-subs/sub_A/book-content/book-content.vue
+2
-3
mpShare.js
vedio/uni_modules/uview-ui/libs/mixin/mpShare.js
+0
-13
No files found.
vedio/page-subs/sub_A/book-content/book-content.vue
View file @
f9bc5529
...
...
@@ -179,9 +179,8 @@
onShareAppMessage
()
{
let
result
=
{
title
:
this
.
bookData
.
title
,
imageUrl
:
this
.
bookData
.
cover
,
type
:
config
.
env
==
'Prod'
?
0
:
config
.
env
==
'Dev'
?
1
:
2
,
path
:
`/page-subs/sub_A/book-content/book-content?bookId=
${
this
.
bookData
.
id
}
`
imageUrl
:
this
.
bookData
.
cover
,
path
:
'/pages/loading?shareId='
}
return
result
;
},
...
...
vedio/uni_modules/uview-ui/libs/mixin/mpShare.js
deleted
100644 → 0
View file @
84672834
module
.
exports
=
{
onLoad
()
{
// 设置默认的转发参数
uni
.
$u
.
mpShare
=
{
title
:
''
,
// 默认为小程序名称
path
:
''
,
// 默认为当前页面路径
imageUrl
:
''
// 默认为当前页面的截图
}
},
onShareAppMessage
()
{
return
uni
.
$u
.
mpShare
}
}
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