|
@@ -17,7 +17,7 @@ Page({
|
|
|
onLoad(options) {
|
|
|
let auth = [],
|
|
|
dataAuth = '';
|
|
|
-
|
|
|
+
|
|
|
options.auth ? auth = options.auth : getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['商学院'])[0].apps[0].meta.auth.forEach(v => auth.push(v.optionname));
|
|
|
|
|
|
if (auth.includes('团队内部数据分析') && auth.includes('经销商数据分析')) {
|
|
@@ -52,8 +52,19 @@ Page({
|
|
|
callBack({
|
|
|
detail
|
|
|
}) {
|
|
|
+ console.log(detail)
|
|
|
this.setData({
|
|
|
currentVideo: detail
|
|
|
})
|
|
|
},
|
|
|
+ /* 更新下载记录 */
|
|
|
+ downLoadRecord() {
|
|
|
+ _Http.basic({
|
|
|
+ "classname": "saletool.courseware.courseware",
|
|
|
+ "method": "updateDownloadLog",
|
|
|
+ "content": {
|
|
|
+ "sat_coursewareid": this.data.detailData.sat_coursewareid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|