Commit e70dd7a3 authored by liuyuping's avatar liuyuping

'peixun1'

parent ad6b5e32
...@@ -194,7 +194,6 @@ Page({ ...@@ -194,7 +194,6 @@ Page({
},500) },500)
} else { } else {
this.timerUpdate = setTimeout(() => { this.timerUpdate = setTimeout(() => {
console.log('条用了吗')
wx.request({ wx.request({
url: app.globalData.appBaseUrlV2 + '/api/onlineTrainingRecord', url: app.globalData.appBaseUrlV2 + '/api/onlineTrainingRecord',
method: 'POST', method: 'POST',
...@@ -266,7 +265,25 @@ Page({ ...@@ -266,7 +265,25 @@ Page({
// this.setData({}) // this.setData({})
wx.openDocument({ wx.openDocument({
filePath: res.tempFilePath, filePath: res.tempFilePath,
showMenu: true showMenu: true,
success: () => {
wx.request({
url: app.globalData.appBaseUrlV2 + '/api/onlineTrainingRecord',
method: 'POST',
header: {
Authorization: app.globalData.Authorization
},
data: {
lessonId: this.data.courses[event.currentTarget.dataset.index].id
},
success: (res) => {
console.log(res , 'authoriazation111')
},
fail: (res1) => {
console.log(res1, 'lessonId lessonId')
}
})
}
}) })
}, },
complete: () => { complete: () => {
......
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