Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
ecffd755
Commit
ecffd755
authored
Dec 07, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.微信分享接口未调用
parent
470e6327
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
pages/courseDetail/courseDetail.vue
+5
-4
uni_modules/uni-share-wx/index.vue
+10
-7
No files found.
pages/courseDetail/courseDetail.vue
View file @
ecffd755
...
...
@@ -453,10 +453,11 @@
}
api
.
userRead
(
UserReadRequestVO
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
uni
.
showToast
({
title
:
'阅读成功'
,
duration
:
2000
});
console
.
log
(
'操作成功'
)
// uni.showToast({
// title: '阅读成功',
// duration: 2000
// });
}
})
}
...
...
uni_modules/uni-share-wx/index.vue
View file @
ecffd755
...
...
@@ -54,26 +54,29 @@
this
.
$refs
.
sharewx
.
close
()
},
uniShare
(
type
)
{
let
that
=
this
this
.
closeShare
()
uni
.
share
({
provider
:
"weixin"
,
scene
:
type
===
1
?
"WXSceneSession"
:
"WXSceneTimeline"
,
type
:
0
,
href
:
th
is
.
WXdata
.
href
,
title
:
th
is
.
WXdata
.
title
,
summary
:
th
is
.
WXdata
.
summary
,
imageUrl
:
th
is
.
WXdata
.
imageUrl
,
href
:
th
at
.
WXdata
.
href
,
title
:
th
at
.
WXdata
.
title
,
summary
:
th
at
.
WXdata
.
summary
,
imageUrl
:
th
at
.
WXdata
.
imageUrl
,
success
:
function
(
res
)
{
console
.
log
(
res
,
155
)
let
UserShareRequestVO
=
{
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
businessType
:
'1'
,
// 分享类型
businessId
:
th
is
.
WXdata
.
fileId
,
// 课程Id
shareUrl
:
th
is
.
WXdata
.
href
,
// 分享链接
businessId
:
th
at
.
WXdata
.
fileId
,
// 课程Id
shareUrl
:
th
at
.
WXdata
.
href
,
// 分享链接
shareType
:
'2'
,
// 分享类型(1:图片分享; 2:链接分享)
shareToWhere
:
type
,
//分享到哪儿(1好友 2朋友圈)
shareCode
:
th
is
.
WXdata
.
shareCode
shareCode
:
th
at
.
WXdata
.
shareCode
}
api
.
userShare
(
UserShareRequestVO
).
then
(
res
=>
{
console
.
log
(
res
,
1251
)
// console.log('分享成功了吗')
if
(
res
[
'success'
])
{
// uni.showToast({
...
...
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