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
02efae02
Commit
02efae02
authored
Mar 24, 2023
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信打开分享课程链接时关闭调试开关
parent
68e13b4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
pages/courseDetail/courseDetail.vue
+4
-18
No files found.
pages/courseDetail/courseDetail.vue
View file @
02efae02
...
...
@@ -336,7 +336,6 @@
this
.
$refs
.
share
.
open
()
},
sharechange
(
val
)
{
console
.
log
(
val
)
if
(
val
.
index
!=
3
){
uni
.
switchTab
({
url
:
val
.
item
.
link
...
...
@@ -471,7 +470,6 @@
return
dataHandling
.
secondsTransferPipe
(
value
)
},
async
play
(
item
)
{
console
.
log
(
'play'
)
// 相关列表点击播放
if
(
this
.
courseInfo
.
status
==
1
)
{
// 不可播放
...
...
@@ -498,7 +496,6 @@
}
},
saveVideoPlayback
()
{
console
.
log
(
'saveVideoPlayback'
)
// 视频播放轨迹保存
const
param
=
{
id
:
this
.
playbackId
?
this
.
playbackId
:
null
,
...
...
@@ -518,7 +515,6 @@
api
.
saveVideoPlayback
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
this
.
playbackId
=
res
[
'data'
][
'id'
];
console
.
log
(
'save已经执行完毕'
);
resolve
(
'success'
);
}
else
{
reject
(
'fail'
)
...
...
@@ -530,7 +526,6 @@
},
findVideoPlayback
()
{
console
.
log
(
'findVideoPlayback'
)
// 查询视频播放最新记录
const
param
=
{
systemType
:
1
,
...
...
@@ -582,7 +577,6 @@
},
// 点击播放
playVideo
(
e
)
{
console
.
log
(
'playVideo'
,
this
.
totalTime
,
this
.
viewTime
)
this
.
isPauseFlag
=
false
;
if
(
this
.
viewTime
>=
this
.
totalTime
)
{
this
.
viewTime
=
0
;
...
...
@@ -601,14 +595,12 @@
// // 暂停播放
async
pause
()
{
if
(
this
.
courseInfo
.
status
!=
1
)
{
console
.
log
(
'pause'
)
this
.
isPauseFlag
=
true
;
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
)
}
const
result
=
await
this
.
saveVideoPlayback
()
if
(
result
==
'success'
&&
this
.
newCourseInfo
.
fileId
)
{
console
.
log
(
'新的课程要进行赋值查询了'
)
this
.
fileId
=
this
.
newCourseInfo
.
fileId
;
this
.
courseInfo
.
packFileId
=
this
.
newCourseInfo
.
packFileId
;
this
.
playbackId
=
null
;
...
...
@@ -630,9 +622,7 @@
showCancel
:
false
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
...
...
@@ -700,9 +690,8 @@
systemType
:
'1'
}
api
.
Wxshare
(
WxConfigRequestVO
).
then
(
res
=>
{
console
.
log
(
res
.
data
.
appId
)
jWeixin
.
config
({
debug
:
tru
e
,
//调试的时候需要 在app上回弹出errmg:config ok 的时候就证明没问题了 这时候就可以改为false
debug
:
fals
e
,
//调试的时候需要 在app上回弹出errmg:config ok 的时候就证明没问题了 这时候就可以改为false
appId
:
res
.
data
.
appId
,
//appid
timestamp
:
res
.
data
.
timestamp
,
//时间戳
nonceStr
:
res
.
data
.
nonceStr
,
//随机串
...
...
@@ -711,12 +700,11 @@
openTagList
:
[
'wx-open-launch-app'
,
'wx-open-launch-weapp'
]
});
jWeixin
.
ready
(
function
(
res1
)
{
console
.
log
(
'成功--------'
+
res1
);
});
jWeixin
.
error
(
function
(
res2
)
{
close
.
log
(
'失败---------'
+
res2
);
});
})
},
submitsuessc
(
shareCode
,
jumptime
){
...
...
@@ -734,8 +722,6 @@
shareCode
:
shareCode
}
api
.
userShare
(
UserShareRequestVO
).
then
(
res
=>
{
console
.
log
(
res
,
1251
)
// console.log('分享成功了吗')
if
(
res
[
'success'
])
{
// uni.showToast({
// title: '分享成功',
...
...
@@ -782,7 +768,7 @@
if
(
this
.
isWeixin
){
var
btn
=
document
.
getElementById
(
'launch-btn'
);
btn
.
addEventListener
(
'launch'
,
function
(
e
)
{
console
.
log
(
'success'
);
//
console.log('success');
});
btn
.
addEventListener
(
'error'
,
function
(
e
)
{
// uni.navigateTo({
...
...
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