Commit d5f8d30e authored by lvtz's avatar lvtz

fix

parent bdee9887
......@@ -1172,6 +1172,7 @@ Page({
'params.content': content,
})
} else if (editType == 2) {
console.log(22222)
const content = calendarparams.content;
content.push({
type: 'voice',
......
......@@ -253,12 +253,13 @@ Component({
// })
let content = JSON.parse(JSON.stringify(this.data.content));
let uploadingIndex = this.data.uploadingIndex + 1;
content.push({
this.triggerEvent('additem', {
type: 'img',
value: access.path
})
});
this.setData({
content,
uploadingIndex,
}, () => {
this.setData({
......@@ -393,19 +394,12 @@ Component({
wx.showToast({
title: '上传成功'
})
let content = JSON.parse(JSON.stringify(this.data.content));
content.push({
this.triggerEvent('additem', {
type: 'video',
value: access.path,
poster: access.path,
mode: 'm3u8'
})
this.setData({
content,
}, () => {
this.setData({
videoBoxLength: this.countCaculate('video', this.data.content)
})
})
});
} else {
wx.hideLoading();
wx.showModal({
......
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