|
|
@@ -51,11 +51,17 @@ Component({
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ callback(e) {
|
|
|
+ const {
|
|
|
+ item
|
|
|
+ } = e.currentTarget.dataset;
|
|
|
+ this.triggerEvent("callBack", item);
|
|
|
+ },
|
|
|
checkFile(e) {
|
|
|
const {
|
|
|
item
|
|
|
} = e.currentTarget.dataset;
|
|
|
- if (this.data.butType == '播放') return this.triggerEvent("callBack", item);
|
|
|
+ if (item.fileType == 'video' && this.data.butType == '商学院' || this.data.butType == '播放') return this.triggerEvent("callBack", item);
|
|
|
cf.checkFile(item);
|
|
|
}
|
|
|
}
|