|
@@ -20,7 +20,7 @@ Component({
|
|
|
pageWidth: 0,
|
|
|
windowType: -1,
|
|
|
hideModal: true,
|
|
|
- itemData: null,
|
|
|
+ itemData: { id: '', lessonId: '', url: '', lessId: '' },
|
|
|
fileName: '',
|
|
|
uploadTime: '',
|
|
|
expireTime: '',
|
|
@@ -77,7 +77,7 @@ Component({
|
|
|
// 隐藏遮罩层
|
|
|
hideModal: function () {
|
|
|
var that = this;
|
|
|
-
|
|
|
+ this.triggerEvent("hideWindow")
|
|
|
that.setData({
|
|
|
hideModal: true
|
|
|
})
|
|
@@ -161,7 +161,7 @@ Component({
|
|
|
let params = {
|
|
|
id: this.data.itemData.id
|
|
|
}
|
|
|
- httpUtil.wxDel(httpUtil.interfaces.createLess, params).then((res) => {
|
|
|
+ httpUtil.wxDel(httpUtil.interfaces.createLess, params).then(() => {
|
|
|
this.delVoer()
|
|
|
}).catch((res) => {
|
|
|
console.log("删除失败:", res)
|
|
@@ -172,7 +172,7 @@ Component({
|
|
|
id: this.data.itemData.id,
|
|
|
lessonId: this.data.itemData.lessonId
|
|
|
}
|
|
|
- httpUtil.wxDel(httpUtil.interfaces.getDocumentFile, params).then((res) => {
|
|
|
+ httpUtil.wxDel(httpUtil.interfaces.getDocumentFile, params).then(() => {
|
|
|
this.delVoer()
|
|
|
}).catch((res) => {
|
|
|
console.log("删除失败:", res)
|