Commit 02efae02 by wenyang

微信打开分享课程链接时关闭调试开关

parent 68e13b4d
......@@ -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: true, //调试的时候需要 在app上回弹出errmg:config ok 的时候就证明没问题了 这时候就可以改为false
debug: false, //调试的时候需要 在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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment