Browse Source

商学院

zhaoxiaohai 2 years ago
parent
commit
8b3c55669f
2 changed files with 13 additions and 2 deletions
  1. 12 1
      pages/college/detail.js
  2. 1 1
      pages/college/detail.wxml

+ 12 - 1
pages/college/detail.js

@@ -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
+            }
+        })
+    }
 })

+ 1 - 1
pages/college/detail.wxml

@@ -22,5 +22,5 @@
     <van-tab title="数据" />
 </van-tabs>
 
-<My_accessory wx:if="{{active==0}}" list="{{flieList}}" butType='商学院' bindcallBack='callBack' />
+<My_accessory wx:if="{{active==0}}" list="{{flieList}}" butType='商学院' bindcallBack='callBack' binddownLoadRecord='downLoadRecord' />
 <DispalyData ptype='学习' dataId="{{detailData.sat_coursewareid}}" dataAuth="{{dataAuth}}" wx:else />