Commit 02efae02 by wenyang

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

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